mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-25 03:28:48 +00:00
18 lines
270 B
C++
18 lines
270 B
C++
|
#include <iostream>
|
||
|
|
||
|
using std::cin;
|
||
|
using std::cout;
|
||
|
const char endl = '\n';
|
||
|
|
||
|
int t, a, b;
|
||
|
|
||
|
int main() {
|
||
|
std::ios::sync_with_stdio(false);
|
||
|
cin >> t;
|
||
|
while (t--) {
|
||
|
cin >> a >> b;
|
||
|
cout << (a ? a + b * 2 + 1 : 1) << endl;
|
||
|
}
|
||
|
return 0;
|
||
|
}
|