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

02 | MAHRahat | Cpp14 | 0.00s |

03 | Nazmul_WUB | Cpp14 | 0.00s |

04 | tariqiitju | Cpp14 | 0.00s |

05 | shishir09 | Cpp14 | 0.00s |

06 | joy25896 | Cpp | 0.00s |

07 | Logic_Hunter | Cpp14 | 0.00s |

08 | Brokenlog | Cpp14 | 0.00s |

09 | pulak_ict_mbstu | Cpp14 | 0.00s |

10 | mahbub_ahmed | Cpp14 | 0.00s |

11 | feodorv | C | 0.00s |

12 | sadia2427 | Cpp14 | 0.00s |

13 | SakibAlamin | C | 0.00s |

14 | nazmul_bzs | Cpp14 | 0.00s |

15 | Koushik54 | Cpp14 | 0.00s |

16 | smriad | Cpp14 | 0.00s |

17 | Mehedi07 | Cpp14 | 0.00s |

18 | jualahmed | Cpp14 | 0.00s |

19 | Rakib05 | C | 0.00s |

20 | terminator_c | Cpp14 | 0.00s |

21 | ammasum | Cpp14 | 0.00s |

22 | MohammadShamim | Cpp14 | 0.00s |

23 | joymollick | Cpp14 | 0.00s |

24 | ismail_cse15 | Cpp14 | 0.00s |

25 | Morass | Cpp14 | 0.00s |

26 | 10102020 | Cpp | 0.00s |

27 | deloar1 | Cpp | 0.00s |

28 | souravahmed | C | 0.00s |

29 | prateepm | Cpp14 | 0.00s |

30 | Minhaj10 | Cpp | 0.00s |

31 | muzakkir | C | 0.00s |

32 | Alnoman120113 | Cpp14 | 0.00s |

33 | soumitro_cse1604114 | Cpp14 | 0.00s |

34 | Tusar | C | 0.00s |

35 | rabbicse | Cpp | 0.00s |

36 | abdulmukit | Cpp | 0.01s |

37 | monir769 | Cpp14 | 0.01s |

38 | hmtanbir | Cpp14 | 0.01s |

39 | kpretomazi | Cpp | 0.01s |

40 | JubayerSohel | Cpp14 | 0.01s |

41 | seyedssz | Cpp14 | 0.01s |

42 | mrinmoi | Cpp14 | 0.01s |

43 | Anubis | Cpp14 | 0.01s |

44 | emrul | Cpp14 | 0.01s |

45 | Tazree | PHP | 0.02s |

46 | saeefad | CSharp | 0.02s |

47 | hasanuzzaman333 | CSharp | 0.02s |

48 | Wasi | CSharp | 0.02s |

49 | Mosiur | CSharp | 0.02s |

50 | Taj025 | CSharp | 0.03s |

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