Submission #532774

#TimeUsernameProblemLanguageResultExecution timeMemory
532774GioChkhaidzeNadan (COCI18_nadan)C++17
50 / 50
1 ms332 KiB
#include <bits/stdc++.h> #define lf (h << 1) #define mf ((l + r) >> 1) #define rf ((h << 1) | 1) #define tree int h, int l, int r #define left lf, l, mf #define right rf, mf + 1, r #define ll long long #define pb push_back #define f first #define s second using namespace std; main () { ios::sync_with_stdio(false); cin.tie(NULL), cout.tie(NULL); long long n, k; cin >> k; cin >> n; for (int i = 1; i < n; ++i) { cout << i << "\n"; } cout << k - (n * (n - 1)) / 2;; }

Compilation message (stderr)

nadan.cpp:16:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   16 | main () {
      | ^~~~
#Verdict Execution timeMemoryGrader output
Fetching results...