Submission #498161

#TimeUsernameProblemLanguageResultExecution timeMemory
498161fuad27Chessboard (IZhO18_chessboard)C++17
8 / 100
1 ms292 KiB
#include<bits/stdc++.h> using namespace std; int main () { int n, k; cin >> n >> k; int ans = (n*n)/2; for(int i = 2;i<=n;i++) { if(n%i == 0) { ans = min(ans, ((i*i)/2)*(n/i)*(n/i)); } } cout << ans << endl; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...