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

224/407

Solve/Submission

Ranking

# User Language Timing
01 mhiceiuk Cpp 0.00s
02 emrul Cpp14 0.00s
03 liar Cpp14 0.00s
04 pulak_ict_mbstu Cpp14 0.00s
05 FariD Cpp 0.00s
06 Mehedi07 Cpp14 0.00s
07 jualahmed Cpp14 0.00s
08 sirpoka Cpp14 0.00s
09 Eucalyptus Cpp14 0.00s
10 SakibAlamin Cpp14 0.00s
11 nazmul_bzs Cpp14 0.00s
12 Mushfiq1604123 Cpp 0.00s
13 joymollick Cpp14 0.00s
14 Mahadi024 Cpp14 0.00s
15 muzakkir C 0.00s
16 deloar1 Cpp 0.01s
17 Morass Cpp14 0.01s
18 Koushik54 Cpp14 0.01s
19 gulzar Cpp14 0.01s
20 seyedssz Cpp14 0.01s
21 Sarwar05 Cpp 0.01s
22 feodorv C 0.01s
23 Chayti_Saha98 Cpp14 0.01s
24 giash_uddin Cpp14 0.01s
25 shishir09 Cpp14 0.01s
26 MAHRahat Cpp14 0.01s
27 Nazmul_WUB Cpp14 0.02s
28 Brokenlog Cpp 0.02s
29 mahbub07 Cpp14 0.02s
30 JubayerSohel Cpp14 0.02s
31 adil_reza Cpp14 0.02s
32 DynamicOvi Cpp 0.02s
33 MohammadShamim Cpp14 0.02s
34 monir769 Cpp 0.02s
35 Khayrul_34 Cpp 0.02s
36 hamedomarkhaled Cpp 0.02s
37 Alnoman120113 Cpp14 0.02s
38 zahidbiscj Cpp 0.02s
39 Ayman_Tanvir_101 Cpp14 0.03s
40 susmoys Cpp14 0.03s
41 joy25896 Cpp14 0.03s
42 Tazree PHP 0.04s
43 rahulcse CSharp 0.05s
44 hasanuzzaman333 CSharp 0.06s
45 rabbicse CSharp 0.06s
46 minhaj_jami CSharp 0.06s
47 SkSaber Cpp14 0.06s
48 laziestcoder Cpp14 0.06s
49 Rana_EEE_DUET Cpp14 0.06s
50 ImaginativeShohag Cpp14 0.07s
Feedback

Your feedback is our precious!



Or call +88 02 9853138 for support