Submission #129190

#TimeUsernameProblemLanguageResultExecution timeMemory
12919044442Košnja (COCI17_kosnja)C++11
50 / 50
136 ms1340 KiB
#include <bits/stdc++.h> using namespace std; int n,m,k,minn; int main (){ ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); cin>>k; for(int i=0;i<k;i++){ cin>>n>>m; minn=min(n,m); cout<<2*minn-2<<endl; } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...