Submission #165457

#TimeUsernameProblemLanguageResultExecution timeMemory
165457SenseiNadan (COCI18_nadan)C++17
50 / 50
2 ms396 KiB
#include <bits/stdc++.h> using namespace std; int main () { int SUM, N; cin >> SUM >> N; for (int i = 1; i <= N - 1; i++) { cout << i << "\n"; SUM -= i; } cout << SUM << "\n"; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...