Submission #469864

#TimeUsernameProblemLanguageResultExecution timeMemory
469864watoKENadan (COCI18_nadan)C++17
10 / 50
1 ms324 KiB
#include <bits/stdc++.h> #include<vector> #define st first #define nd second #define ll long long using namespace std; int n,k,cvp,c,t,d,b; vector<char> v[1005]; int main(){ scanf("%d %d",&k,&n); c=1; t=0; for (int i=0;i<n-1;i++) { printf("%d\n",c); c++; t+=c; } printf("%d\n",k-t); return 0; }

Compilation message (stderr)

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