Submission #366259

#TimeUsernameProblemLanguageResultExecution timeMemory
366259wiwihoNadan (COCI18_nadan)C++14
50 / 50
1 ms364 KiB
#include <bits/stdc++.h> using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(0); int k, n; cin >> k >> n; for(int i = 1; i <= n; i++){ if(i != n){ cout << i << "\n"; k -= i; } else cout << k << "\n"; } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...