제출 #546556

#제출 시각아이디문제언어결과실행 시간메모리
546556AlperenTNadan (COCI18_nadan)C++17
50 / 50
1 ms320 KiB
#include <bits/stdc++.h> using namespace std; int k, n; int main(){ ios_base::sync_with_stdio(false);cin.tie(NULL); cin >> k >> n; for(int i = 1; i <= n - 1; i++){ cout << i << "\n"; k -= i; } cout << k; }
#Verdict Execution timeMemoryGrader output
Fetching results...