0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-24 03:48:47 +00:00
OI-codes/Codeforces/1660/A/A.cpp
2022-04-01 18:33:24 +08:00

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;
}