# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
147333 | 2019-08-28T20:40:44 Z | duva02 | Nadan (COCI18_nadan) | C++14 | 0 ms | 0 KB |
K = int(input()) N = int(input()) b = 0 for i in range(1,N): print(i) b += i print(K - b)
# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
147333 | 2019-08-28T20:40:44 Z | duva02 | Nadan (COCI18_nadan) | C++14 | 0 ms | 0 KB |
K = int(input()) N = int(input()) b = 0 for i in range(1,N): print(i) b += i print(K - b)