Submission #677580

#TimeUsernameProblemLanguageResultExecution timeMemory
677580MariabfNadan (COCI18_nadan)C++17
50 / 50
1 ms340 KiB
#include<bits/stdc++.h> using namespace std; int main(){ int n, m; cin>>n>>m; int suma=0; for(int i=0; i<m-1; i++){ cout<<i+1<<'\n'; suma+=i+1; }cout<<n-suma<<'\n'; }
#Verdict Execution timeMemoryGrader output
Fetching results...