DCP-165: Easy Geometry Back to All Problems

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


Problem Setter:

Shakil Ahmed

Please login to submit solution to this problem.

Problem Limits

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

Problem Stats

231/414

Solve/Submission

Ranking

# 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 muzakkir C 0.00s
16 deloar1 Cpp 0.01s
17 Sarwar05 Cpp 0.01s
18 shishir09 Cpp14 0.01s
19 Morass Cpp14 0.01s
20 feodorv C 0.01s
21 Chayti_Saha98 Cpp14 0.01s
22 giash_uddin Cpp14 0.01s
23 Koushik54 Cpp14 0.01s
24 gulzar Cpp14 0.01s
25 seyedssz Cpp14 0.01s
26 MAHRahat Cpp14 0.01s
27 mahbub07 Cpp14 0.02s
28 adil_reza Cpp14 0.02s
29 Nazmul_WUB Cpp14 0.02s
30 JubayerSohel Cpp14 0.02s
31 Alnoman120113 Cpp14 0.02s
32 MohammadShamim Cpp14 0.02s
33 hamedomarkhaled Cpp 0.02s
34 monir769 Cpp 0.02s
35 Khayrul_34 Cpp 0.02s
36 DynamicOvi Cpp 0.02s
37 zahidbiscj Cpp 0.02s
38 Brokenlog Cpp 0.02s
39 somia Cpp 0.02s
40 susmoys Cpp14 0.03s
41 joy25896 Cpp14 0.03s
42 Ayman_Tanvir_101 Cpp14 0.03s
43 Tazree PHP 0.04s
44 rahulcse CSharp 0.05s
45 nazmulhyder CSharp 0.05s
46 minhaj_jami CSharp 0.06s
47 Shubhode CSharp 0.06s
48 rabbicse CSharp 0.06s
49 hasanuzzaman333 CSharp 0.06s
50 saeefad CSharp 0.06s
Feedback

Your feedback is our precious!



Or call +88 02 9853138 for support