Submission #238989

#TimeUsernameProblemLanguageResultExecution timeMemory
238989ioilolcomNadan (COCI18_nadan)C++14
50 / 50
5 ms384 KiB
#include <bits/stdc++.h> using namespace std; #define endl "\n" typedef long long int ll; int main() { ios_base:: sync_with_stdio(false); cin.tie(0); int k,n; cin>>k>>n; for(int i=1; i<n; i++) { cout<<i<<endl; k-=i; } cout<<k<<endl; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...