Submission #381448

#TimeUsernameProblemLanguageResultExecution timeMemory
381448AlashKZKošnja (COCI17_kosnja)C++17
50 / 50
137 ms620 KiB
#include <bits/stdc++.h> using namespace std; main () { int a; cin >> a; for(int i = 1;i <= a; ++i){ int b, c; cin>>b>>c; b = min(b, c); (b--); cout<<b * 2<<endl; } }

Compilation message (stderr)

kosnja.cpp:3:7: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main ()
      |       ^
#Verdict Execution timeMemoryGrader output
Fetching results...