Submission #381496

#TimeUsernameProblemLanguageResultExecution timeMemory
381496sxmoneKošnja (COCI17_kosnja)C++14
50 / 50
137 ms748 KiB
#include <bits/stdc++.h> using namespace std; int main () { int k; cin >> k ; int ans = 0 ; for ( int i = 1 ; i <= k ; i ++ ) { int a , b ; cin >> a >> b ; int mn = min(a,b); ans = mn * 2 - 2; cout << ans << endl ; } }
#Verdict Execution timeMemoryGrader output
Fetching results...