# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
381496 | sxmone | Košnja (COCI17_kosnja) | C++14 | 137 ms | 748 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |