제출 #166642

#제출 시각아이디문제언어결과실행 시간메모리
166642ArKCaKošnja (COCI17_kosnja)C++17
50 / 50
21 ms632 KiB
#include<bits/stdc++.h> using namespace std; int t,a,b; int main(){ scanf("%d",&t); while(t--){ scanf("%d %d",&a,&b); printf("%d\n",(min(a,b)-1)*2 ); } }

컴파일 시 표준 에러 (stderr) 메시지

kosnja.cpp: In function 'int main()':
kosnja.cpp:6:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&t);
  ~~~~~^~~~~~~~~
kosnja.cpp:8:8: 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...