Submission #107462

#TimeUsernameProblemLanguageResultExecution timeMemory
107462KalamNadan (COCI18_nadan)C++14
50 / 50
3 ms384 KiB
// KALAM # include<bits/stdc++.h> using namespace std; const int N = 50000 + 77; int n , k; int main() { scanf("%d %d" , & k , & n); for(int i = 1;i < n;++ i) printf("%d\n" , i); printf("%d\n" , k - (n - 1) * n / 2); return 0; }

Compilation message (stderr)

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