#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;
}
}
# |
결과 |
실행 시간 |
메모리 |
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 |