Codeforces Global Round 24

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
1764 Codeforces Global Round 24 FINISHED False 9000 62351699 Nov. 26, 2022, 2:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2793 ) D Doremy's Pegging Game PROGRAMMING combinatorics geometry math

B'Doremy has n+1 pegs. There are n red pegs arranged as vertices of a regular n -sided polygon, numbered from 1 to n in anti-clockwise order. There is also a blue peg of slightly smaller diameter in the middle of the polygon. A rubber band is stretched around the red pegs. Doremy is very bored today and has decided to play a game. Initially, she has an empty array a . While the rubber band does not touch the blue peg, she will: Doremy wonders how many possible different arrays a can be produced by the following process. Since the answer can be big, you are only required to output it modulo p . p is guaranteed to be a prime number. The first line contains two integers n and p ( 3 <= q n <= q 5000 , 10^8 <= p <= 10^9 ) -- the number of red pegs and the modulo respectively. p is guaranteed to be a prime number. Output a single integer, the number of different arrays a that can be produced by the process described above modulo p . In the first test case, n=4 , some possible arrays a that can be produced are [4,2,3] and [1,4] . However, it is not possible for a to be [1] or [1,4,3] . '...

Tutorials

Codeforces Global Round 24 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
182737715 Tdyx D Nov. 27, 2022, 4:04 a.m. OK C# 10 TESTS 44 46 0
182679953 mban259 D Nov. 26, 2022, 3:09 p.m. OK C# 10 TESTS 44 218 204800
182679131 Gassa D Nov. 26, 2022, 3:06 p.m. OK D TESTS 44 171 4198400
182716718 rainboy D Nov. 26, 2022, 7:32 p.m. OK GNU C11 TESTS 44 15 102400
182678526 chro4896 D Nov. 26, 2022, 3:04 p.m. OK GNU C11 TESTS 44 93 102400
182737248 Mediocre_ D Nov. 27, 2022, 3:52 a.m. OK GNU C++14 TESTS 44 15 102400
182695913 chuochuo D Nov. 26, 2022, 4:18 p.m. OK GNU C++14 TESTS 44 15 16076800
182695037 Cu_OH_2 D Nov. 26, 2022, 4:14 p.m. OK GNU C++14 TESTS 44 78 102400
182691435 Kaedehara_Kazuha_ D Nov. 26, 2022, 3:56 p.m. OK GNU C++14 TESTS 44 78 102400
182681874 ykl D Nov. 26, 2022, 3:16 p.m. OK GNU C++14 TESTS 44 93 0
182685995 Astolfoo D Nov. 26, 2022, 3:32 p.m. OK GNU C++14 TESTS 44 93 102400
182680606 diamond_ladybug D Nov. 26, 2022, 3:11 p.m. OK GNU C++14 TESTS 44 93 1126400
182687062 ButterflyDew D Nov. 26, 2022, 3:37 p.m. OK GNU C++14 TESTS 44 93 122675200
182735402 ganganxia D Nov. 27, 2022, 3:01 a.m. OK GNU C++14 TESTS 44 108 102400
182693275 t98slider D Nov. 26, 2022, 4:05 p.m. OK GNU C++14 TESTS 44 108 409600
182694982 Natsuzora D Nov. 26, 2022, 4:14 p.m. OK GNU C++17 TESTS 44 15 0
182696681 xpov1LL D Nov. 26, 2022, 4:22 p.m. OK GNU C++17 TESTS 44 15 102400
182728512 emoreira D Nov. 26, 2022, 11:14 p.m. OK GNU C++17 TESTS 44 15 102400
182735957 emoreira D Nov. 27, 2022, 3:18 a.m. OK GNU C++17 TESTS 44 15 102400
182681059 NegaTeeF D Nov. 26, 2022, 3:13 p.m. OK GNU C++17 TESTS 44 61 409600
182679746 Aging1986 D Nov. 26, 2022, 3:08 p.m. OK GNU C++17 TESTS 44 62 102400
182729171 qsarus D Nov. 26, 2022, 11:34 p.m. OK GNU C++17 TESTS 44 62 102400
182695651 Miracle0viiiiiv D Nov. 26, 2022, 4:17 p.m. OK GNU C++17 TESTS 44 78 0
182688763 orangecalculator D Nov. 26, 2022, 3:44 p.m. OK GNU C++17 TESTS 44 78 102400
182689821 clean100s D Nov. 26, 2022, 3:49 p.m. OK GNU C++17 TESTS 44 78 102400
182684502 prokopton D Nov. 26, 2022, 3:26 p.m. OK GNU C++17 (64) TESTS 44 31 102400
182687222 SW2000 D Nov. 26, 2022, 3:37 p.m. OK GNU C++17 (64) TESTS 44 46 102400
182710331 neal D Nov. 26, 2022, 6:15 p.m. OK GNU C++17 (64) TESTS 44 46 102400
182729898 over_flow D Nov. 26, 2022, 11:57 p.m. OK GNU C++17 (64) TESTS 44 46 25190400
182709810 lunchbox D Nov. 26, 2022, 6:09 p.m. OK GNU C++17 (64) TESTS 44 62 0
182684153 EnAnimant D Nov. 26, 2022, 3:24 p.m. OK GNU C++17 (64) TESTS 44 62 102400
182729513 EnAnimant D Nov. 26, 2022, 11:45 p.m. OK GNU C++17 (64) TESTS 44 62 102400
182692615 EverGreenTree D Nov. 26, 2022, 4:02 p.m. OK GNU C++17 (64) TESTS 44 62 102400
182712442 ScarletS D Nov. 26, 2022, 6:37 p.m. OK GNU C++17 (64) TESTS 44 62 100249600
182687004 ScarletS D Nov. 26, 2022, 3:36 p.m. OK GNU C++17 (64) TESTS 44 77 100249600
182702973 cai_lw D Nov. 26, 2022, 5:08 p.m. OK GNU C++20 (64) TESTS 44 15 102400
182695094 Diego D Nov. 26, 2022, 4:14 p.m. OK GNU C++20 (64) TESTS 44 15 307200
182681359 jiangbowen D Nov. 26, 2022, 3:14 p.m. OK GNU C++20 (64) TESTS 44 15 2150400
182733119 SF-Manman D Nov. 27, 2022, 1:55 a.m. OK GNU C++20 (64) TESTS 44 31 0
182684059 guperman D Nov. 26, 2022, 3:24 p.m. OK GNU C++20 (64) TESTS 44 31 102400
182703269 Sui-chan_wa... D Nov. 26, 2022, 5:10 p.m. OK GNU C++20 (64) TESTS 44 31 102400
182681260 kwm_t D Nov. 26, 2022, 3:14 p.m. OK GNU C++20 (64) TESTS 44 46 1638400
182689651 greencis D Nov. 26, 2022, 3:48 p.m. OK GNU C++20 (64) TESTS 44 62 0
182688301 bvd D Nov. 26, 2022, 3:42 p.m. OK GNU C++20 (64) TESTS 44 77 100249600
182680881 Qwerty1232 D Nov. 26, 2022, 3:12 p.m. OK GNU C++20 (64) TESTS 44 78 102400
182742591 tongtongac D Nov. 27, 2022, 5:41 a.m. OK Go TESTS 44 187 102400
182687516 AdhmMohamed D Nov. 26, 2022, 3:39 p.m. OK Java 11 TESTS 44 405 0
182685090 taran_1407 D Nov. 26, 2022, 3:28 p.m. OK Java 11 TESTS 44 498 1024000
182702030 Ste D Nov. 26, 2022, 5:02 p.m. OK Java 11 TESTS 44 514 265216000
182729542 profchi D Nov. 26, 2022, 11:46 p.m. OK Java 11 TESTS 44 1419 0
182713770 YocyCraft D Nov. 26, 2022, 6:52 p.m. OK Java 17 TESTS 44 343 1126400
182694485 knightL D Nov. 26, 2022, 4:11 p.m. OK Java 17 TESTS 44 373 1228800
182687364 AkshajK D Nov. 26, 2022, 3:38 p.m. OK Java 8 TESTS 44 109 0
182690480 DarLam D Nov. 26, 2022, 3:52 p.m. OK Java 8 TESTS 44 499 78131200
182690627 Hakiobo D Nov. 26, 2022, 3:53 p.m. OK Kotlin 1.6 TESTS 44 701 265830400
182681327 timusmanovs D Nov. 26, 2022, 3:14 p.m. OK MS C++ 2017 TESTS 44 109 0
182720677 gavvah D Nov. 26, 2022, 8:35 p.m. OK MS C++ 2017 TESTS 44 234 102400
182693298 danilgrig D Nov. 26, 2022, 4:05 p.m. OK MS C++ 2017 TESTS 44 343 201113600
182679850 bcollet D Nov. 26, 2022, 3:08 p.m. OK PyPy 2 TESTS 44 873 3276800
182690755 tabasz_turbo D Nov. 26, 2022, 3:53 p.m. OK PyPy 3 TESTS 44 639 5324800
182708269 hxu10 D Nov. 26, 2022, 5:57 p.m. OK PyPy 3 TESTS 44 686 113356800
182743032 bpdolson D Nov. 27, 2022, 5:48 a.m. OK PyPy 3 TESTS 44 748 3788800
182678436 misorin D Nov. 26, 2022, 3:04 p.m. OK PyPy 3-64 TESTS 44 155 2867200
182697891 Young_Sean D Nov. 26, 2022, 4:27 p.m. OK PyPy 3-64 TESTS 44 234 59904000
182692345 SophieHatter D Nov. 26, 2022, 4:01 p.m. OK PyPy 3-64 TESTS 44 327 3788800
182702078 titia D Nov. 26, 2022, 5:02 p.m. OK PyPy 3-64 TESTS 44 374 10547200
182698509 flygon D Nov. 26, 2022, 4:30 p.m. OK PyPy 3-64 TESTS 44 420 4915200
182682299 Maruzensky D Nov. 26, 2022, 3:17 p.m. OK PyPy 3-64 TESTS 44 436 3993600
182689459 lionel.m D Nov. 26, 2022, 3:47 p.m. OK PyPy 3-64 TESTS 44 467 3174400
182698420 ankan2526 D Nov. 26, 2022, 4:29 p.m. OK PyPy 3-64 TESTS 44 482 138956800
182687928 amenotiomoi D Nov. 26, 2022, 3:40 p.m. OK PyPy 3-64 TESTS 44 483 233676800
182708251 hxu10 D Nov. 26, 2022, 5:57 p.m. OK PyPy 3-64 TESTS 44 545 203878400
182712518 happy_zig_user D Nov. 26, 2022, 6:38 p.m. OK Rust 2021 TESTS 44 234 102400

remove filters

Back to search problems