Submission #1246530

#TimeUsernameProblemLanguageResultExecution timeMemory
1246530steven_30_dubsNadan (COCI18_nadan)C++20
Compilation error
0 ms0 KiB
K = int(input())
N = int(input())

min_sum = N * (N + 1) // 2

R = K - min_sum

result = [i for i in range(1, N)]

result.append(N + R)

for val in result:
    print(val)

Compilation message (stderr)

nadan.cpp:1:1: error: 'K' does not name a type
    1 | K = int(input())
      | ^