Codeforces Round 908 (Div. 1)

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
1893 Codeforces Round 908 (Div. 1) FINISHED False 7200 32455499 Nov. 7, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 12528 ) A Anonymous Informant PROGRAMMING brute force implementation

B'You are given an array b_1, b_2, ldots, b_n . An anonymous informant has told you that the array b was obtained as follows: initially, there existed an array a_1, a_2, ldots, a_n , after which the following two-component operation was performed k times: As a result of k such operations, the array b_1, b_2, ldots, b_n was obtained. You want to check if the words of the anonymous informant can be true or if they are guaranteed to be false. ^{ dagger} A number x is called a fixed point of the array a_1, a_2, ldots, a_n if 1 <= q x <= q n and a_x = x . ^{ ddagger} A cyclic left shift of the array a_1, a_2, ldots, a_n is the array a_2, ldots, a_n, a_1 . Each test contains multiple test cases. The first line contains an integer t ( 1 <= t <= 10^4 ) -- the number of test cases. The description of the test cases follows. The first line of each test case contains two integers n, k ( 1 <= n <= 2 cdot 10^5 , 1 <= k <= 10^9 ) -- the length of the array b and the number of operations performed. The second line of each test case contains n integers b_1, b_2, ldots, b_n ( 1 <= b_i <= 10^9 ) -- the elements of the array b . It is guaranteed that the sum of the values of n for all test cases does not exceed 2 cdot 10^5 . For each test case, output "Yes" if the words of the anonymous informant can be true, and "No" if they are guaranteed to be false. In the first test case, the array a could be equal to [3, 2, 3, 4, 3] . In the first operation, a fixed point x = 2 was chosen, and after 2 left shifts, the array became [3, 4, 3, 3, 2] . In the second operation, a fixed point x = 3 was chosen, and after 3 left shifts, the array became [3, 2, 3, 4, 3] . In the third operation, a fixed point x = 3 was chosen again, and after 3 left shifts, the array became [4'...

Tutorials

Codeforces Round 908 (Div. 1, Div, 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
231759141 mban259 A Nov. 7, 2023, 3:02 p.m. OK C# 10 TESTS 16 248 52326400
231747615 KumaTachiRen A Nov. 7, 2023, 2:40 p.m. OK C# 8 TESTS 16 202 2560000
231748960 hos.lyric A Nov. 7, 2023, 2:44 p.m. OK D TESTS 16 77 13516800
231762194 Gassa A Nov. 7, 2023, 3:08 p.m. OK D TESTS 16 93 19148800
231748298 wangyian2022 A Nov. 7, 2023, 2:42 p.m. OK GNU C++14 TESTS 16 15 3072000
231750135 dengziyue A Nov. 7, 2023, 2:47 p.m. OK GNU C++14 TESTS 16 46 819200
231750297 MCPlayer542 A Nov. 7, 2023, 2:47 p.m. OK GNU C++14 TESTS 16 61 1024000
231752755 wukaichen888 A Nov. 7, 2023, 2:51 p.m. OK GNU C++14 TESTS 16 61 1843200
231750676 hzt1 A Nov. 7, 2023, 2:48 p.m. OK GNU C++14 TESTS 16 61 5017600
231749666 Iratis A Nov. 7, 2023, 2:46 p.m. OK GNU C++14 TESTS 16 62 1024000
231748050 paul2008 A Nov. 7, 2023, 2:41 p.m. OK GNU C++14 TESTS 16 62 1536000
231755871 NakiriAyame A Nov. 7, 2023, 2:57 p.m. OK GNU C++14 TESTS 16 62 1638400
231755076 Leo_W A Nov. 7, 2023, 2:56 p.m. OK GNU C++14 TESTS 16 62 1638400
231754259 yzz162534 A Nov. 7, 2023, 2:54 p.m. OK GNU C++14 TESTS 16 62 1638400
231866199 CLown1331 A Nov. 7, 2023, 11:09 p.m. OK GNU C++17 TESTS 16 46 1024000
231753012 lddlinan A Nov. 7, 2023, 2:51 p.m. OK GNU C++17 TESTS 16 46 1024000
231751959 hariaakash646 A Nov. 7, 2023, 2:50 p.m. OK GNU C++17 TESTS 16 61 819200
231748892 serotonin A Nov. 7, 2023, 2:44 p.m. OK GNU C++17 TESTS 16 61 1024000
231887693 saltyy A Nov. 8, 2023, 5:39 a.m. OK GNU C++17 TESTS 16 62 819200
231883735 15owzLy1 A Nov. 8, 2023, 4:43 a.m. OK GNU C++17 TESTS 16 62 819200
231883315 fengyecong A Nov. 8, 2023, 4:36 a.m. OK GNU C++17 TESTS 16 62 819200
231882547 CM_This_Year A Nov. 8, 2023, 4:24 a.m. OK GNU C++17 TESTS 16 62 819200
231864369 jan24 A Nov. 7, 2023, 10:21 p.m. OK GNU C++17 TESTS 16 62 819200
231841642 learningdaily A Nov. 7, 2023, 6:57 p.m. OK GNU C++17 TESTS 16 62 819200
231749770 ITworker_Z A Nov. 7, 2023, 2:46 p.m. OK GNU C++17 (64) TESTS 16 15 10035200
231759505 zwh2008 A Nov. 7, 2023, 3:03 p.m. OK GNU C++17 (64) TESTS 16 31 1024000
231750088 TrendBattleswillwinioi A Nov. 7, 2023, 2:47 p.m. OK GNU C++17 (64) TESTS 16 31 1843200
231772216 tarjen A Nov. 7, 2023, 3:28 p.m. OK GNU C++17 (64) TESTS 16 46 819200
231752966 Eclipse-IDE-for-Java A Nov. 7, 2023, 2:51 p.m. OK GNU C++17 (64) TESTS 16 46 819200
231752286 -Fainted- A Nov. 7, 2023, 2:50 p.m. OK GNU C++17 (64) TESTS 16 46 819200
231750242 MrPizza A Nov. 7, 2023, 2:47 p.m. OK GNU C++17 (64) TESTS 16 46 819200
231749269 Timur2006 A Nov. 7, 2023, 2:45 p.m. OK GNU C++17 (64) TESTS 16 46 819200
231748185 K-H A Nov. 7, 2023, 2:41 p.m. OK GNU C++17 (64) TESTS 16 46 819200
231747868 stan23456 A Nov. 7, 2023, 2:41 p.m. OK GNU C++17 (64) TESTS 16 46 819200
231867489 kkio A Nov. 7, 2023, 11:50 p.m. OK GNU C++20 (64) TESTS 16 15 3072000
231748214 Legitimity A Nov. 7, 2023, 2:42 p.m. OK GNU C++20 (64) TESTS 16 15 3686400
231886799 Jared_McDs A Nov. 8, 2023, 5:27 a.m. OK GNU C++20 (64) TESTS 16 31 819200
231874454 Rinors A Nov. 8, 2023, 2:21 a.m. OK GNU C++20 (64) TESTS 16 31 819200
231844307 Alequisk A Nov. 7, 2023, 7:15 p.m. OK GNU C++20 (64) TESTS 16 31 819200
231834989 pro_player A Nov. 7, 2023, 6:03 p.m. OK GNU C++20 (64) TESTS 16 31 819200
231760888 IreneQueen A Nov. 7, 2023, 3:06 p.m. OK GNU C++20 (64) TESTS 16 31 819200
231750442 SebastianMestre A Nov. 7, 2023, 2:48 p.m. OK GNU C++20 (64) TESTS 16 31 819200
231750279 DylanSmith A Nov. 7, 2023, 2:47 p.m. OK GNU C++20 (64) TESTS 16 31 819200
231749925 panyaoyu1999 A Nov. 7, 2023, 2:47 p.m. OK GNU C++20 (64) TESTS 16 31 819200
231750471 HugeHobbit A Nov. 7, 2023, 2:48 p.m. OK Java 11 TESTS 16 218 3686400
231826392 Nagendravarma A Nov. 7, 2023, 5:04 p.m. OK Java 17 TESTS 16 280 5017600
231781948 frey4 A Nov. 7, 2023, 3:52 p.m. OK Java 21 TESTS 16 467 22835200
231756060 yvbf A Nov. 7, 2023, 2:57 p.m. OK Java 8 TESTS 16 140 0
231751945 golions A Nov. 7, 2023, 2:50 p.m. OK Java 8 TESTS 16 155 9523200
231749505 misorin A Nov. 7, 2023, 2:46 p.m. OK PyPy 3 TESTS 16 156 20275200
231825623 Ayush___ A Nov. 7, 2023, 5:01 p.m. OK PyPy 3-64 TESTS 16 139 26931200
231784461 plevande A Nov. 7, 2023, 3:59 p.m. OK PyPy 3-64 TESTS 16 140 27136000
231755190 zouyu9631 A Nov. 7, 2023, 2:56 p.m. OK PyPy 3-64 TESTS 16 140 28057600
231749751 eepsilon A Nov. 7, 2023, 2:46 p.m. OK PyPy 3-64 TESTS 16 155 27238400
231749452 codicon A Nov. 7, 2023, 2:46 p.m. OK PyPy 3-64 TESTS 16 155 27238400
231748485 hxu10 A Nov. 7, 2023, 2:43 p.m. OK PyPy 3-64 TESTS 16 155 30515200
231826898 alexwice A Nov. 7, 2023, 5:07 p.m. OK PyPy 3-64 TESTS 16 155 31436800
231749537 dabbler1 A Nov. 7, 2023, 2:46 p.m. OK PyPy 3-64 TESTS 16 155 33280000
231749139 Alex239 A Nov. 7, 2023, 2:45 p.m. OK PyPy 3-64 TESTS 16 171 21708800
231749459 xxh1999 A Nov. 7, 2023, 2:46 p.m. OK PyPy 3-64 TESTS 16 217 32563200
231881963 MShah2003 A Nov. 8, 2023, 4:16 a.m. OK Python 3 TESTS 16 186 27955200
231748090 Egor A Nov. 7, 2023, 2:41 p.m. OK Rust 2021 TESTS 16 15 1638400
231756122 andrey.m A Nov. 7, 2023, 2:57 p.m. OK Rust 2021 TESTS 16 31 7065600
231753809 ngtkana A Nov. 7, 2023, 2:53 p.m. OK Rust 2021 TESTS 16 171 18227200

remove filters

Back to search problems