# DCP-28: Circle and Square Back to All Problems

Beginner Geometry > Basic Geometry

In this problem you have to do some basic school geometry problem solution. You will be given radius of a circle (**R**) and side of a square (**S**). You have to write a program to determine whether the square will perfectly fit inside the circle or not. Please check the following picture to get an understanding. ![circle and square][1] Input: ------ First line of the input will consist of an integer which represent the test case **T (0 &lt; T<=30)**. Each test case contains 2 positive fraction numbers R denoting the radius of the circle and S denoting the side of the square. You can assume **(0.00 &lt; R, S <=100.00)**. Output: ------- For each test case print **Yes** if the square will perfectly fit inside the circle, otherwise print **No**. Please consider only 2 decimal places in the final comparison for decision making. Sample Input ------------ 3 30.00 42.43 20.00 30.00 1.00 5.00 Sample Output ------------- Yes No No [1]: https://s3-ap-southeast-1.amazonaws.com/devskillimagestorage/questionimages/ab482c79-3818-c984-3ad0-08d2e28a520e_d686ac6d0a9b4df593e7cc4c5d6dc948_W225xH225.png

### Problem Limits

 Language Time Limit (seconds) C 1.00 C++ 1.00 C++14 1.00 C# 2.00 Go 2.00 Java 2.00 JavaScript 2.00 Objective-C 2.00 Perl 2.00 PHP 2.00 Python 2.00 Python3 2.00 Ruby 2.00 VB.Net 2.00

# 179/635

Solve/Submission

### Ranking

# User Language Timing
01 rana_cse Cpp14 0.00s
02 ash12 Cpp14 0.00s
03 I_See_You Cpp14 0.00s
04 MAHRahat Cpp14 0.00s
05 PKP_007 Cpp14 0.00s
06 absa1am Cpp14 0.00s
07 subhashis_cse Cpp14 0.00s
08 Core_i14 Cpp14 0.00s
09 Saimum_140128 Cpp14 0.00s
10 Nazmul0092 Cpp14 0.00s
11 pusku Cpp 0.00s
12 emrul Cpp14 0.00s
13 ronok_cse Cpp14 0.00s
14 reza_ul Cpp14 0.00s
15 maxhasan Cpp14 0.00s
16 joy25896 Cpp14 0.00s
17 r13ayan Cpp14 0.00s
19 afzalul Cpp14 0.00s
20 onucsecu Cpp14 0.00s
21 virus Cpp14 0.00s
22 feodorv Cpp 0.00s
23 anik_JU Cpp14 0.00s
24 Mr_KAJOL Cpp 0.00s
25 gulzar Cpp14 0.00s
26 Mhkhaled Cpp14 0.00s
27 rakibmahmud Cpp14 0.00s
28 mir003 Cpp 0.00s
29 terminator_c Cpp14 0.00s
30 rabib Cpp14 0.00s
31 jayed_al_hasan Cpp14 0.00s
33 Khayrul_34 Cpp14 0.00s
34 nazmul_bzs Cpp14 0.00s
35 DynamicOvi Cpp 0.00s
36 mh4746 Cpp14 0.00s
37 serious_sam Cpp14 0.00s
38 gsshanto Cpp14 0.00s
39 golapraj Cpp14 0.00s
40 Kira Cpp14 0.00s
42 Iqbal1013 Cpp14 0.00s
43 lolcoder Cpp14 0.00s
44 CSE1604085_nishan C 0.00s
45 rabiulrafi01 C 0.00s
46 CSE1604084_Mahir C 0.00s
47 Alnoman120113 Cpp14 0.00s
48 soumitro_cse1604114 Cpp14 0.00s
49 upol_vai Cpp14 0.00s
50 Tuli_93 Cpp14 0.00s
Feedback