Submission #374003

#TimeUsernameProblemLanguageResultExecution timeMemory
374003MertD014Nadan (COCI18_nadan)C++17
50 / 50
1 ms492 KiB
#include <bits/stdc++.h> using namespace std; int n,k; int main(){ cin>>n>>k; for(int i=1;i<k;i++){ cout<<i<<endl; n-=i; } cout<<n; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...