Submission #81859

#TimeUsernameProblemLanguageResultExecution timeMemory
81859BabinSinkoNadan (COCI18_nadan)C++14
50 / 50
3 ms592 KiB
#include <cstdio> #include <cstdlib> #include <cmath> #include <iostream> #include <cctype> using namespace std; int k, n, x; int main() { cin >> k >> n; for (int i = 1; i < n; i++){ cout << i << endl; x = x + i; } cout << k - x; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...