제출 #1246530

#제출 시각아이디문제언어결과실행 시간메모리
1246530steven_30_dubsNadan (COCI18_nadan)C++20
컴파일 에러
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)

컴파일 시 표준 에러 (stderr) 메시지

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