Submission #381496

# Submission time Handle Problem Language Result Execution time Memory
381496 2021-03-25T08:35:30 Z sxmone Košnja (COCI17_kosnja) C++14
50 / 50
137 ms 748 KB
#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
1 Correct 1 ms 384 KB Output is correct
2 Correct 1 ms 364 KB Output is correct
3 Correct 1 ms 364 KB Output is correct
4 Correct 1 ms 364 KB Output is correct
5 Correct 1 ms 364 KB Output is correct
6 Correct 87 ms 492 KB Output is correct
7 Correct 132 ms 620 KB Output is correct
8 Correct 92 ms 492 KB Output is correct
9 Correct 137 ms 748 KB Output is correct
10 Correct 90 ms 492 KB Output is correct