0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-05 14:18:47 +00:00
OI-codes/Codeforces/1660/A/A.cpp

18 lines
270 B
C++
Raw Normal View History

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