# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
655078 |
2022-11-03T00:33:18 Z |
QAQTAT |
Nadan (COCI18_nadan) |
C++17 |
|
1 ms |
340 KB |
#include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("Ofast")
#define Yungyaorz ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define pii pair <int, int>
#define pll pair <long long int, long long int>
#define all(x) (x).begin(), (x).end()
#define pb push_back
#define F first
#define S second
#define debug(x) cerr << #x << '=' << x << '\n'
typedef long long ll;
signed main() {
Yungyaorz
int k, n;
cin >> k >> n;
int tmp = k;
tmp -= n * (n - 1) / 2;
k = tmp;
cout << tmp << '\n';
for(int i = 1; i < n; ++i) {
cout << i << '\n';
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
212 KB |
Output isn't correct |
2 |
Incorrect |
0 ms |
320 KB |
Output isn't correct |
3 |
Incorrect |
0 ms |
212 KB |
Output isn't correct |
4 |
Correct |
0 ms |
212 KB |
Output is correct |
5 |
Incorrect |
1 ms |
296 KB |
Output isn't correct |
6 |
Incorrect |
0 ms |
340 KB |
Output isn't correct |
7 |
Incorrect |
0 ms |
212 KB |
Output isn't correct |
8 |
Correct |
1 ms |
212 KB |
Output is correct |
9 |
Incorrect |
1 ms |
212 KB |
Output isn't correct |
10 |
Incorrect |
1 ms |
320 KB |
Output isn't correct |