Submission #164568

#TimeUsernameProblemLanguageResultExecution timeMemory
164568itiamNadan (COCI18_nadan)C++98
50 / 50
3 ms380 KiB
#include <iostream> using namespace std; int main(){ int K,N; cin >> K >> N; for (int i=1;i<N;i++){ cout << i << "\n"; K-=i; } cout << K; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...