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

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 | MAHRahat | Cpp14 | 0.00s |

02 | tariqiitju | Cpp14 | 0.00s |

03 | Brokenlog | Cpp14 | 0.00s |

04 | ash12 | Cpp14 | 0.00s |

05 | Logic_Hunter | Cpp14 | 0.00s |

06 | terminator_c | Cpp14 | 0.00s |

07 | sadia2427 | Cpp14 | 0.00s |

08 | mahbub_ahmed | Cpp14 | 0.00s |

09 | Nazmul0092 | Cpp14 | 0.00s |

10 | soumitro_cse1604114 | Cpp14 | 0.00s |

11 | nazmul_bzs | Cpp14 | 0.00s |

12 | ismail_cse15 | Cpp14 | 0.00s |

13 | SakibAlamin | C | 0.00s |

14 | feodorv | C | 0.00s |

15 | pulak_ict_mbstu | Cpp14 | 0.00s |

16 | MohammadShamim | Cpp14 | 0.00s |

17 | Alnoman120113 | Cpp14 | 0.00s |

18 | joymollick | Cpp14 | 0.00s |

19 | Morass | Cpp14 | 0.00s |

20 | Koushik54 | Cpp14 | 0.00s |

21 | Mehedi07 | Cpp14 | 0.00s |

22 | smriad | Cpp14 | 0.00s |

23 | ammasum | Cpp14 | 0.00s |

24 | jualahmed | Cpp14 | 0.00s |

25 | Rakib05 | C | 0.00s |

26 | shishir09 | Cpp14 | 0.00s |

27 | prateepm | Cpp14 | 0.00s |

28 | joy25896 | Cpp | 0.00s |

29 | souravahmed | C | 0.00s |

30 | deloar1 | Cpp | 0.00s |

31 | Minhaj10 | Cpp | 0.00s |

32 | funny | C | 0.00s |

33 | Tusar | C | 0.00s |

34 | rabbicse | Cpp | 0.00s |

35 | 10102020 | Cpp | 0.00s |

36 | somia | Cpp | 0.00s |

37 | Shajib | Cpp | 0.00s |

38 | RRIZVE | C | 0.00s |

39 | monir769 | Cpp14 | 0.01s |

40 | abdulmukit | Cpp | 0.01s |

41 | kpretomazi | Cpp | 0.01s |

42 | mrinmoi | Cpp14 | 0.01s |

43 | emrul | Cpp14 | 0.01s |

44 | JubayerSohel | Cpp14 | 0.01s |

45 | hmtanbir | Cpp14 | 0.01s |

46 | Anubis | Cpp14 | 0.01s |

47 | seyedssz | Cpp14 | 0.01s |

48 | Wasi | CSharp | 0.02s |

49 | Mosiur | CSharp | 0.02s |

50 | Tazree | PHP | 0.02s |

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. :(