Submission #120027

#TimeUsernameProblemLanguageResultExecution timeMemory
120027ClementimeNadan (COCI18_nadan)C++17
50 / 50
2 ms384 KiB
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define FOR(i, l, r) for(ll i = l; i <= r; i++) int main(){ ll k, n; cin >> k >> n; FOR(i, 1, n - 1){ cout << i << endl; } cout << k - ((n - 1) * n / 2); }
#Verdict Execution timeMemoryGrader output
Fetching results...