Submission #501313

#TimeUsernameProblemLanguageResultExecution timeMemory
501313ammar2000Košnja (COCI17_kosnja)C++17
50 / 50
86 ms1220 KiB
#include<bits/stdc++.h> #define ll long long #define pb push_back #define F first #define S second #define coy cout<<"YES\n" #define con cout<<"NO\n" #define co1 cout<<"-1\n" using namespace std; const int SI=3e5+7; ll INF=8e18+7; int MOD=1e9+7; int T=1; void solver() { ll n,m; cin>>n>>m; cout <<(min(n,m)-1)*2<<"\n"; } int main() { cin>>T; while (T--) solver(); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...