Submission #940043

#TimeUsernameProblemLanguageResultExecution timeMemory
940043tamir1Nadan (COCI18_nadan)C++17
50 / 50
1 ms436 KiB
#include<bits/stdc++.h> using namespace std; int n,k,i; int main(){ cin >> k >> n; for(i=1;i<n;i++){ cout << i << "\n"; k-=i; } cout << k; }
#Verdict Execution timeMemoryGrader output
Fetching results...