답안 #381367

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
381367 2021-03-25T07:02:54 Z asqar Košnja (COCI17_kosnja) C++14
50 / 50
142 ms 1096 KB
#include <bits/stdc++.h>
using namespace std;
int main ()
{
	int n;
	cin >> n;
	int a[ 50001], b[50001];
	for (int i = 1; i <= n; i ++) {
		cin >> a[i] >> b[i];
		cout << (min (a[i], b[i]) - 1) * 2 << "\n";
	}

}
# 결과 실행 시간 메모리 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 2 ms 364 KB Output is correct
5 Correct 1 ms 364 KB Output is correct
6 Correct 98 ms 748 KB Output is correct
7 Correct 140 ms 1036 KB Output is correct
8 Correct 92 ms 748 KB Output is correct
9 Correct 142 ms 1096 KB Output is correct
10 Correct 93 ms 748 KB Output is correct