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

233/419

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

Your feedback is our precious!



Or call +88 02 9853138 for support