#include <bits/stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int n,k;
cin >> k;
cin >> n;
int coins = 0;
while(n>1){
coins++;
cout << coins << "\n";
n--;
}
cout << k-coins << "\n";
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
396 KB |
Output isn't correct |
2 |
Incorrect |
1 ms |
704 KB |
Output isn't correct |
3 |
Incorrect |
1 ms |
476 KB |
Output isn't correct |
4 |
Correct |
1 ms |
492 KB |
Output is correct |
5 |
Incorrect |
1 ms |
452 KB |
Output isn't correct |
6 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
7 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
8 |
Correct |
1 ms |
364 KB |
Output is correct |
9 |
Incorrect |
1 ms |
396 KB |
Output isn't correct |
10 |
Incorrect |
1 ms |
404 KB |
Output isn't correct |