Submission #144852

#TimeUsernameProblemLanguageResultExecution timeMemory
144852tincamateiNadan (COCI18_nadan)C++14
50 / 50
2 ms380 KiB
#include <bits/stdc++.h> using namespace std; int main() { int K, N; scanf("%d%d", &K, &N); for(int i = 1; i < N; ++i) printf("%d\n", i); printf("%lld\n", K - ((long long)N * (N - 1) / 2)); return 0; }

Compilation message (stderr)

nadan.cpp: In function 'int main()':
nadan.cpp:8:7: 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...