Submission #164177

#TimeUsernameProblemLanguageResultExecution timeMemory
164177NashikNadan (COCI18_nadan)C++14
50 / 50
2 ms376 KiB
#include <iostream> 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...