답안 #76742

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
76742 2018-09-17T11:13:12 Z zetapi Chessboard (IZhO18_chessboard) C++14
8 / 100
3 ms 584 KB
#include "bits/stdc++.h"
using namespace std;

#define pb  push_back
#define mp  make_pair
#define ll  long long
#define itr iterator

typedef pair<int,int> pii;

const int MAX=1e5;

int N,K,res;

signed main()
{
	ios_base::sync_with_stdio(false);

	res=MAX;
	cin>>N>>K;
	for(int A=1;A<N;A++)
	{
		if(!(N%A))
			res=min(res,(((N/A)*(N/A))/2)*A*A);
	}
	cout<<res;
	return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 376 KB Output is correct
2 Correct 2 ms 376 KB Output is correct
3 Correct 2 ms 472 KB Output is correct
4 Correct 2 ms 528 KB Output is correct
5 Correct 2 ms 532 KB Output is correct
6 Correct 3 ms 556 KB Output is correct
7 Correct 3 ms 576 KB Output is correct
8 Correct 2 ms 580 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Incorrect 2 ms 584 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 2 ms 584 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 2 ms 584 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 2 ms 584 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 376 KB Output is correct
2 Correct 2 ms 376 KB Output is correct
3 Correct 2 ms 472 KB Output is correct
4 Correct 2 ms 528 KB Output is correct
5 Correct 2 ms 532 KB Output is correct
6 Correct 3 ms 556 KB Output is correct
7 Correct 3 ms 576 KB Output is correct
8 Correct 2 ms 580 KB Output is correct
9 Incorrect 2 ms 584 KB Output isn't correct
10 Halted 0 ms 0 KB -