Submission #85222

#TimeUsernameProblemLanguageResultExecution timeMemory
85222FutymyCloneNadan (COCI18_nadan)C++14
50 / 50
2 ms560 KiB
#include <bits/stdc++.h> using namespace std; int main(){ int k, n; scanf("%d %d", &k, &n); int sum = n * (n - 1) / 2; for (int i = 1; i < n; i++) printf("%d\n", i); printf("%d", k - sum); return 0; }

Compilation message (stderr)

nadan.cpp: In function 'int main()':
nadan.cpp:7:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d %d", &k, &n);
     ~~~~~^~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...