Codeforces Round 919 (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
1920 Codeforces Round 919 (Div. 2) FINISHED False 7200 32023463 Jan. 13, 2024, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 14492 ) C Partitioning the Array PROGRAMMING brute force number theory

B'Allen has an array a_1, a_2, ldots,a_n . For every positive integer k that is a divisor of n , Allen does the following: Help Allen find the number of points he will earn. Each test consists of multiple test cases. The first line contains a single integer t ( 1 <= q t <= q 10^4 ) -- the number of test cases. The description of the test cases follows. The first line of each test case contains a single integer n ( 1 <= q n <= q 2 cdot10^5 ) -- the length of the array a . The second line of each test case contains n integers a_1, a_2, ldots, a_n ( 1 <= q a_i <= q n ) -- the elements of the array a . It is guaranteed that the sum of n over all test cases does not exceed 2 cdot 10^5 . For each test case, output a single integer -- the number of points Allen will earn. In the first test case, k=2 earns a point since Allen can pick m = 2 and both subarrays will be equal to [1, 0] . k=4 also earns a point, since no matter what m Allen chooses, there will be only one subarray and thus all subarrays are equal. In the second test case, Allen earns 1 point for k=3 , where his choice for m does not matter. '...

Tutorials

Editorial for Codeforces Round #919 (Div. 2)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
241526376 ruban C Jan. 14, 2024, 4:40 a.m. OK FPC TESTS 25 904 17612800
241483570 dedicatedaf C Jan. 13, 2024, 4:30 p.m. OK GNU C11 TESTS 21 140 9011200
241527605 Kaushal655 C Jan. 14, 2024, 5:02 a.m. OK GNU C11 TESTS 25 312 819200
241528853 Nishant_2728 C Jan. 14, 2024, 5:20 a.m. OK GNU C11 TESTS 25 343 1024000
241484016 vamshiambatipudi C Jan. 13, 2024, 4:31 p.m. OK GNU C11 TESTS 21 452 9625600
241484791 Atom_Hoang C Jan. 13, 2024, 4:32 p.m. OK GNU C++14 TESTS 21 140 921600
241519702 hehe012 C Jan. 14, 2024, 2:16 a.m. OK GNU C++14 TESTS 25 140 1536000
241519621 itshawn C Jan. 14, 2024, 2:15 a.m. OK GNU C++14 TESTS 25 156 819200
241529392 maulik_sharma C Jan. 14, 2024, 5:27 a.m. OK GNU C++14 TESTS 25 171 819200
241519919 MegalovaniaJ C Jan. 14, 2024, 2:22 a.m. OK GNU C++14 TESTS 25 171 819200
241500045 BugIsAll C Jan. 13, 2024, 6:37 p.m. OK GNU C++14 TESTS 24 187 819200
241482718 Vivi_zhaojingqi C Jan. 13, 2024, 4:28 p.m. OK GNU C++14 TESTS 21 187 2150400
241524485 redfeather C Jan. 14, 2024, 4:04 a.m. OK GNU C++14 TESTS 25 202 1638400
241519219 Mars_Dingdang C Jan. 14, 2024, 2:04 a.m. OK GNU C++14 TESTS 25 280 2867200
241490654 SaltyDonut C Jan. 13, 2024, 5:24 p.m. OK GNU C++14 TESTS 21 295 9625600
241497212 KroosTheKeenGlint C Jan. 13, 2024, 6:10 p.m. OK GNU C++17 TESTS 24 78 2457600
241526803 inverno C Jan. 14, 2024, 4:47 a.m. OK GNU C++17 TESTS 25 93 11264000
241485998 myvaluska C Jan. 13, 2024, 4:34 p.m. OK GNU C++17 TESTS 21 124 819200
241502577 saketh.12 C Jan. 13, 2024, 7:05 p.m. OK GNU C++17 TESTS 25 139 819200
241518411 eacnscnj C Jan. 14, 2024, 1:42 a.m. OK GNU C++17 TESTS 25 140 819200
241483427 cftryharder C Jan. 13, 2024, 4:29 p.m. OK GNU C++17 TESTS 21 140 1433600
241482296 struce C Jan. 13, 2024, 4:27 p.m. OK GNU C++17 TESTS 21 140 1638400
241520297 trick_trick C Jan. 14, 2024, 2:30 a.m. OK GNU C++17 TESTS 25 155 819200
241495334 HaqueWasif C Jan. 13, 2024, 5:54 p.m. OK GNU C++17 TESTS 22 156 819200
241509144 TheMockingJay1013 C Jan. 13, 2024, 8:42 p.m. OK GNU C++17 TESTS 25 156 819200
241518500 JJFzz C Jan. 14, 2024, 1:44 a.m. OK GNU C++17 (64) TESTS 25 155 819200
241522846 Default0909 C Jan. 14, 2024, 3:28 a.m. OK GNU C++17 (64) TESTS 25 218 819200
241524405 ericchenxktz C Jan. 14, 2024, 4:02 a.m. OK GNU C++17 (64) TESTS 25 264 1843200
241488605 xu826281112 C Jan. 13, 2024, 5:16 p.m. OK GNU C++17 (64) TESTS 21 265 5836800
241511743 sandoval95 C Jan. 13, 2024, 9:35 p.m. OK GNU C++17 (64) TESTS 25 280 819200
241524576 rao_anil C Jan. 14, 2024, 4:06 a.m. OK GNU C++17 (64) TESTS 25 295 4198400
241526667 Lcaokai C Jan. 14, 2024, 4:45 a.m. OK GNU C++17 (64) TESTS 25 296 819200
241519046 Hy-per-bola C Jan. 14, 2024, 1:59 a.m. OK GNU C++17 (64) TESTS 25 296 3993600
241480954 pray4u C Jan. 13, 2024, 4:24 p.m. OK GNU C++17 (64) TESTS 21 311 819200
241519292 youthPaul C Jan. 14, 2024, 2:06 a.m. OK GNU C++17 (64) TESTS 25 311 819200
241529659 PROELECTRO444 C Jan. 14, 2024, 5:30 a.m. OK GNU C++20 (64) TESTS 25 62 1638400
241529452 PROELECTRO444 C Jan. 14, 2024, 5:28 a.m. OK GNU C++20 (64) TESTS 25 62 16076800
241493581 I_love_GSNQK C Jan. 13, 2024, 5:42 p.m. OK GNU C++20 (64) TESTS 22 109 819200
241480254 yxyxyx C Jan. 13, 2024, 4:23 p.m. OK GNU C++20 (64) TESTS 21 109 819200
241501399 piratZnachor C Jan. 13, 2024, 6:51 p.m. OK GNU C++20 (64) TESTS 25 109 819200
241502197 VitaliiV C Jan. 13, 2024, 7:01 p.m. OK GNU C++20 (64) TESTS 25 109 819200
241492553 Galaxy_Ivan C Jan. 13, 2024, 5:35 p.m. OK GNU C++20 (64) TESTS 22 109 1638400
241491878 It_is_time C Jan. 13, 2024, 5:31 p.m. OK GNU C++20 (64) TESTS 22 109 18022400
241523590 YJ365723 C Jan. 14, 2024, 3:44 a.m. OK GNU C++20 (64) TESTS 25 124 819200
241490148 TravellingSalesman C Jan. 13, 2024, 5:22 p.m. OK GNU C++20 (64) TESTS 21 124 819200
241524682 ajayg3059 C Jan. 14, 2024, 4:08 a.m. OK Go TESTS 25 655 3174400
241519232 SadFriedRice C Jan. 14, 2024, 2:04 a.m. OK Go TESTS 25 826 3174400
241502466 Deathstar333 C Jan. 13, 2024, 7:04 p.m. OK Java 11 TESTS 25 452 0
241510995 necro99 C Jan. 13, 2024, 9:17 p.m. OK Java 11 TESTS 25 546 0
241509687 qwerty12345qwerty C Jan. 13, 2024, 8:51 p.m. OK Java 11 TESTS 25 639 0
241490506 Panther369 C Jan. 13, 2024, 5:24 p.m. OK Java 11 TESTS 21 670 0
241499367 Jay08 C Jan. 13, 2024, 6:30 p.m. OK Java 11 TESTS 24 670 40448000
241495701 Magical C Jan. 13, 2024, 5:57 p.m. OK Java 11 TESTS 22 686 0
241493372 lucky1305 C Jan. 13, 2024, 5:40 p.m. OK Java 11 TESTS 22 701 2048000
241529469 rajneesh.osho C Jan. 14, 2024, 5:28 a.m. OK Java 11 TESTS 25 842 0
241521880 snkv C Jan. 14, 2024, 3:06 a.m. OK Java 11 TESTS 25 873 9318400
241521773 snkv C Jan. 14, 2024, 3:04 a.m. OK Java 11 TESTS 25 1013 9830400
241500093 Multi-Thread C Jan. 13, 2024, 6:37 p.m. OK Java 17 TESTS 24 498 409600
241511648 54k C Jan. 13, 2024, 9:32 p.m. OK Java 17 TESTS 25 592 204800
241501661 m0rk4 C Jan. 13, 2024, 6:54 p.m. OK Java 17 TESTS 25 623 921600
241528169 rishabhkumrawat02 C Jan. 14, 2024, 5:10 a.m. OK Java 17 TESTS 25 764 19558400
241519063 Xing_ke C Jan. 14, 2024, 1:59 a.m. OK Java 17 TESTS 25 889 614400
241508551 jw27_ C Jan. 13, 2024, 8:31 p.m. OK Java 17 TESTS 25 935 921600
241492934 jai_hanumant C Jan. 13, 2024, 5:38 p.m. OK Java 17 TESTS 22 951 512000
241503243 krish1832 C Jan. 13, 2024, 7:14 p.m. OK Java 17 TESTS 25 966 819200
241508065 ramitg254 C Jan. 13, 2024, 8:23 p.m. OK Java 17 TESTS 25 1107 102400
241531761 Jatinydv17 C Jan. 14, 2024, 5:55 a.m. OK Java 17 TESTS 25 1123 0
241499042 v3n1v1c11v1c1 C Jan. 13, 2024, 6:27 p.m. OK Java 21 TESTS 24 624 102400
241515179 shaili17 C Jan. 13, 2024, 11:31 p.m. OK Java 21 TESTS 25 716 0
241494726 SD125 C Jan. 13, 2024, 5:50 p.m. OK Java 21 TESTS 22 732 204800
241521713 HuParry C Jan. 14, 2024, 3:03 a.m. OK Java 21 TESTS 25 732 307200
241504842 Akash_Sardar C Jan. 13, 2024, 7:35 p.m. OK Java 21 TESTS 25 748 12288000
241483442 stoicmann C Jan. 13, 2024, 4:29 p.m. OK Java 21 TESTS 21 794 512000
241481928 susvant C Jan. 13, 2024, 4:26 p.m. OK Java 21 TESTS 21 811 307200
241489115 mapleKing C Jan. 13, 2024, 5:17 p.m. OK Java 21 TESTS 21 1076 614400
241517132 man-ray C Jan. 14, 2024, 12:59 a.m. OK Java 21 TESTS 25 1279 0
241495710 Shinobi C Jan. 13, 2024, 5:57 p.m. OK Java 21 TESTS 22 1388 12800000
241490009 slash0t C Jan. 13, 2024, 5:22 p.m. OK Java 8 TESTS 21 483 1945600
241515160 SecondThread C Jan. 13, 2024, 11:30 p.m. OK Java 8 TESTS 25 545 1843200
241511429 new__1 C Jan. 13, 2024, 9:27 p.m. OK Java 8 TESTS 25 577 1843200
241497421 mohamedhassan_c C Jan. 13, 2024, 6:12 p.m. OK Java 8 TESTS 24 623 13209600
241513989 malekelkassas C Jan. 13, 2024, 10:45 p.m. OK Java 8 TESTS 25 654 12390400
241485247 AgniWarrior C Jan. 13, 2024, 4:33 p.m. OK Java 8 TESTS 21 780 13619200
241514759 Yousef_Badr C Jan. 13, 2024, 11:14 p.m. OK Java 8 TESTS 25 998 1945600
241511781 invincible777 C Jan. 13, 2024, 9:36 p.m. OK Java 8 TESTS 25 1107 2150400
241497868 vijay_panwar12 C Jan. 13, 2024, 6:16 p.m. OK Java 8 TESTS 24 1122 2048000
241481791 tirthgohil1410 C Jan. 13, 2024, 4:26 p.m. OK Java 8 TESTS 21 1294 3072000
241527063 rscprof C Jan. 14, 2024, 4:52 a.m. OK Kotlin 1.9 TESTS 25 1294 145612800
241530242 maple19out C Jan. 14, 2024, 5:37 a.m. OK MS C++ 2017 TESTS 25 390 819200
241495715 Werrious C Jan. 13, 2024, 5:57 p.m. OK MS C++ 2017 TESTS 22 436 819200
241511857 NajlSadek C Jan. 13, 2024, 9:38 p.m. OK MS C++ 2017 TESTS 25 717 819200
241529539 Exusiai1 C Jan. 14, 2024, 5:29 a.m. OK MS C++ 2017 TESTS 25 2371 2457600
241527813 Exusiai1 C Jan. 14, 2024, 5:04 a.m. OK MS C++ 2017 TESTS 25 2371 2457600
241494574 OLOGY C Jan. 13, 2024, 5:49 p.m. OK PyPy 2 TESTS 22 1808 13414400
241492050 OLOGY C Jan. 13, 2024, 5:32 p.m. OK PyPy 2 TESTS 22 1824 11980800
241491572 OLOGY C Jan. 13, 2024, 5:29 p.m. OK PyPy 2 TESTS 22 1824 12083200
241517380 rvronak C Jan. 14, 2024, 1:08 a.m. OK PyPy 3 TESTS 25 1747 16281600
241517400 rvronak C Jan. 14, 2024, 1:08 a.m. OK PyPy 3 TESTS 25 1887 15769600
241495165 seeforty4040 C Jan. 13, 2024, 5:53 p.m. OK PyPy 3 TESTS 22 1887 16076800
241502404 _oO_Oo_ C Jan. 13, 2024, 7:03 p.m. OK PyPy 3 TESTS 25 2666 16281600
241494120 daszybak C Jan. 13, 2024, 5:46 p.m. OK PyPy 3 TESTS 22 2698 17100800
241502075 Ayushman_123 C Jan. 13, 2024, 6:59 p.m. OK PyPy 3 TESTS 25 2714 19558400
241489117 singhvsvaibhav03 C Jan. 13, 2024, 5:17 p.m. OK PyPy 3 TESTS 21 2947 16281600
241502229 Prasham C Jan. 13, 2024, 7:01 p.m. OK PyPy 3 TESTS 25 2995 16281600
241496886 Synaptic_Savant C Jan. 13, 2024, 6:08 p.m. OK PyPy 3 TESTS 24 2995 50380800
241497316 liupengsay C Jan. 13, 2024, 6:11 p.m. OK PyPy 3-64 TESTS 24 389 23244800
241497180 liupengsay C Jan. 13, 2024, 6:10 p.m. OK PyPy 3-64 TESTS 24 404 23347200
241495886 liupengsay C Jan. 13, 2024, 5:59 p.m. OK PyPy 3-64 TESTS 22 498 23552000
241495174 Akshar_7 C Jan. 13, 2024, 5:53 p.m. OK PyPy 3-64 TESTS 22 764 18944000
241512558 lucbarn C Jan. 13, 2024, 9:57 p.m. OK PyPy 3-64 TESTS 25 779 16486400
241499024 eunsoo0607 C Jan. 13, 2024, 6:27 p.m. OK PyPy 3-64 TESTS 24 795 23961600
241494210 liupengsay C Jan. 13, 2024, 5:46 p.m. OK PyPy 3-64 TESTS 22 826 96870400
241494406 liupengsay C Jan. 13, 2024, 5:48 p.m. OK PyPy 3-64 TESTS 22 842 96870400
241494974 liupengsay C Jan. 13, 2024, 5:52 p.m. OK PyPy 3-64 TESTS 22 919 97792000
241491887 alchemyst C Jan. 13, 2024, 5:31 p.m. OK PyPy 3-64 TESTS 22 920 22220800
241492232 Awesome3.14 C Jan. 13, 2024, 5:33 p.m. OK Rust 2021 TESTS 22 140 13209600
241503424 Awesome3.14 C Jan. 13, 2024, 7:16 p.m. OK Rust 2021 TESTS 25 156 13209600
241503263 Awesome3.14 C Jan. 13, 2024, 7:14 p.m. OK Rust 2021 TESTS 25 171 13209600
241498295 robostac C Jan. 13, 2024, 6:20 p.m. OK Rust 2021 TESTS 24 217 6348800
241485395 ElectronApps C Jan. 13, 2024, 4:33 p.m. OK Rust 2021 TESTS 21 296 4505600
241498101 Loganwick C Jan. 13, 2024, 6:18 p.m. OK Rust 2021 TESTS 24 639 13721600
241515884 menezesd2 C Jan. 14, 2024, 12:02 a.m. OK Rust 2021 TESTS 25 2184 14131200

remove filters

Back to search problems