답안 #84508

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
84508 2018-11-15T19:17:23 Z MatesV13 Košnja (COCI17_kosnja) C++11
50 / 50
17 ms 3272 KB
#include <bits/stdc++.h>
using namespace std;
long long k,m,n;
int main (){
ios::sync_with_stdio(0);
cin.tie(0);
	cin >> k;
	for (int i=0;i<k;i++){
		cin >> n >> m;
		if (m<n) cout << 2*(m-1) << "\n";
		else cout << 2*(n-1) << "\n";
	}
return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 376 KB Output is correct
2 Correct 2 ms 500 KB Output is correct
3 Correct 2 ms 536 KB Output is correct
4 Correct 2 ms 564 KB Output is correct
5 Correct 2 ms 564 KB Output is correct
6 Correct 11 ms 1056 KB Output is correct
7 Correct 17 ms 1856 KB Output is correct
8 Correct 12 ms 2172 KB Output is correct
9 Correct 17 ms 2964 KB Output is correct
10 Correct 12 ms 3272 KB Output is correct