답안 #1097048

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1097048 2024-10-05T22:26:49 Z vibeslayer Nadan (COCI18_nadan) Python 3
50 / 50
13 ms 2936 KB
k = int(input())
n = int(input())

for i in range(1, n):
    print(i)
    k -= i

print(k)
# 결과 실행 시간 메모리 Grader output
1 Correct 11 ms 2908 KB Output is correct
2 Correct 10 ms 2908 KB Output is correct
3 Correct 10 ms 2936 KB Output is correct
4 Correct 10 ms 2908 KB Output is correct
5 Correct 13 ms 2908 KB Output is correct
6 Correct 11 ms 2908 KB Output is correct
7 Correct 10 ms 2908 KB Output is correct
8 Correct 11 ms 2908 KB Output is correct
9 Correct 13 ms 2844 KB Output is correct
10 Correct 10 ms 2908 KB Output is correct