Submission #778962

# Submission time Handle Problem Language Result Execution time Memory
778962 2023-07-11T05:39:01 Z vjudge1 Nadan (COCI18_nadan) C++17
50 / 50
1 ms 240 KB
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define faster ios_base::sync_with_stdio(false);cin.tie(NULL);
#define OYY 1000000005
#define mod 998244353

int32_t main(){
    faster
    int n,k;cin>>n>>k;
    int sum=0;
    for(int i=1;i<k;i++){
        cout<<i<<'\n';
        sum+=i;
    }
    cout<<n-sum<<'\n';
    return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 240 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 1 ms 212 KB Output is correct
10 Correct 1 ms 212 KB Output is correct