Submission #934290

#TimeUsernameProblemLanguageResultExecution timeMemory
934290KhasarNadan (COCI18_nadan)C++14
50 / 50
1 ms348 KiB
#include <iostream> #include <vector> #include <algorithm> #include <math.h> using namespace std; int main(){ int n, m; cin >> n >> m; for(int i=1;i<m;i++){ cout << i <<'\n'; n-=i; } cout << n; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...