Submission #3403591
Source Code Expand
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int n; cin >> n; int min = n,x,y; for(int x = 1;x <= n;x++){ y = n / x; int t = abs(x - y) + (n - x*y); if(min > t) min = c; } cout << min << endl; }
Submission Info
Submission Time | |
---|---|
Task | B - □□□□□ |
User | tagomesu |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 299 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:13:27: error: ‘c’ was not declared in this scope if(min > t) min = c; ^