Submission #166642

#TimeUsernameProblemLanguageResultExecution timeMemory
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 ); } }

Compilation message (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...