Submission #1116435

#TimeUsernameProblemLanguageResultExecution timeMemory
1116435heeyNadan (COCI18_nadan)C++14
50 / 50
1 ms504 KiB
#include<bits/stdc++.h> using namespace std; signed main(){ ios_base::sync_with_stdio(0); cin.tie(0); int n, k; cin >> n >> k; for(int i = 1; i < k; i++) { cout << i << '\n'; n -= i; } cout << n << '\n'; }
#Verdict Execution timeMemoryGrader output
Fetching results...