Submission #81860

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