Advertisement
sukarnapaul

Untitled

Apr 25th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. int main(){
  6. int t;
  7. cin>>t;
  8. for(int i=0;i<t;i++){
  9. int a,b;
  10. cin>>a>>b;
  11. cout<<"Case "<<i+1<<": ";
  12. cout<<abs(a-b)*4+(3*3)+(2*5)+a*4<<"\n";
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement