Submission #166641

#TimeUsernameProblemLanguageResultExecution timeMemory
166641muhi1112Košnja (COCI17_kosnja)C++17
50 / 50
18 ms1408 KiB
#include <bits/stdc++.h> using namespace std; #define endl '\n' #define f1 first #define s2 second #define pb push_back #define mp make_pair #define ll long long #define fri(a) freopen(a,"r",stdin); #define fro(a) freopen(a,"w",stdout); const int N=405; int tt,a,b; int main(){ //fri("in.txt"); //fro("out.txt"); ios_base::sync_with_stdio(false); cin.tie(NULL); cin>>tt; while(tt--){ cin>>a>>b; cout<<2*min(a-1,b-1)<<endl; } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...