Submission #381407

# Submission time Handle Problem Language Result Execution time Memory
381407 2021-03-25T07:29:16 Z sxmone Košnja (COCI17_kosnja) C++14
25 / 50
151 ms 692 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;
	}
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 364 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 Incorrect 87 ms 492 KB Output isn't correct
7 Incorrect 132 ms 620 KB Output isn't correct
8 Incorrect 98 ms 492 KB Output isn't correct
9 Incorrect 151 ms 692 KB Output isn't correct
10 Incorrect 91 ms 588 KB Output isn't correct