| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1332810 | Zone_zonee | Nadan (COCI18_nadan) | C++20 | 1 ms | 344 KiB |
#include <bits/stdc++.h>
using namespace std;
const int N = 110;
int a[N];
int main(){
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
int k, n;
cin >> k >> n;
iota(a, a+n+1, 0);
k -= n*(n+1)/2;
a[n] += k;
for(int i = 1; i <= n; ++i) cout << a[i] << '\n';
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
