MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / main

Function main

CPP/questions/AVOIDCONTACT.cpp:12–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10// #define S .second
11
12int 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected