Submission #213191

#TimeUsernameProblemLanguageResultExecution timeMemory
213191someone_aaNadan (COCI18_nadan)C++17
50 / 50
5 ms384 KiB
#include <bits/stdc++.h> #define ll long long #define pb push_back #define mp make_pair using namespace std; int main() { int n, k; cin>>n>>k; int sum = 0; for(int i=1;i<k;i++) { cout<<i<<" "; sum += i; } cout<<n - sum<<"\n"; }
#Verdict Execution timeMemoryGrader output
Fetching results...