K = int(input())
N = int(input())
l = N*[K//N]
x = 0
for i in range(1,N):
l[i] += i
x += l[i]
l[0] = K-x
for i in range(N):
print(l[i])
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
26 ms |
3300 KB |
Output isn't correct |
2 |
Incorrect |
25 ms |
3300 KB |
Output isn't correct |
3 |
Incorrect |
27 ms |
3316 KB |
Output isn't correct |
4 |
Correct |
26 ms |
3292 KB |
Output is correct |
5 |
Incorrect |
26 ms |
3300 KB |
Output isn't correct |
6 |
Incorrect |
25 ms |
3300 KB |
Output isn't correct |
7 |
Incorrect |
27 ms |
3320 KB |
Output isn't correct |
8 |
Correct |
26 ms |
3300 KB |
Output is correct |
9 |
Incorrect |
26 ms |
3336 KB |
Output isn't correct |
10 |
Incorrect |
26 ms |
3300 KB |
Output isn't correct |