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:
parent
ee8bfccd7f
commit
d394e4ceb2
17
CodeForces/1660/A/A.cpp
Normal file
17
CodeForces/1660/A/A.cpp
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user