Submission #473120

#TimeUsernameProblemLanguageResultExecution timeMemory
473120Ahmed_SolymanKošnja (COCI17_kosnja)C++14
50 / 50
110 ms680 KiB
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main(){ ll t;cin>>t; while(t--){ ll n,m;cin>>n>>m; if(n>1 && m>1)cout<<2+(2*(min(n,m)-2))<<endl; else cout<<0<<endl; } }
#Verdict Execution timeMemoryGrader output
Fetching results...