제출 #1260880

#제출 시각아이디문제언어결과실행 시간메모리
1260880kawhietNadan (COCI18_nadan)C++20
50 / 50
0 ms328 KiB
#include <bits/stdc++.h>
using namespace std;

int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int n, k;
  cin >> n >> k;
  for (int i = 1; i <= k; i++) {
    cout << (i == k ? n : i) << '\n';
    n -= i;
  }
  return 0;
}
#Verdict Execution timeMemoryGrader output
Fetching results...