Submission #84495

#TimeUsernameProblemLanguageResultExecution timeMemory
84495memetkagan44Nadan (COCI18_nadan)C++11
50 / 50
3 ms516 KiB
#include<bits/stdc++.h> using namespace std; int main(){ int a,n; scanf("%d %d",&a,&n); for(int i=1;i<n;i++) printf("%d\n",i); printf("%d\n",a-(n*(n-1))/2); return 0; }

Compilation message (stderr)

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