Codeforces Global Round 10

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
1392 Codeforces Global Round 10 FINISHED False 10800 139591463 Aug. 16, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 9121 ) D Omkar and Bed Wars PROGRAMMING constructive algorithms dp greedy math strings

B'Omkar is playing his favorite pixelated video game, Bed Wars! In Bed Wars, there are n players arranged in a circle, so that for all j such that 2 <= q j <= q n , player j - 1 is to the left of the player j , and player j is to the right of player j - 1 . Additionally, player n is to the left of player 1 , and player 1 is to the right of player n . Currently, each player is attacking either the player to their left or the player to their right. This means that each player is currently being attacked by either 0 , 1 , or 2 other players. A key element of Bed Wars strategy is that if a player is being attacked by exactly 1 other player, then they should logically attack that player in response. If instead a player is being attacked by 0 or 2 other players, then Bed Wars strategy says that the player can logically attack either of the adjacent players. Unfortunately, it might be that some players in this game are not following Bed Wars strategy correctly. Omkar is aware of whom each player is currently attacking, and he can talk to any amount of the n players in the game to make them instead attack another player -- i. e. if they are currently attacking the player to their left, Omkar can convince them to instead attack the player to their right; if they are currently attacking the player to their right, Omkar can convince them to instead attack the player to their left. Omkar would like all players to be acting logically. Calculate the minimum amount of players that Omkar needs to talk to so that after all players he talked to (if any) have changed which player they are attacking, all players are acting logically according to Bed Wars strategy. Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= t <= 10^4 ). The descriptions of the test cases follows. The first line of each test case contains one i'...

Tutorials

Codeforces Global Round 10 — Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
90876903 Steve1234 D Aug. 25, 2020, 7:15 a.m. OK Clang++17 Diagnostics TESTS 50 202 15155200
90877362 Steve1234 D Aug. 25, 2020, 7:21 a.m. OK Clang++17 Diagnostics TESTS 50 202 16076800
91014810 luogu_bot3 D Aug. 26, 2020, 3:57 a.m. OK FPC TESTS 50 62 2252800
90364070 ajoydey00001 D Aug. 19, 2020, 6:43 a.m. OK GNU C11 TESTS 50 62 204800
90448180 luogu_bot5 D Aug. 20, 2020, 8:58 a.m. OK GNU C++11 TESTS 50 31 0
91532202 CrazyDave D Sept. 1, 2020, 2:52 a.m. OK GNU C++11 TESTS 50 31 0
90465668 hjww D Aug. 20, 2020, 1:21 p.m. OK GNU C++11 TESTS 50 31 204800
90459246 kimyon D Aug. 20, 2020, 11:48 a.m. OK GNU C++11 TESTS 50 31 204800
90459112 Watermonster D Aug. 20, 2020, 11:46 a.m. OK GNU C++11 TESTS 50 31 204800
90361696 mzajt123 D Aug. 19, 2020, 6:08 a.m. OK GNU C++11 TESTS 50 31 204800
90291248 npng D Aug. 18, 2020, 8:44 a.m. OK GNU C++11 TESTS 50 31 204800
91560330 OIerwanhong D Sept. 1, 2020, 11:27 a.m. OK GNU C++11 TESTS 50 31 204800
90404095 zhaobo D Aug. 19, 2020, 3:54 p.m. OK GNU C++11 TESTS 50 31 409600
90428460 HANGANG D Aug. 20, 2020, 2:52 a.m. OK GNU C++11 TESTS 50 31 409600
90316577 LOSER4ever D Aug. 18, 2020, 2:28 p.m. OK GNU C++14 TESTS 50 31 204800
90404426 1804020410 D Aug. 19, 2020, 3:58 p.m. OK GNU C++14 TESTS 50 31 409600
91168150 ranger2k D Aug. 27, 2020, 9:19 p.m. OK GNU C++14 TESTS 50 31 409600
91576008 Sourabh_007 D Sept. 1, 2020, 2:50 p.m. OK GNU C++14 TESTS 50 31 512000
91279799 ssyze D Aug. 29, 2020, 11:21 a.m. OK GNU C++14 TESTS 50 31 512000
91179935 Lazy_lad D Aug. 28, 2020, 5:01 a.m. OK GNU C++14 TESTS 50 31 512000
91042201 sidd9812 D Aug. 26, 2020, 10:45 a.m. OK GNU C++14 TESTS 50 31 512000
90849350 nobody_1 D Aug. 24, 2020, 5:37 p.m. OK GNU C++14 TESTS 50 31 512000
90418659 emperor_gentoo D Aug. 19, 2020, 8:09 p.m. OK GNU C++14 TESTS 50 31 512000
91629166 dhritishman22 D Sept. 2, 2020, 9:48 a.m. OK GNU C++14 TESTS 50 31 512000
90428744 hope_it_ac D Aug. 20, 2020, 3:01 a.m. OK GNU C++17 TESTS 50 31 204800
91529992 dragonylee D Sept. 1, 2020, 1:26 a.m. OK GNU C++17 TESTS 50 31 204800
91292888 hyjtxdy D Aug. 29, 2020, 2:46 p.m. OK GNU C++17 TESTS 50 31 204800
90360607 Lemur95 D Aug. 19, 2020, 5:49 a.m. OK GNU C++17 TESTS 50 31 204800
90433771 haritarth D Aug. 20, 2020, 5:11 a.m. OK GNU C++17 TESTS 50 31 409600
91298814 k1tE D Aug. 29, 2020, 4:21 p.m. OK GNU C++17 TESTS 50 31 512000
91647531 spookywooky D Sept. 2, 2020, 2:06 p.m. OK GNU C++17 TESTS 50 31 512000
91203305 priyanshu_kr03 D Aug. 28, 2020, 11:31 a.m. OK GNU C++17 TESTS 50 31 512000
91192499 vedang122 D Aug. 28, 2020, 8:38 a.m. OK GNU C++17 TESTS 50 31 512000
91520401 sumeet_4275 D Aug. 31, 2020, 7:30 p.m. OK GNU C++17 TESTS 50 31 512000
90435035 Neo278 D Aug. 20, 2020, 5:36 a.m. OK GNU C++17 (64) TESTS 50 31 512000
90384083 sayan_244 D Aug. 19, 2020, 11:35 a.m. OK GNU C++17 (64) TESTS 50 31 512000
90320911 Kalashnikov D Aug. 18, 2020, 3:12 p.m. OK GNU C++17 (64) TESTS 50 31 512000
90311758 Jo3kerR D Aug. 18, 2020, 1:29 p.m. OK GNU C++17 (64) TESTS 50 31 512000
90421459 tyler D Aug. 19, 2020, 9:38 p.m. OK GNU C++17 (64) TESTS 50 31 512000
91510299 sharrad99 D Aug. 31, 2020, 4:40 p.m. OK GNU C++17 (64) TESTS 50 31 512000
91239566 agarwala2512 D Aug. 28, 2020, 7:18 p.m. OK GNU C++17 (64) TESTS 50 31 512000
91219347 zxcv_1 D Aug. 28, 2020, 2:56 p.m. OK GNU C++17 (64) TESTS 50 31 512000
91135942 user9029 D Aug. 27, 2020, 1:19 p.m. OK GNU C++17 (64) TESTS 50 31 512000
90498291 Daniel19Frenzy D Aug. 20, 2020, 10:28 p.m. OK GNU C++17 (64) TESTS 50 31 512000
91028630 Trishan D Aug. 26, 2020, 7:30 a.m. OK Go TESTS 50 77 1126400
90310104 Akash_kunwar D Aug. 18, 2020, 1:08 p.m. OK Java 11 TESTS 50 187 0
90884189 trungnv280201 D Aug. 25, 2020, 8:55 a.m. OK Java 11 TESTS 50 202 0
90513538 glider.g D Aug. 21, 2020, 8:09 a.m. OK Java 11 TESTS 50 202 23961600
90623839 rakshith12 D Aug. 21, 2020, 5:38 p.m. OK Java 11 TESTS 50 202 24064000
91224991 nikhilmishra1211 D Aug. 28, 2020, 3:54 p.m. OK Java 11 TESTS 50 233 0
90416286 jayesh_patil D Aug. 19, 2020, 7:11 p.m. OK Java 11 TESTS 50 249 0
90740847 decoder_1671 D Aug. 23, 2020, 8:57 a.m. OK Java 11 TESTS 50 249 64921600
90293816 cowboy_29 D Aug. 18, 2020, 9:20 a.m. OK Java 11 TESTS 50 264 0
90378035 kartikeysemwal D Aug. 19, 2020, 10:07 a.m. OK Java 11 TESTS 50 280 0
90847812 rinf D Aug. 24, 2020, 5:15 p.m. OK Java 11 TESTS 50 311 0
90367900 noobie_code D Aug. 19, 2020, 7:39 a.m. OK Java 8 TESTS 50 109 0
90894438 strange007 D Aug. 25, 2020, 11:26 a.m. OK Java 8 TESTS 50 124 0
90462252 bluesky111 D Aug. 20, 2020, 12:34 p.m. OK Java 8 TESTS 50 124 0
90342757 Nirav412000 D Aug. 18, 2020, 8:15 p.m. OK Java 8 TESTS 50 124 0
90515923 nandit D Aug. 21, 2020, 8:41 a.m. OK Java 8 TESTS 50 124 20480000
90792027 tirth9960 D Aug. 24, 2020, 3:10 a.m. OK Java 8 TESTS 50 124 20582400
90523336 shivansh_6801 D Aug. 21, 2020, 10:30 a.m. OK Java 8 TESTS 50 124 20582400
90697260 kalzor D Aug. 22, 2020, 2:56 p.m. OK Java 8 TESTS 50 124 20684800
90811046 189301019.akshay D Aug. 24, 2020, 9:06 a.m. OK Java 8 TESTS 50 124 20787200
91248852 godxpunk D Aug. 29, 2020, 12:28 a.m. OK Java 8 TESTS 50 139 0
90766865 Rivankata D Aug. 23, 2020, 3:10 p.m. OK Kotlin TESTS 50 140 20992000
91517577 felix412441 D Aug. 31, 2020, 6:33 p.m. OK Kotlin TESTS 50 233 0
91478143 koper D Aug. 31, 2020, 9:41 a.m. OK Kotlin TESTS 50 249 21708800
90325795 YTICpoch D Aug. 18, 2020, 4:03 p.m. OK MS C++ TESTS 50 46 819200
90369881 TheSoundOfZero D Aug. 19, 2020, 8:07 a.m. OK MS C++ TESTS 50 77 512000
90317905 RabbitPower D Aug. 18, 2020, 2:42 p.m. OK MS C++ 2017 TESTS 50 46 1331200
90700695 getN1ght D Aug. 22, 2020, 3:45 p.m. OK MS C++ 2017 TESTS 50 46 8089600
91077989 areo D Aug. 26, 2020, 5 p.m. OK MS C++ 2017 TESTS 50 78 1228800
91207077 Explode D Aug. 28, 2020, 12:29 p.m. OK MS C++ 2017 TESTS 50 78 1331200
90544553 vjudge5 D Aug. 21, 2020, 2:44 p.m. OK MS C++ 2017 TESTS 50 109 4096000
90452948 shaikh_ubaid D Aug. 20, 2020, 10:12 a.m. OK PyPy 2 TESTS 50 187 8192000
90491469 aeternalis1 D Aug. 20, 2020, 7:11 p.m. OK PyPy 2 TESTS 50 389 11776000
90714211 yumtam D Aug. 22, 2020, 7:39 p.m. OK PyPy 2 TESTS 50 436 55705600
90900710 Anuranjan_Pandey D Aug. 25, 2020, 12:55 p.m. OK PyPy 3 TESTS 50 171 5017600
90897112 maravdm D Aug. 25, 2020, 12:03 p.m. OK PyPy 3 TESTS 50 218 5734400
91676334 rubber_duckieOwOwO D Sept. 2, 2020, 10:04 p.m. OK PyPy 3 TESTS 50 233 7782400
91676482 rubber_duckieOwOwO D Sept. 2, 2020, 10:10 p.m. OK PyPy 3 TESTS 50 249 9216000
90383782 2019ucp1350 D Aug. 19, 2020, 11:31 a.m. OK PyPy 3 TESTS 50 264 8806400
91676435 rubber_duckieOwOwO D Sept. 2, 2020, 10:08 p.m. OK PyPy 3 TESTS 50 264 9113600
90729120 pavanbsp D Aug. 23, 2020, 5:35 a.m. OK PyPy 3 TESTS 50 280 28467200
90409228 HJPASIMK D Aug. 19, 2020, 5:09 p.m. OK PyPy 3 TESTS 50 390 8601600
91517117 Neotheprogrammer D Aug. 31, 2020, 6:25 p.m. OK PyPy 3 TESTS 50 405 6758400
90902173 aimileus D Aug. 25, 2020, 1:15 p.m. OK PyPy 3 TESTS 50 405 7372800
90376692 eugalt D Aug. 19, 2020, 9:46 a.m. OK Python 3 TESTS 50 156 3174400
90375868 eugalt D Aug. 19, 2020, 9:34 a.m. OK Python 3 TESTS 50 170 3481600
90763648 SecretProgrammer10 D Aug. 23, 2020, 2:29 p.m. OK Python 3 TESTS 50 171 8704000
90503007 eugalt D Aug. 21, 2020, 2:45 a.m. OK Python 3 TESTS 50 202 10240000
90408659 rednithin D Aug. 19, 2020, 5:01 p.m. OK Python 3 TESTS 50 233 716800
90781022 AhsanHabib D Aug. 23, 2020, 7:12 p.m. OK Python 3 TESTS 50 233 8396800
91455850 MR_MECHANICAL D Aug. 31, 2020, 4:43 a.m. OK Python 3 TESTS 50 233 9113600
90314749 mmhaxor1 D Aug. 18, 2020, 2:06 p.m. OK Python 3 TESTS 50 248 1024000
90325261 deepcoder_B D Aug. 18, 2020, 3:57 p.m. OK Python 3 TESTS 50 249 1740800
90391344 sexy_launda D Aug. 19, 2020, 1:18 p.m. OK Python 3 TESTS 50 249 2048000
90737063 ratn41 D Aug. 23, 2020, 7:59 a.m. OK Ruby TESTS 50 592 62771200
90473754 pandrei D Aug. 20, 2020, 2:59 p.m. OK Rust TESTS 50 140 3174400
90722696 Strorkis D Aug. 23, 2020, 2:12 a.m. OK Rust TESTS 50 140 6144000

remove filters

Back to search problems