답안 #655078

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
655078 2022-11-03T00:33:18 Z QAQTAT Nadan (COCI18_nadan) C++17
10 / 50
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;
}
# 결과 실행 시간 메모리 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