Submission #315076

# Submission time Handle Problem Language Result Execution time Memory
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;
    }
}
# Verdict Execution time Memory 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