#include<iostream>
using namespace std;
int main()
{
int a,b,c;
cin>>a;
while(a--)
{
cin>>b>>c;
cout<<2*min(b,c)-2;
}
return 0;
}
# |
결과 |
실행 시간 |
메모리 |
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 |
110 ms |
480 KB |
Output isn't correct |
7 |
Incorrect |
133 ms |
620 KB |
Output isn't correct |
8 |
Incorrect |
99 ms |
492 KB |
Output isn't correct |
9 |
Incorrect |
157 ms |
620 KB |
Output isn't correct |
10 |
Incorrect |
91 ms |
768 KB |
Output isn't correct |