답안 #170331

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
170331 2019-12-24T20:06:43 Z ngmh Nadan (COCI18_nadan) C++11
15 / 50
2 ms 376 KB
#include <bits/stdc++.h>
using namespace std;

long long k, n, each;
int main(){
	cin >> k >> n;
	k -= (n*(n+1))/2;
	each = k/n;
	for(int i = 1; i < n; i++){
		cout << i+each << "\n";
		k -= each;
	}
	cout << k+n;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 2 ms 376 KB Output isn't correct
2 Incorrect 2 ms 376 KB Output isn't correct
3 Incorrect 2 ms 376 KB Output isn't correct
4 Correct 2 ms 376 KB Output is correct
5 Incorrect 2 ms 376 KB Output isn't correct
6 Incorrect 2 ms 376 KB Output isn't correct
7 Incorrect 2 ms 376 KB Output isn't correct
8 Correct 2 ms 376 KB Output is correct
9 Correct 2 ms 376 KB Output is correct
10 Incorrect 2 ms 376 KB Output isn't correct