Submission #130928

#TimeUsernameProblemLanguageResultExecution timeMemory
130928LightningNadan (COCI18_nadan)C++14
50 / 50
2 ms376 KiB
#include <iostream> using namespace std; int k, n, sum; int main () { ios_base :: sync_with_stdio(false); cin >> k >> n; for(int i = 1; i < n; ++i) { cout << i <<' '; sum += i; } cout << k - sum; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...