# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
651694 | ktkerem | Nadan (COCI18_nadan) | C++17 | 1 ms | 324 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |