Submission #82907

#TimeUsernameProblemLanguageResultExecution timeMemory
82907georgerapeanuNadan (COCI18_nadan)C++11
50 / 50
2 ms532 KiB
#include <iostream>

using namespace std;

int main(){
	int n,k;
	cin >> k >> n;
	for(int i = 1;i < n;i++){
		cout << i << " ";
	}
	cout << k - 1LL * n * (n - 1) / 2;
	return 0;
}
#Verdict Execution timeMemoryGrader output
Fetching results...