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 |
|---|---|---|---|---|---|---|
| 2199 | Kotlin Heroes: Episode 14 | FINISHED | False | 9000 | 3943523 | March 2, 2026, 2:35 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 57 ) | G | Jammer | PROGRAMMING | *special math |
On a field of size (n \times m), there is a robot located at point ((0, 0)), whose task is to reach point ((n, m)). The robot moves in steps: at each step, it can move one unit to the right or one unit up. In other words, if it is currently at point ((i, j)), it can move to either ((i + 1, j)) or ((i, j + 1)) in one step. You do not know the exact route of the robot, but you need to intercept it. For this purpose, you have a jammer with power (r), which you can place at any integer point ((x, y)) on the field ((0 \le x \le n); (0 \le y \le m)). The robot is considered to be intercepted if at some point during its movement it is within a distance of no more than (r) from the jammer. In other words, if there exists a point ((i, j)) on the robot's path such that (\sqrt{(i - x)^2 + (j - y)^2} \le r). But there is a problem: if you place the jammer too close to the starting or the ending point of the robot's route, it will be noticed, and your plan will be compromised. Thus, you want to position the jammer so that it covers neither the point ((0, 0)) nor the point ((n, m)) (i. e., the distance to each of them must be strictly greater than (r)). Calculate the number of suitable points for placing the jammer. A point is suitable if it is not too close to the ends of the route, but at the same time, the robot will be intercepted regardless of the route it takes. The first line contains one integer (t) ((1 \le t \le 100)) — the number of test cases. The following are the (t) test cases. The first and only line of each test case contains three integers (n), (m), and (r) ((n, m \ge 1); (n \cdot m \le 10^9); (1 \le r \le n + m)) — the dimensions of the field and the power of the jammer. For each test case, output a single integer — the number of points suitable for placing the jammer. One possible placement of the jammer for the second test case is illustrated in the st |
| 151783 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 365121529 | MagnusCarlsen321 | G | March 2, 2026, 5 p.m. | OK | Kotlin 1.7 | TESTS | 18 | 218 | 0 | ||
| 365121913 | rameez0636 | G | March 2, 2026, 5:03 p.m. | OK | Kotlin 1.7 | TESTS | 18 | 234 | 2457600 | ||
| 365117448 | lzyrapx | G | March 2, 2026, 4:30 p.m. | OK | Kotlin 1.7 | TESTS | 18 | 250 | 0 | ||
| 365135052 | raypraveen47 | G | March 2, 2026, 6:56 p.m. | OK | Kotlin 1.7 | TESTS | 18 | 250 | 204800 | ||
| 365121148 | zoryn | G | March 2, 2026, 4:58 p.m. | OK | Kotlin 1.7 | TESTS | 18 | 281 | 1024000 | ||
| 365117019 | imnhatnguyen | G | March 2, 2026, 4:26 p.m. | OK | Kotlin 1.7 | TESTS | 18 | 281 | 3788800 | ||
| 365115680 | tabr | G | March 2, 2026, 4:16 p.m. | OK | Kotlin 1.7 | TESTS | 18 | 312 | 1126400 | ||
| 365119550 | ttamx | G | March 2, 2026, 4:46 p.m. | OK | Kotlin 1.7 | TESTS | 18 | 359 | 32153600 | ||
| 365114881 | literalchild | G | March 2, 2026, 4:09 p.m. | OK | Kotlin 1.7 | TESTS | 18 | 375 | 1126400 | ||
| 365117685 | Sumit_Mahajan | G | March 2, 2026, 4:31 p.m. | OK | Kotlin 1.7 | TESTS | 18 | 968 | 199680000 | ||
| 365117125 | BucketPotato | G | March 2, 2026, 4:27 p.m. | OK | Kotlin 1.9 | TESTS | 18 | 687 | 0 | ||
| 365118196 | PelicanPilot | G | March 2, 2026, 4:35 p.m. | OK | Kotlin 2.2 | TESTS | 18 | 109 | 23654400 | ||
| 365119954 | maomao90 | G | March 2, 2026, 4:49 p.m. | OK | Kotlin 2.2 | TESTS | 18 | 140 | 25088000 | ||
| 365161765 | thanhnguyxn07 | G | March 3, 2026, 2:37 a.m. | OK | Kotlin 2.2 | TESTS | 18 | 171 | 23961600 | ||
| 365164622 | Stevekotlarz | G | March 3, 2026, 3:33 a.m. | OK | Kotlin 2.2 | TESTS | 18 | 171 | 24268800 | ||
| 365120540 | Kieray | G | March 2, 2026, 4:53 p.m. | OK | Kotlin 2.2 | TESTS | 18 | 171 | 24371200 | ||
| 365114519 | Sulfox | G | March 2, 2026, 4:06 p.m. | OK | Kotlin 2.2 | TESTS | 18 | 171 | 25088000 | ||
| 365120415 | AHOIwhker | G | March 2, 2026, 4:52 p.m. | OK | Kotlin 2.2 | TESTS | 18 | 187 | 25088000 | ||
| 365118312 | darnley | G | March 2, 2026, 4:36 p.m. | OK | Kotlin 2.2 | TESTS | 18 | 187 | 25088000 | ||
| 365115585 | uwi | G | March 2, 2026, 4:15 p.m. | OK | Kotlin 2.2 | TESTS | 18 | 187 | 25088000 | ||
| 365119126 | Fysty | G | March 2, 2026, 4:42 p.m. | OK | Kotlin 2.2 | TESTS | 18 | 250 | 25088000 |
Back to search problems