Codeforces Round 933 (Div. 3)

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
1941 Codeforces Round 933 (Div. 3) FINISHED False 8100 27012263 March 11, 2024, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 18935 ) D Rudolf and the Ball Game PROGRAMMING dp implementation

B"Rudolf and Bernard decided to play a game with their friends. n people stand in a circle and start throwing a ball to each other. They are numbered from 1 to n in the clockwise order. Let's call a transition a movement of the ball from one player to his neighbor. The transition can be made clockwise or counterclockwise. Let's call the clockwise (counterclockwise) distance from player y_1 to player y_2 the number of transitions clockwise (counterclockwise) that need to be made to move from player y_1 to player y_2 . For example, if n=7 then the clockwise distance from 2 to 5 is 3 , and the counterclockwise distance from 2 to 5 is 4 . Initially, the ball is with the player number x (players are numbered clockwise). On the i -th move the person with the ball throws it at a distance of r_i ( 1 <= r_i <= n - 1 ) clockwise or counterclockwise. For example, if there are 7 players, and the 2 nd player, after receiving the ball, throws it a distance of 5 , then the ball will be caught by either the 7 th player (throwing clockwise) or the 4 th player (throwing counterclockwise). An illustration of this example is shown below. The game was interrupted after m throws due to unexpected rain. When the rain stopped, the guys gathered again to continue. However, no one could remember who had the ball. As it turned out, Bernard remembered the distances for each of the throws and the direction for some of the throws (clockwise or counterclockwise). Rudolf asks you to help him and based on the information from Bernard, calculate the numbers of the players who could have the ball after m throws. The first line of the input contains a single integer t ( 1 <= t <= 10^4 ) -- the number of test cases. Then follow the descriptions of the test cases. The first line of each test case contains three integers n, m, x ( 2 <= "...

Tutorials

127018

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
250874311 chenxu2001 D March 12, 2024, 4:10 a.m. OK C# 10 TESTS 10 202 4300800
250885051 Sunjida_Akter D March 12, 2024, 5:59 a.m. OK C++14 (GCC 6-32) TESTS 10 15 0
250831587 minsi D March 11, 2024, 6:35 p.m. OK C++14 (GCC 6-32) TESTS 10 15 4198400
250862524 Heenpei D March 12, 2024, 1:15 a.m. OK C++14 (GCC 6-32) TESTS 10 15 8294400
250838445 LIEB D March 11, 2024, 7:36 p.m. OK C++14 (GCC 6-32) TESTS 10 30 204800
250881717 DDDDB D March 12, 2024, 5:32 a.m. OK C++14 (GCC 6-32) TESTS 10 30 12083200
250867245 Clean_Breeze D March 12, 2024, 2:36 a.m. OK C++14 (GCC 6-32) TESTS 10 31 0
250871962 Cosmoss D March 12, 2024, 3:41 a.m. OK C++14 (GCC 6-32) TESTS 10 31 0
250823938 learner_0919 D March 11, 2024, 5:40 p.m. OK C++14 (GCC 6-32) TESTS 10 31 0
250873089 HaHaHandle D March 12, 2024, 3:55 a.m. OK C++14 (GCC 6-32) TESTS 10 31 204800
250869169 yzh_nullptr D March 12, 2024, 3:03 a.m. OK C++14 (GCC 6-32) TESTS 10 31 204800
250826882 Theo20067 D March 11, 2024, 6 p.m. OK C++17 (GCC 7-32) TESTS 10 15 0
250882794 NULL_SF D March 12, 2024, 5:40 a.m. OK C++17 (GCC 7-32) TESTS 10 15 0
250881842 fengliqi D March 12, 2024, 5:33 a.m. OK C++17 (GCC 7-32) TESTS 10 15 0
250875424 233zhang D March 12, 2024, 4:24 a.m. OK C++17 (GCC 7-32) TESTS 10 15 0
250824959 billy22 D March 11, 2024, 5:47 p.m. OK C++17 (GCC 7-32) TESTS 10 15 0
250863543 NameLess_07 D March 12, 2024, 1:33 a.m. OK C++17 (GCC 7-32) TESTS 10 15 102400
250877978 Cu_OH_2 D March 12, 2024, 4:53 a.m. OK C++17 (GCC 7-32) TESTS 10 15 102400
250873870 -sam D March 12, 2024, 4:05 a.m. OK C++17 (GCC 7-32) TESTS 10 15 102400
250866888 runosake D March 12, 2024, 2:31 a.m. OK C++17 (GCC 7-32) TESTS 10 15 102400
250862437 find D March 12, 2024, 1:13 a.m. OK C++17 (GCC 7-32) TESTS 10 15 102400
250874551 bluemegane D March 12, 2024, 4:12 a.m. OK C# 8 TESTS 10 202 3686400
250828914 kreesh_17 D March 11, 2024, 6:15 p.m. OK GNU C11 TESTS 10 156 307200
250839833 WASIF_74 D March 11, 2024, 7:49 p.m. OK GNU C11 TESTS 10 265 614400
250830949 nguyenquocthao00 D March 11, 2024, 6:30 p.m. OK Go TESTS 10 171 5017600
250839428 aishwarykesarwani D March 11, 2024, 7:45 p.m. OK Java 21 TESTS 10 265 0
250847519 jayantKS29 D March 11, 2024, 9:04 p.m. OK Java 21 TESTS 10 265 204800
250878228 Renull D March 12, 2024, 4:57 a.m. OK Java 21 TESTS 10 280 409600
250835715 Pratham2908 D March 11, 2024, 7:10 p.m. OK Java 21 TESTS 10 280 512000
250846915 jayantKS29 D March 11, 2024, 8:58 p.m. OK Java 21 TESTS 10 296 512000
250822904 ch2001 D March 11, 2024, 5:34 p.m. OK Java 21 TESTS 10 327 204800
250854601 krish0596 D March 11, 2024, 10:46 p.m. OK Java 21 TESTS 10 343 102400
250853860 krish0596 D March 11, 2024, 10:32 p.m. OK Java 21 TESTS 10 358 307200
250868817 _ShenHua_ D March 12, 2024, 2:58 a.m. OK Java 21 TESTS 10 374 819200
250883789 ramitg254 D March 12, 2024, 5:48 a.m. OK Java 21 TESTS 10 389 409600
250878185 prakhar_30 D March 12, 2024, 4:56 a.m. OK Java 8 TESTS 10 124 0
250884281 AgniWarrior D March 12, 2024, 5:52 a.m. OK Java 8 TESTS 10 124 0
250878162 AltPP D March 12, 2024, 4:56 a.m. OK Java 8 TESTS 10 124 0
250827102 tiwariabhishek D March 11, 2024, 6:02 p.m. OK Java 8 TESTS 10 124 0
250826916 tiwariabhishek D March 11, 2024, 6 p.m. OK Java 8 TESTS 10 124 0
250864876 1229050383ZS D March 12, 2024, 1:57 a.m. OK Java 8 TESTS 10 187 0
250837074 Sumitsingh7 D March 11, 2024, 7:23 p.m. OK Java 8 TESTS 10 265 5939200
250848236 Therohit D March 11, 2024, 9:12 p.m. OK Java 8 TESTS 10 280 0
250843168 shashankp10 D March 11, 2024, 8:19 p.m. OK Java 8 TESTS 10 280 0
250874854 2100031465 D March 12, 2024, 4:16 a.m. OK Java 8 TESTS 10 327 0
250837322 bio-duplex D March 11, 2024, 7:26 p.m. OK Kotlin 1.9 TESTS 10 342 1126400
250877453 momenelmesady4803 D March 12, 2024, 4:48 a.m. OK PyPy 3 TESTS 10 529 10342400
250856334 _vijay_rubesh213 D March 11, 2024, 11:19 p.m. OK PyPy 3 TESTS 10 655 9625600
250843172 white_wolf19 D March 11, 2024, 8:19 p.m. OK PyPy 3 TESTS 10 685 9625600
250863732 ashays D March 12, 2024, 1:36 a.m. OK PyPy 3 TESTS 10 702 9830400
250832086 strashila D March 11, 2024, 6:39 p.m. OK PyPy 3-64 TESTS 10 155 9011200
250852811 voicon D March 11, 2024, 10:13 p.m. OK PyPy 3-64 TESTS 10 170 10342400
250870665 Admiring_ShockleyZns D March 12, 2024, 3:24 a.m. OK PyPy 3-64 TESTS 10 171 9932800
250866247 zzbaby D March 12, 2024, 2:21 a.m. OK PyPy 3-64 TESTS 10 187 9523200
250839785 gardengnome D March 11, 2024, 7:49 p.m. OK PyPy 3-64 TESTS 10 187 9625600
250834428 samis5 D March 11, 2024, 6:59 p.m. OK PyPy 3-64 TESTS 10 202 9932800
250856547 cybsbbb D March 11, 2024, 11:23 p.m. OK PyPy 3-64 TESTS 10 202 10035200
250879386 vibs2101 D March 12, 2024, 5:09 a.m. OK PyPy 3-64 TESTS 10 202 10444800
250862070 find D March 12, 2024, 1:07 a.m. OK PyPy 3-64 TESTS 10 202 10752000
250841103 Novasaki D March 11, 2024, 8:01 p.m. OK PyPy 3-64 TESTS 10 217 10035200
250837761 Novasaki D March 11, 2024, 7:30 p.m. OK Python 3 TESTS 10 93 307200
250832466 ionic101 D March 11, 2024, 6:42 p.m. OK Python 3 TESTS 10 139 1536000
250831612 ionic101 D March 11, 2024, 6:35 p.m. OK Python 3 TESTS 10 140 9420800
250856616 bruhbruhovich D March 11, 2024, 11:25 p.m. OK Python 3 TESTS 10 155 409600
250824315 ramveermeena2003 D March 11, 2024, 5:43 p.m. OK Python 3 TESTS 10 171 0
250823889 winter_inferno D March 11, 2024, 5:40 p.m. OK Python 3 TESTS 10 171 0
250825616 mahfuj4728 D March 11, 2024, 5:51 p.m. OK Python 3 TESTS 10 171 204800
250822577 Haileamlak D March 11, 2024, 5:32 p.m. OK Python 3 TESTS 10 171 204800
250872737 quickbot-17 D March 12, 2024, 3:50 a.m. OK Python 3 TESTS 10 171 307200
250821729 aleffobia D March 11, 2024, 5:27 p.m. OK Python 3 TESTS 10 171 307200
250844848 mash97 D March 11, 2024, 8:36 p.m. OK Ruby 3 TESTS 10 530 3276800
250835698 0x81 D March 11, 2024, 7:10 p.m. OK Ruby 3 TESTS 10 560 5836800

remove filters

Back to search problems