Submission #86825

#TimeUsernameProblemLanguageResultExecution timeMemory
86825jovitreNadan (COCI18_nadan)C++14
50 / 50
3 ms552 KiB
#include <bits/stdc++.h> using namespace std; #define MAXN 3005 #define MAXSZ 2050 #define INF 999999999 #define pb push_back typedef long long ll; typedef pair <int, int> pii; typedef vector <ll> vi; int main(){ int k, n; scanf("%d%d", &k, &n); for(int i = 1; i < n; i++){ printf("%d\n", i); k -= i; } printf("%d\n", k); return 0; }

Compilation message (stderr)

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