| 10 | // #define S .second |
| 11 | |
| 12 | int main() { |
| 13 | faster; |
| 14 | int t; |
| 15 | cin>>t; |
| 16 | |
| 17 | while(t--){ |
| 18 | int x,y; |
| 19 | cin>>x>>y; |
| 20 | if(x==y) cout<<(y*2)-1<<"\n"; |
| 21 | else cout<<(y*2)+(x-y)<<"\n"; |
| 22 | } |
| 23 | return 0; |
| 24 | } |
nothing calls this directly
no outgoing calls
no test coverage detected