# DCP-20: Back to School Back to All Problems

Beginner Geometry > Basic Geometry

When we were young students in school we did many wonderful math but most of us forget it over time. Sometimes is it nice to recall those memories and refresh our math a bit. In today’s contest we will try something like that. Consider you are given information about a circle (center and radius) and you are given information of a point (coordinate), you have to tell whether the point is outside the circle, or inside the circle or on the circle. If the point is on the perimeter of the circle then it is consider on the circle. ![circle][1] In this example, **A** is outside the circle, **B** is inside the circle and **C** is on the circle. Input: ------ First line of the input will consist of an integer which represent the test case **T (0 < T <= 100)**. Each test case contains 5 numbers Cx, Cy, R, Px, Py. Here Cx, Cy are two non-negative integers that represents the coordinate of the center of the circle, R is a double **(R > 0)** representing radius of the circle. Px, Py are two non-negative integers representing the coordinate of the point to investigate. Cx, Cy, R, Px, Py all will be less than 1000. Output: ------- For each test case print “**Case X: Y**” (without quotes) where **X** is the number of test case (start from 1). And **Y** will be either “**Outside**”, or “**Inside**”, or “**OnCircle**” (without quotation marks) depending on the outcome of your investigation. Sample Input ------------ 3 305 233 233.83 52 877 213 351 733.20 125 986 0 25 25.00 0 0 Sample Output ------------- Case 1: Outside Case 2: Inside Case 3: OnCircle [1]: https://s3-ap-southeast-1.amazonaws.com/devskillimagestorage/questionimages/57357b98-b299-c609-ad1f-08d2e26c0366_80a9da94ac9042d7a1e81c5e6583edb9_W189xH142.png

### Problem Limits

 Language Time Limit (seconds) C/C++ 1.00 Java 2.00 C# 2.00 PHP 2.00

# 163/264

Solve/Submission

### Ranking

# User Language Timing
01 Sabyasachi Cpp 0.00s
02 ishrafislam2727 Cpp 0.00s
03 MarufAhmed Cpp 0.00s
04 haasib Cpp 0.00s
05 absa1am Cpp 0.00s
06 rafsandevs Cpp 0.00s
07 maksbd19 Cpp 0.00s
08 SaMi_012 Cpp 0.00s
09 seyedssz Cpp 0.00s
10 frshafi Cpp 0.00s
11 ash12 Cpp 0.00s
12 Masum_ice Cpp 0.00s
13 atmfaisal Cpp 0.00s
14 Brokenlog Cpp 0.00s
15 maxhasan Cpp 0.00s
16 shayekh01 Cpp 0.00s
17 Agent007 Cpp 0.00s
18 Avijeet Cpp 0.00s
19 gazi93 Cpp 0.00s
20 gulzar Cpp 0.00s
21 golapraj Cpp 0.00s
22 rabib Cpp 0.00s
23 Kira Cpp 0.00s
24 lazyfahim Cpp 0.00s
25 creative Cpp 0.00s
26 terminator_c Cpp 0.00s
27 JubayerSohel Cpp 0.00s
28 samsil Cpp 0.00s
29 biswajitdas Cpp 0.00s
30 Iqbal1013 Cpp 0.00s
31 Tawhidur_Rahman Cpp 0.01s
32 Aman_khan Cpp 0.01s
33 joy25896 Cpp 0.01s
34 mohayemin CSharp 0.03s
35 Tania PHP 0.03s
36 Saima_Siddique Cpp 0.07s
37 abdulhalimchy Cpp 0.07s
38 Tanvir6364 Cpp 0.07s
39 anis Cpp 0.07s
40 Sharif_11 Cpp 0.07s
43 mahrahat Cpp 0.07s