Submission #505508

# Submission time Handle Problem Language Result Execution time Memory
505508 2022-01-11T05:30:56 Z Mazaalai Chessboard (IZhO18_chessboard) C++17
0 / 100
1 ms 204 KB
#include <bits/stdc++.h>
using namespace std;
int n;
signed main() {
	cin >> n;
	int x = 1;
	for (int i = 2; i * i <= n; i++) {
		if (n % i == 0) x = i;
	}
	int y = n / x;
	cout << (y * y) / 2 * x * x << '\n';
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 204 KB Output is correct
2 Incorrect 0 ms 204 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 204 KB Output is correct
2 Incorrect 0 ms 204 KB Output isn't correct
3 Halted 0 ms 0 KB -