0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2025-01-11 23:12:00 +00:00

A - Vasya and Coins

https://codeforces.com/contest/1660/submission/151512094
This commit is contained in:
Baoshuo Ren 2022-03-31 22:39:41 +08:00
parent ee8bfccd7f
commit d394e4ceb2
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

17
CodeForces/1660/A/A.cpp Normal file
View File

@ -0,0 +1,17 @@
#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;
}