답안 #315076

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
315076 2020-10-22T02:13:06 Z Kesatria_Komodo Nadan (COCI18_nadan) C++17
50 / 50
1 ms 256 KB
#include <iostream>
using namespace std;
int main(){
    int K , N;
    cin >> K >> N;
    for (int i = 0 ; i < N ; i++){
        cout << (i == N - 1 ? i + 1 + K - (N + 1) * N / 2 : i + 1) << endl;
    }
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 256 KB Output is correct
2 Correct 1 ms 256 KB Output is correct
3 Correct 0 ms 256 KB Output is correct
4 Correct 0 ms 256 KB Output is correct
5 Correct 1 ms 256 KB Output is correct
6 Correct 1 ms 256 KB Output is correct
7 Correct 0 ms 256 KB Output is correct
8 Correct 0 ms 256 KB Output is correct
9 Correct 1 ms 256 KB Output is correct
10 Correct 1 ms 256 KB Output is correct