Educational Codeforces Round 167 (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
1989 Educational Codeforces Round 167 (Rated for Div. 2) FINISHED False 7200 12324299 June 27, 2024, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 26367 ) A Catch the Coin PROGRAMMING implementation

B'Monocarp visited a retro arcade club with arcade cabinets. There got curious about the "Catch the Coin" cabinet. The game is pretty simple. The screen represents a coordinate grid such that: At the beginning of the game, the character is located in the center, and n coins appear on the screen -- the i -th coin is at coordinates (x_i, y_i) . The coordinates of all coins are different and not equal to (0, 0) . In one second, Monocarp can move the character in one of eight directions. If the character is at coordinates (x, y) , then it can end up at any of the coordinates (x, y + 1) , (x + 1, y + 1) , (x + 1, y) , (x + 1, y - 1) , (x, y - 1) , (x - 1, y - 1) , (x - 1, y) , (x - 1, y + 1) . If the character ends up at the coordinates with a coin, then Monocarp collects that coin. After Monocarp makes a move, all coins fall down by 1 , that is, they move from (x, y) to (x, y - 1) . You can assume that the game field is infinite in all directions. Monocarp wants to collect at least one coin, but cannot decide which coin to go for. Help him determine, for each coin, whether he can collect it. The first line contains a single integer n ( 1 <= n <= 500 ) -- the number of coins. In the i -th of the next n lines, two integers x_i and y_i ( -50 <= x_i, y_i <= 50 ) are written -- the coordinates of the i -th coin. The coordinates of all coins are different. No coin is located at (0, 0) . For each coin, print "YES" if Monocarp can collect it. Otherwise, print "NO". Pay attention to the second coin in the example. Monocarp can first move from (0, 0) to (-1, -1) . Then the coin falls 1 down and ends up at (-2, -2) . Finally, Monocarp moves to (-2, -2) and collects the coin. '...

Tutorials

Educational Codeforces Round 167 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
267796353 AhmedMaherAli A June 28, 2024, 2:35 a.m. OK C# 10 TESTS 7 108 102400
267802939 kavyanjani A June 28, 2024, 5:07 a.m. OK C++14 (GCC 6-32) TESTS 7 31 0
267949570 kayjay0503 A June 29, 2024, 5:33 a.m. OK C++14 (GCC 6-32) TESTS 7 46 0
267948183 zucrose A June 29, 2024, 5:17 a.m. OK C++14 (GCC 6-32) TESTS 7 46 0
267946465 Komeijizen A June 29, 2024, 4:56 a.m. OK C++14 (GCC 6-32) TESTS 7 46 0
267946441 BISMILLAH_NR A June 29, 2024, 4:56 a.m. OK C++14 (GCC 6-32) TESTS 7 46 0
267946169 akshatsharma.sja A June 29, 2024, 4:52 a.m. OK C++14 (GCC 6-32) TESTS 7 46 0
267941643 lnomjon A June 29, 2024, 3:54 a.m. OK C++14 (GCC 6-32) TESTS 7 46 0
267933698 ljyyyds5B A June 29, 2024, 1:34 a.m. OK C++14 (GCC 6-32) TESTS 7 46 0
267937688 fadi__ A June 29, 2024, 2:49 a.m. OK C++14 (GCC 6-32) TESTS 7 46 0
267950696 CapClark A June 29, 2024, 5:47 a.m. OK C++14 (GCC 6-32) TESTS 7 46 0
267821669 santoshswansi_ A June 28, 2024, 8:07 a.m. OK C++17 (GCC 7-32) TESTS 7 31 0
267948469 tanvir50198 A June 29, 2024, 5:20 a.m. OK C++17 (GCC 7-32) TESTS 7 31 0
267887112 lyt_cg A June 28, 2024, 4:02 p.m. OK C++17 (GCC 7-32) TESTS 7 31 0
267886026 Dhruvgoplani23 A June 28, 2024, 3:55 p.m. OK C++17 (GCC 7-32) TESTS 7 31 0
267864843 roshan_29 A June 28, 2024, 1:30 p.m. OK C++17 (GCC 7-32) TESTS 7 31 0
267864031 arka__009 A June 28, 2024, 1:24 p.m. OK C++17 (GCC 7-32) TESTS 7 31 0
267852969 praveshtiwari_02 A June 28, 2024, noon OK C++17 (GCC 7-32) TESTS 7 31 0
267848302 AdwityaMani2002 A June 28, 2024, 11:23 a.m. OK C++17 (GCC 7-32) TESTS 7 31 0
267848248 devank0110 A June 28, 2024, 11:23 a.m. OK C++17 (GCC 7-32) TESTS 7 31 0
267827714 ayush089 A June 28, 2024, 8:50 a.m. OK C++17 (GCC 7-32) TESTS 7 31 0
267951522 ashutosh_jha A June 29, 2024, 5:55 a.m. OK C++20 (GCC 13-64) TESTS 7 30 0
267913997 alexashka A June 28, 2024, 7:42 p.m. OK C++20 (GCC 13-64) TESTS 7 31 0
267951860 BowTen A June 29, 2024, 5:59 a.m. OK C++20 (GCC 13-64) TESTS 7 31 0
267944588 atharwazawar23 A June 29, 2024, 4:32 a.m. OK C++20 (GCC 13-64) TESTS 7 31 0
267939570 abdheshdash8 A June 29, 2024, 3:21 a.m. OK C++20 (GCC 13-64) TESTS 7 31 0
267936590 bobby222222222 A June 29, 2024, 2:31 a.m. OK C++20 (GCC 13-64) TESTS 7 31 0
267930664 malloc_function A June 29, 2024, 12:20 a.m. OK C++20 (GCC 13-64) TESTS 7 31 0
267915150 belalfawzyy10 A June 28, 2024, 7:55 p.m. OK C++20 (GCC 13-64) TESTS 7 31 0
267914743 _SuguruGeto_ A June 28, 2024, 7:50 p.m. OK C++20 (GCC 13-64) TESTS 7 31 0
267913604 MAA1117 A June 28, 2024, 7:37 p.m. OK C++20 (GCC 13-64) TESTS 7 31 0
267923917 bluemegane A June 28, 2024, 9:57 p.m. OK C# 8 TESTS 7 124 0
267856017 xsqqq A June 28, 2024, 12:23 p.m. OK GNU C11 TESTS 7 46 0
267843501 wow...... A June 28, 2024, 10:45 a.m. OK GNU C11 TESTS 7 46 0
267806842 M081i_0nine A June 28, 2024, 5:49 a.m. OK GNU C11 TESTS 7 46 0
267871244 srajan0149 A June 28, 2024, 2:16 p.m. OK GNU C11 TESTS 7 46 102400
267804974 atharvatol04 A June 28, 2024, 5:31 a.m. OK GNU C11 TESTS 7 46 102400
267803134 RAImran A June 28, 2024, 5:09 a.m. OK GNU C11 TESTS 7 61 102400
267946989 XGptw A June 29, 2024, 5:03 a.m. OK Go TESTS 7 46 0
267941829 MudCoal A June 29, 2024, 3:57 a.m. OK Go TESTS 7 62 0
267794193 alotoffunlol A June 28, 2024, 1:19 a.m. OK Go TESTS 7 93 102400
267863311 Naoki_M A June 28, 2024, 1:19 p.m. OK Haskell TESTS 7 46 0
267884743 kunalraj8051 A June 28, 2024, 3:46 p.m. OK Java 21 TESTS 7 218 204800
267804748 anupam_das_2011 A June 28, 2024, 5:28 a.m. OK Java 21 TESTS 7 218 409600
267951109 bhavya_boda A June 29, 2024, 5:51 a.m. OK Java 21 TESTS 7 218 512000
267799622 SG_14 A June 28, 2024, 4:08 a.m. OK Java 21 TESTS 7 218 512000
267806912 amit_roy A June 28, 2024, 5:50 a.m. OK Java 21 TESTS 7 233 512000
267926814 UNsOlVeR_ben_3laa_Zero A June 28, 2024, 10:55 p.m. OK Java 21 TESTS 7 234 512000
267869292 Rakshit_07 A June 28, 2024, 2:02 p.m. OK Java 21 TESTS 7 249 512000
267906130 Gaurav1511 A June 28, 2024, 6:25 p.m. OK Java 21 TESTS 7 249 512000
267852520 T-Walker A June 28, 2024, 11:57 a.m. OK Java 21 TESTS 7 249 614400
267805058 Althaf_Hussain A June 28, 2024, 5:32 a.m. OK Java 21 TESTS 7 264 512000
267821691 Mr.Numerator_007 A June 28, 2024, 8:07 a.m. OK Java 8 TESTS 7 124 0
267854062 Saurabh124 A June 28, 2024, 12:08 p.m. OK Java 8 TESTS 7 155 0
267846131 Stern_Lee04 A June 28, 2024, 11:05 a.m. OK Java 8 TESTS 7 155 0
267925143 2manas1 A June 28, 2024, 10:21 p.m. OK Java 8 TESTS 7 156 0
267912174 parth.230101085 A June 28, 2024, 7:23 p.m. OK Java 8 TESTS 7 171 0
267902417 toufique_husein A June 28, 2024, 5:56 p.m. OK Java 8 TESTS 7 171 0
267846545 klu_2100030216 A June 28, 2024, 11:08 a.m. OK Java 8 TESTS 7 171 0
267844091 kl_2100030700 A June 28, 2024, 10:49 a.m. OK Java 8 TESTS 7 171 0
267839983 Pradumb_Dhyani A June 28, 2024, 10:19 a.m. OK Java 8 TESTS 7 171 0
267805451 Kaikondar A June 28, 2024, 5:36 a.m. OK Java 8 TESTS 7 171 0
267823949 SlavaG A June 28, 2024, 8:24 a.m. OK Kotlin 1.9 TESTS 7 186 0
267881066 parth_7042 A June 28, 2024, 3:22 p.m. OK PHP TESTS 7 77 102400
267946756 tabibi A June 29, 2024, 5 a.m. OK PHP TESTS 7 108 102400
267834190 Elmurat A June 28, 2024, 9:35 a.m. OK PyPy 3 TESTS 7 93 0
267859656 WairForIt A June 28, 2024, 12:52 p.m. OK PyPy 3 TESTS 7 93 1433600
267825956 co23btech11003 A June 28, 2024, 8:38 a.m. OK PyPy 3 TESTS 7 93 1536000
267880201 Ysb04 A June 28, 2024, 3:16 p.m. OK PyPy 3 TESTS 7 108 0
267800239 co23btech11003 A June 28, 2024, 4:22 a.m. OK PyPy 3 TESTS 7 108 1433600
267798639 co23btech11003 A June 28, 2024, 3:42 a.m. OK PyPy 3 TESTS 7 108 1433600
267860629 TheDarkArmyMaster A June 28, 2024, 12:59 p.m. OK PyPy 3 TESTS 7 109 1433600
267858654 joycode A June 28, 2024, 12:43 p.m. OK PyPy 3 TESTS 7 109 1433600
267798825 tetsu7 A June 28, 2024, 3:47 a.m. OK PyPy 3 TESTS 7 109 1536000
267862756 WairForIt A June 28, 2024, 1:14 p.m. OK PyPy 3 TESTS 7 124 1433600
267932839 InHng A June 29, 2024, 1:15 a.m. OK PyPy 3-64 TESTS 7 77 0
267928422 MdAbedin A June 28, 2024, 11:27 p.m. OK PyPy 3-64 TESTS 7 77 0
267909582 rmr A June 28, 2024, 6:56 p.m. OK PyPy 3-64 TESTS 7 77 0
267909528 rmr A June 28, 2024, 6:56 p.m. OK PyPy 3-64 TESTS 7 77 0
267894292 master_JD A June 28, 2024, 4:52 p.m. OK PyPy 3-64 TESTS 7 77 0
267794738 mikeac A June 28, 2024, 1:39 a.m. OK PyPy 3-64 TESTS 7 77 0
267842674 abenezer_m54 A June 28, 2024, 10:38 a.m. OK PyPy 3-64 TESTS 7 77 716800
267942721 abhiram_ca A June 29, 2024, 4:09 a.m. OK PyPy 3-64 TESTS 7 77 1228800
267918641 twoo.zyy A June 28, 2024, 8:37 p.m. OK PyPy 3-64 TESTS 7 77 1228800
267883573 M.ZeeshanRashid A June 28, 2024, 3:38 p.m. OK PyPy 3-64 TESTS 7 77 1228800
267951962 pennymagic156 A June 29, 2024, 6 a.m. OK Python 3 TESTS 7 61 0
267864789 physvale A June 28, 2024, 1:30 p.m. OK Python 3 TESTS 7 61 0
267845735 faelitna A June 28, 2024, 11:02 a.m. OK Python 3 TESTS 7 61 0
267832958 DEVIL_NEEL A June 28, 2024, 9:26 a.m. OK Python 3 TESTS 7 61 0
267802638 VioletVal A June 28, 2024, 5:04 a.m. OK Python 3 TESTS 7 61 0
267951997 shashanksp851 A June 29, 2024, 6 a.m. OK Python 3 TESTS 7 62 0
267951931 katarimuralikrishna2796 A June 29, 2024, 6 a.m. OK Python 3 TESTS 7 62 0
267945983 Maheshwari.Tech A June 29, 2024, 4:50 a.m. OK Python 3 TESTS 7 62 0
267940261 rajesh__18 A June 29, 2024, 3:32 a.m. OK Python 3 TESTS 7 62 0
267934936 TimurABS A June 29, 2024, 2:02 a.m. OK Python 3 TESTS 7 62 0
267838546 0x81 A June 28, 2024, 10:09 a.m. OK Ruby 3 TESTS 7 327 1228800
267851968 var4yn A June 28, 2024, 11:53 a.m. OK Rust 2021 TESTS 7 31 0
267838267 kshitij A June 28, 2024, 10:06 a.m. OK Rust 2021 TESTS 7 46 0
267800643 123gjweq2 A June 28, 2024, 4:30 a.m. OK Rust 2021 TESTS 7 61 0

remove filters

Back to search problems