Codeforces Round 752 (Div. 2)

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
1604 Codeforces Round 752 (Div. 2) FINISHED False 7200 96218699 Oct. 30, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 15691 ) B XOR Specia-LIS-t PROGRAMMING constructive algorithms 1100

B'YouKn0wWho has an integer sequence a_1, a_2, ldots a_n . Now he will split the sequence a into one or more consecutive subarrays so that each element of a belongs to exactly one subarray. Let k be the number of resulting subarrays, and h_1, h_2, ldots, h_k be the lengths of the longest increasing subsequences of corresponding subarrays. For example, if we split [2, 5, 3, 1, 4, 3, 2, 2, 5, 1] into [2, 5, 3, 1, 4] , [3, 2, 2, 5] , [1] , then h = [3, 2, 1] . YouKn0wWho wonders if it is possible to split the sequence a in such a way that the bitwise XOR of h_1, h_2, ldots, h_k is equal to 0 . You have to tell whether it is possible. The longest increasing subsequence (LIS) of a sequence b_1, b_2, ldots, b_m is the longest sequence of valid indices i_1, i_2, ldots, i_k such that i_1 lt i_2 lt ldots lt i_k and b_{i_1} lt b_{i_2} lt ldots lt b_{i_k} . For example, the LIS of [2, 5, 3, 3, 5] is [2, 3, 5] , which has length 3 . An array c is a subarray of an array b if c can be obtained from b by deletion of several (possibly, zero or all) elements from the beginning and several (possibly, zero or all) elements from the end. The first line contains a single integer t ( 1 <= t <= 10 ,000 ) -- the number of test cases. The first line of each test case contains a single integer n ( 2 <= n <= 10^5 ). The second line of each test case contains n integers a_1, a_2, ldots, a_n ( 1 <= a_i <= 10^9 ). It is guaranteed that the sum of n over all test cases doesn 't exceed 3 cdot 10^5 . For each test case, print "YES" (without quotes) if it is possible to split into subarrays in the desired way, print "NO" (without quotes) otherwise. You can print each letter in any register (upper or lower). In the first test case, YouKn0wWho can split the sequence in the following way: ['...

Tutorials

Editorial of Codeforces Round #752

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
133701911 MrPrizmo B Oct. 30, 2021, 8:11 p.m. OK GNU C11 TESTS 44 78 3686400 1100
133688251 nabiurrahman2004 B Oct. 30, 2021, 5:31 p.m. OK GNU C11 TESTS 44 78 4505600 1100
133682612 murali_33 B Oct. 30, 2021, 4:31 p.m. OK GNU C11 TESTS 44 93 4505600 1100
133715386 Youarenotgood B Oct. 31, 2021, 3:16 a.m. OK GNU C11 TESTS 44 124 4096000 1100
133688580 wumanqiu B Oct. 30, 2021, 5:33 p.m. OK GNU C++14 TESTS 44 31 1433600 1100
133713485 CCSU_Wine B Oct. 31, 2021, 2:32 a.m. OK GNU C++14 TESTS 44 62 1433600 1100
133713416 andychen2012 B Oct. 31, 2021, 2:31 a.m. OK GNU C++14 TESTS 44 78 1433600 1100
133710589 microperson B Oct. 31, 2021, 1:02 a.m. OK GNU C++14 TESTS 44 78 1433600 1100
133715815 juruo_c B Oct. 31, 2021, 3:26 a.m. OK GNU C++14 TESTS 44 78 1433600 1100
133712028 beyond271828 B Oct. 31, 2021, 1:53 a.m. OK GNU C++14 TESTS 44 78 13107200 1100
133673059 CornWorld B Oct. 30, 2021, 4:09 p.m. OK GNU C++14 TESTS 44 93 1024000 1100
133719274 Yyh. B Oct. 31, 2021, 4:38 a.m. OK GNU C++14 TESTS 44 93 1024000 1100
133722090 sravisanker B Oct. 31, 2021, 5:23 a.m. OK GNU C++14 TESTS 44 93 1433600 1100
133724503 AdnanShamsi B Oct. 31, 2021, 5:55 a.m. OK GNU C++14 TESTS 44 93 1433600 1100
133715493 shubhs_1 B Oct. 31, 2021, 3:18 a.m. OK GNU C++17 TESTS 44 78 1433600 1100
133713779 SGDBS B Oct. 31, 2021, 2:40 a.m. OK GNU C++17 TESTS 44 78 1433600 1100
133711708 TwOKAr B Oct. 31, 2021, 1:43 a.m. OK GNU C++17 TESTS 44 78 1433600 1100
133715243 qdh002 B Oct. 31, 2021, 3:13 a.m. OK GNU C++17 TESTS 44 78 5120000 1100
133715171 homeffg B Oct. 31, 2021, 3:12 a.m. OK GNU C++17 TESTS 44 93 1024000 1100
133705753 gleb.zuev04 B Oct. 30, 2021, 9:38 p.m. OK GNU C++17 TESTS 44 93 1024000 1100
133724716 ddwl B Oct. 31, 2021, 5:58 a.m. OK GNU C++17 TESTS 44 93 1024000 1100
133723112 seul_espoir B Oct. 31, 2021, 5:37 a.m. OK GNU C++17 TESTS 44 93 1024000 1100
133716387 jinyj B Oct. 31, 2021, 3:38 a.m. OK GNU C++17 TESTS 44 93 1024000 1100
133715225 ItsOnlyMe B Oct. 31, 2021, 3:13 a.m. OK GNU C++17 TESTS 44 93 1024000 1100
133672704 0xC0DEF B Oct. 30, 2021, 4:08 p.m. OK GNU C++17 (64) TESTS 44 46 20172800 1100
133711369 Eloi0323 B Oct. 31, 2021, 1:31 a.m. OK GNU C++17 (64) TESTS 44 62 1228800 1100
133700855 skittles1412 B Oct. 30, 2021, 7:55 p.m. OK GNU C++17 (64) TESTS 44 62 1638400 1100
133715541 jkjung B Oct. 31, 2021, 3:19 a.m. OK GNU C++17 (64) TESTS 44 62 1638400 1100
133718276 shaileshgrathod0812 B Oct. 31, 2021, 4:18 a.m. OK GNU C++17 (64) TESTS 44 62 1638400 1100
133719107 shivam_100 B Oct. 31, 2021, 4:36 a.m. OK GNU C++17 (64) TESTS 44 62 1843200 1100
133712664 kmjp B Oct. 31, 2021, 2:12 a.m. OK GNU C++17 (64) TESTS 44 62 2048000 1100
133723474 Kumari_Shivangi B Oct. 31, 2021, 5:41 a.m. OK GNU C++17 (64) TESTS 44 62 2048000 1100
133705554 highQul B Oct. 30, 2021, 9:32 p.m. OK GNU C++17 (64) TESTS 44 62 2048000 1100
133691658 subhadip8617 B Oct. 30, 2021, 5:59 p.m. OK GNU C++17 (64) TESTS 44 62 2048000 1100
133706666 Bench0310 B Oct. 30, 2021, 10:04 p.m. OK GNU C++20 (64) TESTS 44 46 1228800 1100
133713389 AssCumDoor B Oct. 31, 2021, 2:30 a.m. OK GNU C++20 (64) TESTS 44 46 1638400 1100
133688517 THE-Champ B Oct. 30, 2021, 5:33 p.m. OK GNU C++20 (64) TESTS 44 46 2048000 1100
133693062 SalmaAhmd B Oct. 30, 2021, 6:14 p.m. OK GNU C++20 (64) TESTS 44 46 2355200 1100
133715503 xudian B Oct. 31, 2021, 3:19 a.m. OK GNU C++20 (64) TESTS 44 46 2355200 1100
133714101 adit_g_kul18 B Oct. 31, 2021, 2:47 a.m. OK GNU C++20 (64) TESTS 44 46 2355200 1100
133702943 Arkady_E B Oct. 30, 2021, 8:30 p.m. OK GNU C++20 (64) TESTS 44 46 2355200 1100
133699480 mohammad_reza B Oct. 30, 2021, 7:34 p.m. OK GNU C++20 (64) TESTS 44 46 2355200 1100
133687775 Wisehacks B Oct. 30, 2021, 5:28 p.m. OK GNU C++20 (64) TESTS 44 46 3379200 1100
133692187 kabirdutt0907 B Oct. 30, 2021, 6:04 p.m. OK GNU C++20 (64) TESTS 44 46 17408000 1100
133716492 vtiptop B Oct. 31, 2021, 3:41 a.m. OK Go TESTS 44 218 13004800 1100
133688016 codelegend B Oct. 30, 2021, 5:29 p.m. OK Haskell TESTS 44 156 22732800 1100
133721912 sumitchavan B Oct. 31, 2021, 5:21 a.m. OK Java 11 TESTS 44 234 25497600 1100
133694291 ganeshdeshmukh B Oct. 30, 2021, 6:27 p.m. OK Java 11 TESTS 44 249 24678400 1100
133698086 bittubittu B Oct. 30, 2021, 7:14 p.m. OK Java 11 TESTS 44 249 25497600 1100
133724644 SaberXpro B Oct. 31, 2021, 5:57 a.m. OK Java 11 TESTS 44 249 25600000 1100
133689517 KarMa_ B Oct. 30, 2021, 5:40 p.m. OK Java 11 TESTS 44 264 25804800 1100
133684055 dhruvil8804 B Oct. 30, 2021, 4:34 p.m. OK Java 11 TESTS 44 265 25497600 1100
133683658 nirmal_8 B Oct. 30, 2021, 4:33 p.m. OK Java 11 TESTS 44 265 25497600 1100
133707956 uxie B Oct. 30, 2021, 10:57 p.m. OK Java 11 TESTS 44 280 25600000 1100
133690477 milon34 B Oct. 30, 2021, 5:48 p.m. OK Java 11 TESTS 44 280 25600000 1100
133722661 ayush__1411 B Oct. 31, 2021, 5:31 a.m. OK Java 11 TESTS 44 280 25702400 1100
133690361 YashSaxena B Oct. 30, 2021, 5:47 p.m. OK Java 8 TESTS 44 124 18841600 1100
133680992 wyxfwxh250821 B Oct. 30, 2021, 4:28 p.m. OK Java 8 TESTS 44 171 19660800 1100
133689886 gauravbajaj B Oct. 30, 2021, 5:43 p.m. OK Java 8 TESTS 44 171 20480000 1100
133717664 Yehia8 B Oct. 31, 2021, 4:05 a.m. OK Java 8 TESTS 44 171 20582400 1100
133711210 Srikanth1777 B Oct. 31, 2021, 1:25 a.m. OK Java 8 TESTS 44 171 20582400 1100
133701496 less_ordinary B Oct. 30, 2021, 8:04 p.m. OK Java 8 TESTS 44 171 20582400 1100
133696238 PRIYANSH_TOMAR B Oct. 30, 2021, 6:51 p.m. OK Java 8 TESTS 44 171 20582400 1100
133688322 Mustafa__ B Oct. 30, 2021, 5:31 p.m. OK Java 8 TESTS 44 171 20582400 1100
133722670 dogranmol B Oct. 31, 2021, 5:31 a.m. OK Java 8 TESTS 44 171 21299200 1100
133688348 smahajan54842 B Oct. 30, 2021, 5:31 p.m. OK Java 8 TESTS 44 171 24371200 1100
133698462 koper B Oct. 30, 2021, 7:19 p.m. OK Kotlin 1.4 TESTS 44 265 29491200 1100
133717688 ayush_anand B Oct. 31, 2021, 4:06 a.m. OK Kotlin 1.5 TESTS 44 436 32665600 1100
133713399 bkifhr6 B Oct. 31, 2021, 2:31 a.m. OK MS C++ 2017 TESTS 44 93 5120000 1100
133702707 gleb32 B Oct. 30, 2021, 8:25 p.m. OK MS C++ 2017 TESTS 44 264 2150400 1100
133684564 zhendelan123 B Oct. 30, 2021, 4:34 p.m. OK MS C++ 2017 TESTS 44 265 1945600 1100
133711297 mylittlekirit0 B Oct. 31, 2021, 1:28 a.m. OK MS C++ 2017 TESTS 44 265 2150400 1100
133703292 13coder B Oct. 30, 2021, 8:38 p.m. OK MS C++ 2017 TESTS 44 280 1126400 1100
133710857 SinaLIze B Oct. 31, 2021, 1:13 a.m. OK MS C++ 2017 TESTS 44 280 1536000 1100
133695433 Tangerine B Oct. 30, 2021, 6:41 p.m. OK MS C++ 2017 TESTS 44 280 1945600 1100
133720802 _lcj B Oct. 31, 2021, 5:04 a.m. OK MS C++ 2017 TESTS 44 295 1536000 1100
133705259 Ilyaiq300 B Oct. 30, 2021, 9:23 p.m. OK MS C++ 2017 TESTS 44 312 2150400 1100
133687571 1_2_3_4_5_9 B Oct. 30, 2021, 5:27 p.m. OK PyPy 2 TESTS 44 140 39116800 1100
133677753 shehebe B Oct. 30, 2021, 4:21 p.m. OK PyPy 2 TESTS 44 295 36352000 1100
133693619 hxu10 B Oct. 30, 2021, 6:20 p.m. OK PyPy 3 TESTS 44 170 35532800 1100
133693064 nitish420 B Oct. 30, 2021, 6:14 p.m. OK PyPy 3 TESTS 44 187 36249600 1100
133711798 Sujith_ B Oct. 31, 2021, 1:46 a.m. OK PyPy 3 TESTS 44 233 42188800 1100
133724056 coder_sounak B Oct. 31, 2021, 5:49 a.m. OK PyPy 3 TESTS 44 264 39833600 1100
133713397 3juhwan B Oct. 31, 2021, 2:31 a.m. OK PyPy 3 TESTS 44 373 31334400 1100
133690631 akshitm16 B Oct. 30, 2021, 5:50 p.m. OK PyPy 3 TESTS 44 374 31334400 1100
133704259 whatshisbucket B Oct. 30, 2021, 8:58 p.m. OK PyPy 3 TESTS 44 374 31846400 1100
133688555 Siddharth_Mehta1311 B Oct. 30, 2021, 5:33 p.m. OK PyPy 3 TESTS 44 405 165068800 1100
133689176 WitchOfTruth B Oct. 30, 2021, 5:37 p.m. OK PyPy 3 TESTS 44 451 40960000 1100
133711387 artfive5 B Oct. 31, 2021, 1:32 a.m. OK PyPy 3 TESTS 44 498 31539200 1100
133695504 prackode B Oct. 30, 2021, 6:42 p.m. OK PyPy 3-64 TESTS 44 186 59392000 1100
133694020 mayank35 B Oct. 30, 2021, 6:24 p.m. OK PyPy 3-64 TESTS 44 202 54374400 1100
133715159 cyberkid05 B Oct. 31, 2021, 3:11 a.m. OK PyPy 3-64 TESTS 44 389 51916800 1100
133698695 Slamur B Oct. 30, 2021, 7:22 p.m. OK PyPy 3-64 TESTS 44 436 50176000 1100
133689693 andrey545454 B Oct. 30, 2021, 5:41 p.m. OK PyPy 3-64 TESTS 44 452 48230400 1100
133711193 d0gied B Oct. 31, 2021, 1:24 a.m. OK PyPy 3-64 TESTS 44 468 53964800 1100
133704666 freakbuoyancy B Oct. 30, 2021, 9:07 p.m. OK PyPy 3-64 TESTS 44 483 50176000 1100
133723970 20bcs13899 B Oct. 31, 2021, 5:48 a.m. OK PyPy 3-64 TESTS 44 483 51200000 1100
133719800 Khakim01 B Oct. 31, 2021, 4:48 a.m. OK PyPy 3-64 TESTS 44 498 50073600 1100
133696418 KA.L B Oct. 30, 2021, 6:53 p.m. OK PyPy 3-64 TESTS 44 514 49152000 1100
133700691 wandrer B Oct. 30, 2021, 7:52 p.m. OK Python 3 TESTS 44 140 23654400 1100
133723447 tempo001 B Oct. 31, 2021, 5:41 a.m. OK Python 3 TESTS 44 171 15052800 1100
133712541 shekharkarna3 B Oct. 31, 2021, 2:09 a.m. OK Python 3 TESTS 44 186 15052800 1100
133682545 vedavineetha B Oct. 30, 2021, 4:31 p.m. OK Python 3 TESTS 44 187 14950400 1100
133676897 HiroshiRay B Oct. 30, 2021, 4:19 p.m. OK Python 3 TESTS 44 187 14950400 1100
133672676 haggoo B Oct. 30, 2021, 4:08 p.m. OK Python 3 TESTS 44 187 14950400 1100
133695363 SwapT087 B Oct. 30, 2021, 6:40 p.m. OK Python 3 TESTS 44 187 15052800 1100
133680948 RadhaMPaurana B Oct. 30, 2021, 4:28 p.m. OK Python 3 TESTS 44 187 15052800 1100
133703338 Genius3435 B Oct. 30, 2021, 8:39 p.m. OK Python 3 TESTS 44 187 18227200 1100
133697040 sino0429 B Oct. 30, 2021, 7:01 p.m. OK Python 3 TESTS 44 202 13516800 1100
133688419 SorKierkegaard B Oct. 30, 2021, 5:32 p.m. OK Rust TESTS 44 109 7577600 1100

remove filters

Back to search problems