Submission #165462

#TimeUsernameProblemLanguageResultExecution timeMemory
165462muhi1112Nadan (COCI18_nadan)C++17
50 / 50
2 ms376 KiB
#include <bits/stdc++.h>
using namespace std;
 
#define endl '\n'
#define f1 first
#define s2 second
#define pb push_back
#define mp make_pair
#define ll long long
#define fri(a) freopen(a,"r",stdin);
#define fro(a) freopen(a,"w",stdout);
const int N=405;

int n,m;

int main(){
	//fri("in.txt");
	cin>>n>>m;
	for(int i=1;i<m;i++){
		cout<<i<<endl;
	}
	cout<<n-(m*(m-1))/2;



	return 0;
}
#Verdict Execution timeMemoryGrader output
Fetching results...