Submission #165460

#TimeUsernameProblemLanguageResultExecution timeMemory
165460ArKCaNadan (COCI18_nadan)C++17
50 / 50
2 ms380 KiB
#include<bits/stdc++.h> using namespace std; int n,k; int main(){ scanf("%d %d",&k,&n); for(int i=1;i<n;i++){ k-=i; printf("%d\n",i ); } printf("%d\n",k ); }

Compilation message (stderr)

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