답안 #381496

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
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 ;
	}
}
# 결과 실행 시간 메모리 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