# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
170331 |
2019-12-24T20:06:43 Z |
ngmh |
Nadan (COCI18_nadan) |
C++11 |
|
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;
}
# |
Verdict |
Execution time |
Memory |
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 |