Submission #651694

#TimeUsernameProblemLanguageResultExecution timeMemory
651694ktkeremNadan (COCI18_nadan)C++17
50 / 50
1 ms324 KiB
#include<bits/stdc++.h> typedef long long ll; typedef std::pair<ll , ll> llll; std::vector<ll> ar; ll n; void solve(){ ll k;std::cin >> k >> n; for(ll i = 1;n>i;i++){ std::cout << i << "\n"; k-=i; } std::cout << k << "\n"; } int main(){ std::ios_base::sync_with_stdio(false);std::cin.tie(NULL); ll t = 1; //std::cin >> t; while(t--){ solve(); } }
#Verdict Execution timeMemoryGrader output
Fetching results...