Medium Geometry > Basic Geometry

This perhaps the easiest geometry problem you have encountered in your life. You have to find the perimeter of ABCDE . Where AB == CD and length of AB and BC are given. ![ABCDE][1] Input: ------ Input starts with an integer T , denoting the number of test cases. Each case will contain two integers X , Y where X is the length of AB and Y is the length of BC. Output: ------- For each case, print the case number and perimeter of ABCDE. Constraints: -------------- 1 <= T <= 10000 1 <= X <= 100000000 1 <= Y <= 100000000 Sample Input ------------ 1 12 12 Sample Output ------------- Case 1: 60 [1]: https://s3-ap-southeast-1.amazonaws.com/devskillimagestorage/questionimages/7e3dc7ef-a0f8-c909-2191-08d3ed3b2e09_5b39cfafa8a1407f8ba530ddb45ff156_W421xH239.png

Shakil Ahmed

Language |
Time Limit (seconds) |

C | 1.00 |

C++ | 1.00 |

C++14 | 1.00 |

C# | 3.00 |

Go | 3.00 |

Java | 3.00 |

JavaScript | 3.00 |

Objective-C | 3.00 |

Perl | 3.00 |

PHP | 3.00 |

Python | 3.00 |

Python3 | 3.00 |

Ruby | 3.00 |

VB.Net | 3.00 |

Solve/Submission

# | User | Language | Timing |
---|---|---|---|

01 | emrul | Cpp14 | 0.00s |

02 | Eucalyptus | Cpp14 | 0.00s |

03 | Mehedi07 | Cpp14 | 0.00s |

04 | liar | Cpp14 | 0.00s |

05 | SakibAlamin | Cpp14 | 0.00s |

06 | sirpoka | Cpp14 | 0.00s |

07 | jualahmed | Cpp14 | 0.00s |

08 | nazmul_bzs | Cpp14 | 0.00s |

09 | pulak_ict_mbstu | Cpp14 | 0.00s |

10 | Mahadi024 | Cpp14 | 0.00s |

11 | joymollick | Cpp14 | 0.00s |

12 | FariD | Cpp | 0.00s |

13 | Mushfiq1604123 | Cpp | 0.00s |

14 | mhiceiuk | Cpp | 0.00s |

15 | funny | C | 0.00s |

16 | purple | Cpp14 | 0.00s |

17 | RRIZVE | C | 0.01s |

18 | Shajib | Cpp | 0.01s |

19 | deloar1 | Cpp | 0.01s |

20 | Sarwar05 | Cpp | 0.01s |

21 | shishir09 | Cpp14 | 0.01s |

22 | Morass | Cpp14 | 0.01s |

23 | feodorv | C | 0.01s |

24 | Chayti_Saha98 | Cpp14 | 0.01s |

25 | giash_uddin | Cpp14 | 0.01s |

26 | Koushik54 | Cpp14 | 0.01s |

27 | gulzar | Cpp14 | 0.01s |

28 | seyedssz | Cpp14 | 0.01s |

29 | MAHRahat | Cpp14 | 0.01s |

30 | mahbub07 | Cpp14 | 0.02s |

31 | adil_reza | Cpp14 | 0.02s |

32 | Nazmul0092 | Cpp14 | 0.02s |

33 | JubayerSohel | Cpp14 | 0.02s |

34 | Alnoman120113 | Cpp14 | 0.02s |

35 | MohammadShamim | Cpp14 | 0.02s |

36 | hamedomarkhaled | Cpp | 0.02s |

37 | monir769 | Cpp | 0.02s |

38 | Khayrul_34 | Cpp | 0.02s |

39 | DynamicOvi | Cpp | 0.02s |

40 | zahidbiscj | Cpp | 0.02s |

41 | Brokenlog | Cpp | 0.02s |

42 | somia | Cpp | 0.02s |

43 | susmoys | Cpp14 | 0.03s |

44 | joy25896 | Cpp14 | 0.03s |

45 | Ayman_Tanvir_101 | Cpp14 | 0.03s |

46 | Tazree | PHP | 0.04s |

47 | rahulcse | CSharp | 0.05s |

48 | nazmulhyder | CSharp | 0.05s |

49 | minhaj_jami | CSharp | 0.06s |

50 | Shubhode | CSharp | 0.06s |

Copyright © 2015-2016 Dev Skill.

Feedback
#### Your feedback is our precious!

## Thank you for providing feedback! Our developers will be happy :)

## Sorry there was a problem when submitting the feedback. Please try again. :(