DCP-128: Galib and Hasan Again Back to All Problems

Easy Geometry > Basic Geometry

Galib and Hasan are best friend. They love to challenge each other to solve geometry problem. Galib challenges Hasan with following problem. Problem diagram drawn by Galib is shown below. ![problem Diagram][1] here ACB is a circle and O is the center of the circle. Galid will give hasan the length of AO and BC and Hasan has to tell Galib the area of the square ACDE. Can you please help Hasan to solve this problem. Input: ------ The first line contains an integer T( 1<= T <= 1000 ) which denotes the number of Test cases. T test cases follow . Each case consists of two integers number AO and BC. Output: ------- For each test case, print a line “Case x: y” where x is replaced by the test case number and y is the area of the square ACDE. Sample Input ------------ 1 2 3 Sample Output ------------- Case 1: 7 [1]: https://s3-ap-southeast-1.amazonaws.com/devskillimagestorage/questionimages/6713dbba-82d0-c9e9-8dc5-08d3d291302c_52f4c632931d4df897723d88f519cb34_W520xH462.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




# User Language Timing
01 terminator_c Cpp14 0.00s
02 sadia2427 Cpp14 0.00s
03 mahbub_ahmed Cpp14 0.00s
04 Nazmul_WUB Cpp14 0.00s
05 MAHRahat Cpp14 0.00s
06 tariqiitju Cpp14 0.00s
07 Brokenlog Cpp14 0.00s
08 ash12 Cpp14 0.00s
09 Logic_Hunter Cpp14 0.00s
10 Koushik54 Cpp14 0.00s
11 Mehedi07 Cpp14 0.00s
12 smriad Cpp14 0.00s
13 ammasum Cpp14 0.00s
14 jualahmed Cpp14 0.00s
15 soumitro_cse1604114 Cpp14 0.00s
16 nazmul_bzs Cpp14 0.00s
17 ismail_cse15 Cpp14 0.00s
18 SakibAlamin C 0.00s
19 feodorv C 0.00s
20 pulak_ict_mbstu Cpp14 0.00s
21 MohammadShamim Cpp14 0.00s
22 Alnoman120113 Cpp14 0.00s
23 joymollick Cpp14 0.00s
24 Morass Cpp14 0.00s
25 shishir09 Cpp14 0.00s
26 prateepm Cpp14 0.00s
27 joy25896 Cpp 0.00s
28 souravahmed C 0.00s
29 deloar1 Cpp 0.00s
30 Minhaj10 Cpp 0.00s
31 muzakkir C 0.00s
32 Tusar C 0.00s
33 rabbicse Cpp 0.00s
34 Rakib05 C 0.00s
35 10102020 Cpp 0.00s
36 somia Cpp 0.00s
37 monir769 Cpp14 0.01s
38 abdulmukit Cpp 0.01s
39 kpretomazi Cpp 0.01s
40 mrinmoi Cpp14 0.01s
41 seyedssz Cpp14 0.01s
42 emrul Cpp14 0.01s
43 JubayerSohel Cpp14 0.01s
44 hmtanbir Cpp14 0.01s
45 Anubis Cpp14 0.01s
46 Wasi CSharp 0.02s
47 Mosiur CSharp 0.02s
48 Tazree PHP 0.02s
49 saeefad CSharp 0.02s
50 hasanuzzaman333 CSharp 0.02s

Your feedback is our precious!

Or call +88 02 9853138 for support