Submission #159711

#TimeUsernameProblemLanguageResultExecution timeMemory
159711geon040702카드 역배치 (KOI15_reversal)C++14
25 / 25
2 ms504 KiB
#include <bits/stdc++.h> using namespace std; int card[50]; int main(void) { int i; for(i=0;i<=20;i++) { card[i] = i; } for(i=1;i<=10;i++) { int a, b; scanf("%d%d", &a, &b); reverse(card + a, card + b + 1); } for(i=1;i<=20;i++) { printf("%d ", card[i]); } return 0; }

Compilation message (stderr)

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