Codeforces Global Round 27

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
2035 Codeforces Global Round 27 FINISHED False 10800 46365923 Oct. 27, 2024, 2:35 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 171 ) G1 Go Learn! (Easy Version) PROGRAMMING dp trees

The differences between the easy and hard versions are the constraints on (n) and the sum of (n). In this version, (n \leq 3000) and the sum of (n) does not exceed (10^4). You can only make hacks if both versions are solved. Well, well, well, let's see how Bessie is managing her finances. She seems to be in the trenches! Fortunately, she is applying for a job at Moogle to resolve this issue. Moogle interviews require intensive knowledge of obscure algorithms and complex data structures, but Bessie received a tip-off from an LGM on exactly what she has to go learn. Bessie wrote the following code to binary search for a certain element (k) in a possibly unsorted array (a_1, a_2,\ldots,a_n) with (n) elements. Bessie submitted her code to Farmer John's problem with (m) ((1 \leq m \leq n)) tests. The (i)-th test is of the form ((x_i, k_i)) ((1 \leq x, k \leq n)). It is guaranteed all the (x_i) are distinct and all the (k_i) are distinct. Test (i) is correct if the following hold: The (x_i)-th element in the array is (k_i). If Bessie calls the binary search as shown in the above code for (k_i), it will return (x_i). It might not be possible for all (m) tests to be correct on the same array, so Farmer John will remove some of them so Bessie can AC. Let (r) be the minimum of tests removed so that there exists an array (a_1, a_2,\ldots,a_n) with (1 \leq a_i \leq n) so that all remaining tests are correct. In addition to finding (r), Farmer John wants you to count the number of arrays (a_1, a_2,\ldots,a_n) with (1 \leq a_i \leq n) such that there exists a way to remove exactly (r) tests so that all the remaining tests are correct. Since this number may be very large, please find it modulo (998\,244\,353). The first line contains a single integer (t) ((1 \le t \le 10^4)) — the number of test cases. The first line of each test case contains

Tutorials

Codeforces Global Round 27 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
288373564 peti1234 G1 Oct. 27, 2024, 5:33 p.m. OK C++17 (GCC 7-32) TESTS 37 311 512000
288362428 GroupMatrix G1 Oct. 27, 2024, 5:03 p.m. OK C++17 (GCC 7-32) TESTS 37 1921 307200
288364065 hos.lyric G1 Oct. 27, 2024, 5:08 p.m. OK C++17 (GCC 7-32) TESTS 37 2390 307200
288408630 Ion_Gravirei G1 Oct. 28, 2024, 1:54 a.m. OK C++17 (GCC 7-32) TESTS 37 2515 102400
288423710 mduc209 G1 Oct. 28, 2024, 5:53 a.m. OK C++17 (GCC 7-32) TESTS 37 3125 204800
288402949 dorijanlendvaj G1 Oct. 27, 2024, 11:10 p.m. OK C++20 (GCC 13-64) TESTS 37 93 1433600
288402858 dorijanlendvaj G1 Oct. 27, 2024, 11:07 p.m. OK C++20 (GCC 13-64) TESTS 37 124 2662400
288361542 275307894a G1 Oct. 27, 2024, 5:01 p.m. OK C++20 (GCC 13-64) TESTS 37 124 24064000
288402823 dorijanlendvaj G1 Oct. 27, 2024, 11:06 p.m. OK C++20 (GCC 13-64) TESTS 37 139 81715200
288402869 dorijanlendvaj G1 Oct. 27, 2024, 11:07 p.m. OK C++20 (GCC 13-64) TESTS 37 140 2457600
288361384 dXqwq G1 Oct. 27, 2024, 5 p.m. OK C++20 (GCC 13-64) TESTS 37 155 204800
288411869 -Eternity- G1 Oct. 28, 2024, 3 a.m. OK C++20 (GCC 13-64) TESTS 37 156 36147200
288374646 ymmparsa G1 Oct. 27, 2024, 5:34 p.m. OK C++20 (GCC 13-64) TESTS 37 186 102400
288377893 dorijanlendvaj G1 Oct. 27, 2024, 6:07 p.m. OK C++20 (GCC 13-64) TESTS 37 187 33689600
288363874 PinkieRabbit G1 Oct. 27, 2024, 5:07 p.m. OK C++20 (GCC 13-64) TESTS 37 202 716800
288366046 ecnerwala G1 Oct. 27, 2024, 5:14 p.m. OK C++23 (GCC 14-64, msys2) TESTS 37 93 1331200
288378538 neal G1 Oct. 27, 2024, 6:10 p.m. OK C++23 (GCC 14-64, msys2) TESTS 37 140 4096000
288380000 maroonrk G1 Oct. 27, 2024, 6:20 p.m. OK C++23 (GCC 14-64, msys2) TESTS 37 155 43417600
288371637 Ormlis G1 Oct. 27, 2024, 5:29 p.m. OK C++23 (GCC 14-64, msys2) TESTS 37 280 6041600
288378088 LHiC G1 Oct. 27, 2024, 6:08 p.m. OK C++23 (GCC 14-64, msys2) TESTS 37 733 204800
288360723 jiangly G1 Oct. 27, 2024, 4:58 p.m. OK C++23 (GCC 14-64, msys2) TESTS 37 1046 102400
288416823 jinqihao2026 G1 Oct. 28, 2024, 4:19 a.m. OK C++23 (GCC 14-64, msys2) TESTS 37 1124 102400
288421227 _MASSIMO_ G1 Oct. 28, 2024, 5:23 a.m. OK C++23 (GCC 14-64, msys2) TESTS 37 1218 92364800
288417540 Hamster_L G1 Oct. 28, 2024, 4:31 a.m. OK C++23 (GCC 14-64, msys2) TESTS 37 1265 307200
288370208 jiangbowen G1 Oct. 27, 2024, 5:25 p.m. OK C++23 (GCC 14-64, msys2) TESTS 37 2062 11264000
288400353 rainboy G1 Oct. 27, 2024, 10:05 p.m. OK GNU C11 TESTS 37 77 28876800
288377590 Tlatoani G1 Oct. 27, 2024, 6:05 p.m. OK Kotlin 1.9 TESTS 37 733 65331200

remove filters

Back to search problems