Submission #87637

#TimeUsernameProblemLanguageResultExecution timeMemory
87637fasterthanyouNadan (COCI18_nadan)C++14
50 / 50
3 ms620 KiB
#include <iostream> using namespace std; int n, k; int main() { cin >> k >> n; for (int i = 0; i < n; ++i) { if (i == n - 1) { cout << k; break; } cout << i + 1 << '\n'; k -= (i + 1); } }
#Verdict Execution timeMemoryGrader output
Fetching results...