Submission #1042941

#TimeUsernameProblemLanguageResultExecution timeMemory
1042941biserailievaNadan (COCI18_nadan)C++14
50 / 50
1 ms600 KiB
#include <iostream> 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<<endl; k-=i+1; } else { cout<<k<<endl; } } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...