# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
560133 | AGE | Nadan (COCI18_nadan) | C++14 | 1 ms | 308 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<bits/stdc++.h>
#define F first
#define S second
#define pb push_back
#define int long long
using namespace std;
const int N=1e6,M=2e3+10,mod=100000000000031;
vector<int>v;
int ans=0,a[50005][6],p_pow[5];
unordered_map<int,int>mp;
long long summ(long long x,long long y){
return ((x%mod)+(y%mod))%mod;
}
long long mult(long long x,long long y){
return ((x%mod)*(y%mod))%mod;
}
main()
{
int n,m;
cin>>m>>n;
for(int i=0;i<n-1;i++)
cout<<i+1<<endl,m-=(i+1);
cout<<m<<endl;
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |