Submission #197851

#TimeUsernameProblemLanguageResultExecution timeMemory
197851Osama_AlkhodairyNadan (COCI18_nadan)C++17
50 / 50
3 ms376 KiB
#include <bits/stdc++.h> using namespace std; #define finish(x) return cout << x << endl, 0 #define ll long long int k, n; int main(){ ios_base::sync_with_stdio(0); cin.tie(0); cin >> k >> n; for(int i = 1 ; i <= n - 1 ; i++){ cout << i << " "; k -= i; } cout << k << endl; }
#Verdict Execution timeMemoryGrader output
Fetching results...