Submission #332754

#TimeUsernameProblemLanguageResultExecution timeMemory
332754vitkishloh228Nadan (COCI18_nadan)C++14
50 / 50
1 ms364 KiB
#include<iostream> #include<vector> #include<algorithm> using namespace std; int main() { int k, n; cin >> k >> n; for (int i = 0; i < n; ++i) { if (i != n - 1) { cout << i + 1 << '\n'; k -= (i + 1); } else cout << k << '\n'; } }
#Verdict Execution timeMemoryGrader output
Fetching results...