Submission #886682

#TimeUsernameProblemLanguageResultExecution timeMemory
886682vjudge1Košnja (COCI17_kosnja)C++17
50 / 50
9 ms856 KiB
#ifndef Local #pragma GCC optimize("O3,unroll-loops") const int lim=2e5+100; #else const int lim=2e3+100; #endif #include "bits/stdc++.h" using namespace std; #define int int64_t #define pb push_back const int mod=1e9+7; using pii=pair<int,int>; inline void solve(){ int n,m; cin>>n>>m; cout<<2*(min(n,m)-1)<<"\n"; } signed main(){ ios_base::sync_with_stdio(false); cin.tie(NULL);cout.tie(NULL); #ifdef Local freopen(".in","r",stdin); freopen(".out","w",stdout); #else //freopen("grass.in","r",stdin); //freopen("grass.out","w",stdout); #endif int t=1; cin>>t; while (t--) { solve(); } }
#Verdict Execution timeMemoryGrader output
Fetching results...