Submission #321067

#TimeUsernameProblemLanguageResultExecution timeMemory
321067techiehere08Best Place (NOI17_bestplace)C++14
3 / 100
27 ms2284 KiB
#include <bits/stdc++.h> using namespace std; int main(){ int n, u, v, x, y; scanf("%d", &n); for(int i = 0; i < n; i++){ scanf("%d%d", &x, &y); if(n / 2 == i){ u = x, v = y; } } printf("%d %d\n", u, v); return 0; }

Compilation message (stderr)

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