Submission #493893

#TimeUsernameProblemLanguageResultExecution timeMemory
493893watoKENadan (COCI18_nadan)C++17
50 / 50
1 ms204 KiB
#include <bits/stdc++.h> #define ll long long #define pb push_back using namespace std; int n,a,b; int dizi[500005],dizi2[500005],dizi3[500005]; vector<int> v; int main() { cin>>a>>b; int dgr=1; int sum=0; for (int i=0;i<b-1;i++) { cout<<dgr<<endl; sum+=dgr; dgr++; } cout<<a-sum; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...