Educational Codeforces Round 180 (Rated for Div. 2)

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
2112 Educational Codeforces Round 180 (Rated for Div. 2) FINISHED False 7200 25716323 June 23, 2025, 2:35 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 29107 ) A Race PROGRAMMING math

Alice and Bob participate in a game TV show. When the game starts, the prize will be dropped to a certain point, and whoever gets to it first will get the prize. Alice decided that she would start running from point (a). Bob, however, has not yet chosen his starting position. Bob knows that the prize could drop either at point (x) or at point (y). He also knows that he can reach the prize faster than Alice if the distance from his starting position to the prize is strictly less than the distance from Alice's starting position to the prize. The distance between any two points (c) and (d) is calculated as (|c-d|). Your task is to determine whether Bob can choose an integer point that is guarantee to get to the prize faster, regardless of where it appears (at point (x) or (y)). Bob can choose any integer point, except for (a) (in particular, he can choose to start in point (x), point (y), or any other point, but not (a)). The first line contains a single integer (t) ((1 \le t \le 1000)) — the number of test cases. The only line of each test case contains three integers (a), (x), (y) ((1 \le a, x, y \le 100)). Points (a), (x), and (y) are pairwise distinct. For each test case, print " YES " (case insensitive) if Bob can choose an integer point that is guarantee to get to the prize faster, regardless of where it appears. Otherwise, print " NO " (case insensitive). In the first example, Bob can choose point (4). If the prize will be at point (x), then Bob's distance is (|4-3|=1) and Alice's distance is (|1-3|=2). If the prize will be at point (y), then Bob's distance is (|4-4|=0) and Alice's distance is (|1-4|=3). In the second example, Bob can choose point (2). If the prize will be at point (x), then Bob's distance is (|2-3|=1) and Alice's distance is (|5-3|=2). If the prize will be at point (y), then Bob's distance is $$$|2-1|=1$$

Tutorials

Educational Codeforces Round 180 — Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
325831006 remantadin A June 23, 2025, 6:21 p.m. OK C# 13 TESTS 3 77 0
325962391 og.kostya A June 25, 2025, 5:55 a.m. OK C# 13 TESTS 3 124 0
325955865 gurkiratcode A June 25, 2025, 4:38 a.m. OK C++17 (GCC 7-32) TESTS 3 30 0
325947825 gangpener A June 25, 2025, 2:36 a.m. OK C++17 (GCC 7-32) TESTS 3 30 0
325917988 Heisenberg043 A June 24, 2025, 6:20 p.m. OK C++17 (GCC 7-32) TESTS 3 30 0
325913590 Saptarshi2005 A June 24, 2025, 5:47 p.m. OK C++17 (GCC 7-32) TESTS 3 30 0
325960798 saimun000 A June 25, 2025, 5:38 a.m. OK C++17 (GCC 7-32) TESTS 3 30 0
325903520 akshat06nagpal A June 24, 2025, 4:33 p.m. OK C++17 (GCC 7-32) TESTS 3 30 0
325902021 bittu27 A June 24, 2025, 4:22 p.m. OK C++17 (GCC 7-32) TESTS 3 30 0
325898646 blitz A June 24, 2025, 3:59 p.m. OK C++17 (GCC 7-32) TESTS 3 30 0
325840525 0xTremor A June 23, 2025, 8:23 p.m. OK C++17 (GCC 7-32) TESTS 3 30 0
325832923 Return_Owl A June 23, 2025, 6:37 p.m. OK C++17 (GCC 7-32) TESTS 3 30 0
325897733 vinayak1134 A June 24, 2025, 3:53 p.m. OK C++20 (GCC 13-64) TESTS 3 15 0
325853897 n00bmaster__ A June 24, 2025, 10 a.m. OK C++20 (GCC 13-64) TESTS 3 30 0
325960358 _joKer_0 A June 25, 2025, 5:33 a.m. OK C++20 (GCC 13-64) TESTS 3 30 0
325951060 sohamm7 A June 25, 2025, 3:23 a.m. OK C++20 (GCC 13-64) TESTS 3 30 0
325948538 kevinyang A June 25, 2025, 2:46 a.m. OK C++20 (GCC 13-64) TESTS 3 30 0
325937959 NILIKONIKOM A June 24, 2025, 9:54 p.m. OK C++20 (GCC 13-64) TESTS 3 30 0
325935094 Gadi A June 24, 2025, 8:56 p.m. OK C++20 (GCC 13-64) TESTS 3 30 0
325921023 Muhammed_Ramadan A June 24, 2025, 6:48 p.m. OK C++20 (GCC 13-64) TESTS 3 30 0
325907396 Shrione A June 24, 2025, 5 p.m. OK C++20 (GCC 13-64) TESTS 3 30 0
325853856 J.A.K.D.Z A June 24, 2025, 9:59 a.m. OK C++20 (GCC 13-64) TESTS 3 30 0
325852074 vardhan0604 A June 24, 2025, 9:27 a.m. OK C++23 (GCC 14-64, msys2) TESTS 3 15 0
325830756 smiit A June 23, 2025, 6:19 p.m. OK C++23 (GCC 14-64, msys2) TESTS 3 30 0
325917062 ramsubash A June 24, 2025, 6:13 p.m. OK C++23 (GCC 14-64, msys2) TESTS 3 30 0
325894865 student0p A June 24, 2025, 3:34 p.m. OK C++23 (GCC 14-64, msys2) TESTS 3 30 0
325891419 Hemanthoo7 A June 24, 2025, 3:11 p.m. OK C++23 (GCC 14-64, msys2) TESTS 3 30 0
325890505 cakgok A June 24, 2025, 3:06 p.m. OK C++23 (GCC 14-64, msys2) TESTS 3 30 0
325855739 hundunlilun1 A June 24, 2025, 10:25 a.m. OK C++23 (GCC 14-64, msys2) TESTS 3 30 0
325849550 ghh_ghh A June 24, 2025, 12:34 a.m. OK C++23 (GCC 14-64, msys2) TESTS 3 30 0
325846412 Md_Faiz_786 A June 23, 2025, 10:37 p.m. OK C++23 (GCC 14-64, msys2) TESTS 3 30 0
325842659 ivar_3 A June 23, 2025, 9:01 p.m. OK C++23 (GCC 14-64, msys2) TESTS 3 30 0
325842478 bigt2005 A June 23, 2025, 8:58 p.m. OK GNU C11 TESTS 3 30 102400
325957232 Panicked_potato A June 25, 2025, 4:57 a.m. OK GNU C11 TESTS 3 31 102400
325942743 crisprp53 A June 25, 2025, 12:31 a.m. OK GNU C11 TESTS 3 31 102400
325834448 aaratrikashelly A June 23, 2025, 6:53 p.m. OK GNU C11 TESTS 3 46 0
325900154 SrabonAhmed A June 24, 2025, 4:10 p.m. OK GNU C11 TESTS 3 46 0
325840270 Ashraf_HC A June 23, 2025, 8:17 p.m. OK GNU C11 TESTS 3 46 0
325836413 pinkcantcode A June 23, 2025, 7:15 p.m. OK GNU C11 TESTS 3 46 0
325824973 Bor_nik A June 23, 2025, 5:33 p.m. OK GNU C11 TESTS 3 46 102400
325894542 sad10001 A June 24, 2025, 3:32 p.m. OK GNU C11 TESTS 3 61 102400
325843876 Cima16 A June 23, 2025, 9:28 p.m. OK GNU C11 TESTS 3 62 0
325852934 triperci A June 24, 2025, 9:40 a.m. OK Go TESTS 3 46 102400
325954927 ArcaStellar A June 25, 2025, 4:23 a.m. OK Haskell TESTS 3 62 0
325824929 singhdevansh024 A June 23, 2025, 5:33 p.m. OK Java 21 TESTS 3 202 0
325890568 tekka_ity A June 24, 2025, 3:06 p.m. OK Java 21 TESTS 3 202 0
325821839 sagbis A June 23, 2025, 5:12 p.m. OK Java 21 TESTS 3 217 0
325892234 __Aviral__ A June 24, 2025, 3:17 p.m. OK Java 21 TESTS 3 218 0
325858989 __Aviral__ A June 24, 2025, 10:56 a.m. OK Java 21 TESTS 3 218 307200
325827076 fuckboy69 A June 23, 2025, 5:50 p.m. OK Java 21 TESTS 3 218 614400
325949321 Sanat0412 A June 25, 2025, 2:58 a.m. OK Java 21 TESTS 3 218 614400
325926018 whenn09 A June 24, 2025, 7:47 p.m. OK Java 21 TESTS 3 218 921600
325830838 PlayDate A June 23, 2025, 6:19 p.m. OK Java 21 TESTS 3 218 1740800
325821345 jaydoshi240605 A June 23, 2025, 5:08 p.m. OK Java 21 TESTS 3 234 819200
325835400 adibhai0845R A June 23, 2025, 7:03 p.m. OK Java 8 TESTS 3 139 0
325823266 Akash_Baidya2005 A June 23, 2025, 5:21 p.m. OK Java 8 TESTS 3 139 0
325897481 Purav_Shah07 A June 24, 2025, 3:51 p.m. OK Java 8 TESTS 3 140 0
325842724 Sumitsingh7 A June 23, 2025, 9:03 p.m. OK Java 8 TESTS 3 140 6758400
325831470 Bhuvan_Chandra_Joshi A June 23, 2025, 6:24 p.m. OK Java 8 TESTS 3 155 0
325948400 naman_9045 A June 25, 2025, 2:44 a.m. OK Java 8 TESTS 3 155 0
325832691 tripti_27 A June 23, 2025, 6:35 p.m. OK Java 8 TESTS 3 155 0
325833387 ABHIRAM2005 A June 23, 2025, 6:42 p.m. OK Java 8 TESTS 3 156 0
325914140 Futen A June 24, 2025, 5:51 p.m. OK Java 8 TESTS 3 171 0
325904328 aryangupta1604 A June 24, 2025, 4:38 p.m. OK Java 8 TESTS 3 171 0
325908844 CodeBugs A June 24, 2025, 5:12 p.m. OK Kotlin 1.9 TESTS 3 140 0
325845984 gopikrishna9968 A June 23, 2025, 10:24 p.m. OK PyPy 3 TESTS 3 109 1536000
325908398 ArtistByDay_LokiByNight A June 24, 2025, 5:08 p.m. OK PyPy 3 TESTS 3 124 2764800
325829578 Drin A June 23, 2025, 6:09 p.m. OK PyPy 3 TESTS 3 124 2867200
325906810 zOrO6903 A June 24, 2025, 4:56 p.m. OK PyPy 3 TESTS 3 140 2764800
325906393 jvhaa A June 24, 2025, 4:53 p.m. OK PyPy 3 TESTS 3 140 2969600
325894796 sahasrareddychepyala A June 24, 2025, 3:33 p.m. OK PyPy 3 TESTS 3 202 6246400
325952120 letuananh2012 A June 25, 2025, 3:39 a.m. OK PyPy 3 TESTS 3 202 6451200
325833656 gardengnome A June 23, 2025, 6:45 p.m. OK PyPy 3-64 TESTS 3 62 0
325829529 SmitUdani A June 23, 2025, 6:08 p.m. OK PyPy 3-64 TESTS 3 77 1740800
325896273 24hr_ramen A June 24, 2025, 3:44 p.m. OK PyPy 3-64 TESTS 3 78 0
325836774 Pie854 A June 23, 2025, 7:20 p.m. OK PyPy 3-64 TESTS 3 78 102400
325928720 monocrap A June 24, 2025, 8:24 p.m. OK PyPy 3-64 TESTS 3 78 1433600
325950533 Mandeep_codes A June 25, 2025, 3:15 a.m. OK PyPy 3-64 TESTS 3 92 2355200
325956857 Circulation A June 25, 2025, 4:52 a.m. OK PyPy 3-64 TESTS 3 93 1433600
325938907 komal12 A June 24, 2025, 10:20 p.m. OK PyPy 3-64 TESTS 3 93 1433600
325846989 0x23d11 A June 23, 2025, 10:59 p.m. OK PyPy 3-64 TESTS 3 93 1433600
325941236 Santrixcu12 A June 24, 2025, 11:38 p.m. OK PyPy 3-64 TESTS 3 93 1536000
325896348 biltharesatyendra A June 24, 2025, 3:44 p.m. OK Python 2 TESTS 3 77 0
325891708 shubham6105 A June 24, 2025, 3:13 p.m. OK Python 3 TESTS 3 61 0
325848420 lirichard6474 A June 23, 2025, 11:51 p.m. OK Python 3 TESTS 3 61 0
325822775 gokulraaj59 A June 23, 2025, 5:18 p.m. OK Python 3 TESTS 3 61 0
325894579 raspavel A June 24, 2025, 3:32 p.m. OK Python 3 TESTS 3 61 307200
325847412 supreeth_rishi A June 23, 2025, 11:13 p.m. OK Python 3 TESTS 3 61 307200
325939657 salil17 A June 24, 2025, 10:45 p.m. OK Python 3 TESTS 3 62 0
325924133 Jfry03 A June 24, 2025, 7:25 p.m. OK Python 3 TESTS 3 62 0
325905499 anubhavmaurya A June 24, 2025, 4:46 p.m. OK Python 3 TESTS 3 62 0
325859065 hless3012 A June 24, 2025, 10:56 a.m. OK Python 3 TESTS 3 62 0
325959770 rcd A June 25, 2025, 5:27 a.m. OK Python 3 TESTS 3 62 204800
325944995 qqqqc A June 25, 2025, 1:35 a.m. OK Rust 2021 TESTS 3 46 0
325852329 DanielAnker A June 24, 2025, 9:31 a.m. OK Rust 2021 TESTS 3 46 0
325846760 DeanMenezes3 A June 23, 2025, 10:51 p.m. OK Rust 2021 TESTS 3 46 0
325912909 cinkozzz A June 24, 2025, 5:43 p.m. OK Rust 2021 TESTS 3 62 0

remove filters

Back to search problems