Solutions are presented as using the least memory and the fastest execution time. It also takes the top 10 most recent solutions from each language. If you want to limit to a specific index, click the "Solved" button and go to that problem.
ContestId |
Name |
Phase |
Frozen |
Duration (Seconds) |
Relative Time |
Start Time |
|---|---|---|---|---|---|---|
| 683 | Surprise Language Round 8 | FINISHED | False | 9000 | 310312823 | June 16, 2016, 4 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 1236 ) | A | The Check of the Point | PROGRAMMING | *special geometry | 1200 |
On the coordinate plane there is a square with sides parallel to the coordinate axes. The length of the square side is equal to a . The lower left corner of the square coincides with the point ( 0, 0 ) (the point of the origin). The upper right corner of the square has positive coordinates. You are given a point with coordinates ( x , y ). Your task is to determine whether this point is located strictly inside the square, on its side, or strictly outside the square. The first line contains three integers a , x and y ( 1 ≤ a ≤ 1000 , - 1000 ≤ x , y ≤ 1000 ) — the length of the square side and the coordinates of the point which should be checked. Print one integer: 0, if the point is located strictly inside the square; 1, if the point is located on the side of the square; 2, if the point is located strictly outside the square. |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 67320363 | Vacantxin_love_null | A | Dec. 21, 2019, 7:47 a.m. | OK | Kotlin | TESTS | 70 | 124 | 0 | 1200 | |
| 53865649 | I.A.K.O.V | A | May 8, 2019, 3:24 a.m. | OK | Kotlin | TESTS | 70 | 124 | 0 | 1200 | |
| 53865625 | I.A.K.O.V | A | May 8, 2019, 3:21 a.m. | OK | Kotlin | TESTS | 70 | 124 | 0 | 1200 | |
| 18524389 | bintree | A | June 16, 2016, 4:08 p.m. | OK | Kotlin | TESTS | 70 | 124 | 0 | 1200 | |
| 18524221 | Arthur | A | June 16, 2016, 4:04 p.m. | OK | Kotlin | TESTS | 70 | 124 | 0 | 1200 | |
| 18524198 | dalex | A | June 16, 2016, 4:04 p.m. | OK | Kotlin | TESTS | 70 | 124 | 0 | 1200 | |
| 18524149 | IgorAkhmetov | A | June 16, 2016, 4:03 p.m. | OK | Kotlin | TESTS | 70 | 124 | 0 | 1200 | |
| 18524133 | Egor | A | June 16, 2016, 4:02 p.m. | OK | Kotlin | TESTS | 70 | 124 | 0 | 1200 | |
| 58192962 | vjudge4 | A | Aug. 2, 2019, 8:56 p.m. | OK | Kotlin | TESTS | 70 | 139 | 0 | 1200 | |
| 40984299 | ReaLNero1 | A | July 30, 2018, 7:18 p.m. | OK | Kotlin | TESTS | 70 | 139 | 0 | 1200 |
Back to search problems