Codeforces Round 900 (Div. 3)

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
1878 Codeforces Round 900 (Div. 3) FINISHED False 8100 41441063 Sept. 26, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 47902 ) A How Much Does Daytona Cost? PROGRAMMING greedy

B'We define an integer to be the most common on a subsegment, if its number of occurrences on that subsegment is larger than the number of occurrences of any other integer in that subsegment. A subsegment of an array is a consecutive segment of elements in the array a . Given an array a of size n , and an integer k , determine if there exists a non-empty subsegment of a where k is the most common element. Each test consists of multiple test cases. The first line contains a single integer t ( 1 <= t <= 1000 ) -- the number of test cases. The description of test cases follows. The first line of each test case contains two integers n and k ( 1 <= n <= 100 , 1 <= k <= 100 ) -- the number of elements in array and the element which must be the most common. The second line of each test case contains n integers a_1 , a_2 , a_3 , ... , a_n ( 1 <= a_i <= 100 ) -- elements of the array. For each test case output "YES" if there exists a subsegment in which k is the most common element, and "NO" otherwise. You can output the answer in any case (for example, the strings "yEs", "yes", "Yes", and "YES" will be recognized as a positive answer). In the first test case we need to check if there is a subsegment where the most common element is 4 . On the subsegment [2,5] the elements are 4, 3, 4, 1 . This means that 4 is the most common element on the subsegment [2, 5] , so there exists a subsegment where 4 is the most common element. '...

Tutorials

Codeforces round #900 (Div.3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
225574419 Sharpyn_Elmor A Sept. 27, 2023, 9:37 p.m. OK C# 10 TESTS 14 62 3072000
225487494 Amr_Mostafa_Ahmed A Sept. 27, 2023, 9:43 a.m. OK C# 10 TESTS 14 62 12083200
225529651 convnet A Sept. 27, 2023, 2:33 p.m. OK Clang++20 Diagnostics TESTS 14 342 0
225597479 Nakshatra07 A Sept. 28, 2023, 5:22 a.m. OK GNU C11 TESTS 14 31 0
225548175 HackerGupta069 A Sept. 27, 2023, 4:51 p.m. OK GNU C11 TESTS 14 31 0
225566270 sujal22514 A Sept. 27, 2023, 7:40 p.m. OK GNU C11 TESTS 14 31 0
225594924 MD.Atik A Sept. 28, 2023, 4:52 a.m. OK GNU C11 TESTS 14 31 0
225526933 cmrit25_21R01A05M6 A Sept. 27, 2023, 2:15 p.m. OK GNU C11 TESTS 14 31 0
225529832 md.naeem A Sept. 27, 2023, 2:35 p.m. OK GNU C11 TESTS 14 31 0
225542529 SakshamSP A Sept. 27, 2023, 4:08 p.m. OK GNU C11 TESTS 14 31 0
225543265 UNLUCKY_0.13 A Sept. 27, 2023, 4:14 p.m. OK GNU C11 TESTS 14 31 0
225545685 girual2004 A Sept. 27, 2023, 4:32 p.m. OK GNU C11 TESTS 14 31 0
225551698 Adi_J_3.17 A Sept. 27, 2023, 5:21 p.m. OK GNU C11 TESTS 14 31 409600
225600772 DevButani A Sept. 28, 2023, 5:56 a.m. OK GNU C++14 TESTS 14 15 0
225542705 muhtasimzarif55 A Sept. 27, 2023, 4:10 p.m. OK GNU C++14 TESTS 14 15 0
225501150 Lotuses A Sept. 27, 2023, 11:27 a.m. OK GNU C++14 TESTS 14 15 1024000
225562588 turbo_sa A Sept. 27, 2023, 7 p.m. OK GNU C++14 TESTS 14 31 0
225597308 pratik___9998 A Sept. 28, 2023, 5:20 a.m. OK GNU C++14 TESTS 14 31 0
225590896 Fresca A Sept. 28, 2023, 3:51 a.m. OK GNU C++14 TESTS 14 31 0
225588021 wyfryj210414 A Sept. 28, 2023, 2:55 a.m. OK GNU C++14 TESTS 14 31 0
225580543 hzy99999 A Sept. 28, 2023, 12:05 a.m. OK GNU C++14 TESTS 14 31 0
225580137 Rama234 A Sept. 27, 2023, 11:55 p.m. OK GNU C++14 TESTS 14 31 0
225579454 V_Gosain A Sept. 27, 2023, 11:37 p.m. OK GNU C++14 TESTS 14 31 0
225585337 knaresh10 A Sept. 28, 2023, 1:57 a.m. OK GNU C++17 TESTS 14 15 0
225455914 Srivatsa19 A Sept. 27, 2023, 4:02 a.m. OK GNU C++17 TESTS 14 30 1024000
225585100 godlixe A Sept. 28, 2023, 1:51 a.m. OK GNU C++17 TESTS 14 31 0
225599210 sanjaydbg A Sept. 28, 2023, 5:41 a.m. OK GNU C++17 TESTS 14 31 0
225597871 richardlaiiiii A Sept. 28, 2023, 5:26 a.m. OK GNU C++17 TESTS 14 31 0
225588579 road_to_nus A Sept. 28, 2023, 3:08 a.m. OK GNU C++17 TESTS 14 31 0
225587067 harrykuo1 A Sept. 28, 2023, 2:33 a.m. OK GNU C++17 TESTS 14 31 0
225586177 Xu_127 A Sept. 28, 2023, 2:17 a.m. OK GNU C++17 TESTS 14 31 0
225586168 appease A Sept. 28, 2023, 2:16 a.m. OK GNU C++17 TESTS 14 31 0
225598375 Balispandan26 A Sept. 28, 2023, 5:32 a.m. OK GNU C++17 TESTS 14 31 0
225592738 XswPP A Sept. 28, 2023, 4:20 a.m. OK GNU C++17 (64) TESTS 14 15 0
225592777 haque_3 A Sept. 28, 2023, 4:20 a.m. OK GNU C++17 (64) TESTS 14 15 0
225494462 092621114sjk A Sept. 27, 2023, 10:41 a.m. OK GNU C++17 (64) TESTS 14 15 1228800
225448860 BoaHancock A Sept. 27, 2023, 2:05 a.m. OK GNU C++17 (64) TESTS 14 15 1331200
225557884 shuvocoder2025 A Sept. 27, 2023, 6:14 p.m. OK GNU C++17 (64) TESTS 14 15 1638400
225589448 JustA7 A Sept. 28, 2023, 3:25 a.m. OK GNU C++17 (64) TESTS 14 30 0
225487956 xiaoshao A Sept. 27, 2023, 9:46 a.m. OK GNU C++17 (64) TESTS 14 30 1228800
225498524 luogu_bot5 A Sept. 27, 2023, 11:10 a.m. OK GNU C++17 (64) TESTS 14 30 1228800
225494479 Abir_Dey A Sept. 27, 2023, 10:41 a.m. OK GNU C++17 (64) TESTS 14 30 1228800
225457072 codeiologist A Sept. 27, 2023, 4:17 a.m. OK GNU C++17 (64) TESTS 14 30 1228800
225547116 AmroRabea A Sept. 27, 2023, 4:43 p.m. OK GNU C++20 (64) TESTS 14 15 0
225547722 Striver_Anant16 A Sept. 27, 2023, 4:48 p.m. OK GNU C++20 (64) TESTS 14 15 0
225549430 far_away A Sept. 27, 2023, 5:01 p.m. OK GNU C++20 (64) TESTS 14 15 0
225550797 harshikeshbhadaniya A Sept. 27, 2023, 5:13 p.m. OK GNU C++20 (64) TESTS 14 15 0
225554161 Risan99 A Sept. 27, 2023, 5:42 p.m. OK GNU C++20 (64) TESTS 14 15 0
225559036 CGemmy A Sept. 27, 2023, 6:25 p.m. OK GNU C++20 (64) TESTS 14 15 0
225560674 vijaymunde_02 A Sept. 27, 2023, 6:41 p.m. OK GNU C++20 (64) TESTS 14 15 0
225574947 JadeReaper A Sept. 27, 2023, 9:48 p.m. OK GNU C++20 (64) TESTS 14 15 0
225589941 Chivalrous_Prac A Sept. 28, 2023, 3:33 a.m. OK GNU C++20 (64) TESTS 14 15 0
225598116 aryanrohit A Sept. 28, 2023, 5:29 a.m. OK GNU C++20 (64) TESTS 14 15 0
225534764 MyWaifuSatouMatsuzaka A Sept. 27, 2023, 3:10 p.m. OK Haskell TESTS 14 30 0
225568752 polsage A Sept. 27, 2023, 8:11 p.m. OK Java 11 TESTS 14 186 0
225474646 letrithong A Sept. 27, 2023, 8:02 a.m. OK Java 11 TESTS 14 218 24576000
225450968 poluri A Sept. 27, 2023, 2:44 a.m. OK Java 11 TESTS 14 218 24576000
225492051 Phanscad A Sept. 27, 2023, 10:21 a.m. OK Java 11 TESTS 14 233 24780800
225459344 thakur6393 A Sept. 27, 2023, 4:46 a.m. OK Java 11 TESTS 14 249 24678400
225481796 champions815 A Sept. 27, 2023, 8:58 a.m. OK Java 11 TESTS 14 264 25395200
225565338 Smriti_Gupta A Sept. 27, 2023, 7:30 p.m. OK Java 11 TESTS 14 311 0
225471798 Lix2002 A Sept. 27, 2023, 7:36 a.m. OK Java 11 TESTS 14 311 25395200
225569482 Riya_Arjariya A Sept. 27, 2023, 8:20 p.m. OK Java 11 TESTS 14 312 0
225484720 Kundan_Sai_Reddy A Sept. 27, 2023, 9:20 a.m. OK Java 11 TESTS 14 312 25395200
225600716 cpp10 A Sept. 28, 2023, 5:56 a.m. OK Java 17 TESTS 14 171 204800
225483801 RahulAhuja2901 A Sept. 27, 2023, 9:13 a.m. OK Java 17 TESTS 14 171 40550400
225534109 leoncn A Sept. 27, 2023, 3:05 p.m. OK Java 17 TESTS 14 187 512000
225511885 whd_CN A Sept. 27, 2023, 12:36 p.m. OK Java 17 TESTS 14 202 40448000
225561024 yugam_04 A Sept. 27, 2023, 6:44 p.m. OK Java 17 TESTS 14 218 204800
225450990 rdhakar246 A Sept. 27, 2023, 2:44 a.m. OK Java 17 TESTS 14 218 40448000
225583507 oneafter A Sept. 28, 2023, 1:14 a.m. OK Java 17 TESTS 14 233 512000
225481421 weird_penguin A Sept. 27, 2023, 8:55 a.m. OK Java 17 TESTS 14 233 40140800
225515996 anirban390 A Sept. 27, 2023, 1:04 p.m. OK Java 17 TESTS 14 233 40243200
225450490 woodyiiiiiii A Sept. 27, 2023, 2:36 a.m. OK Java 17 TESTS 14 234 40550400
225493611 typyk A Sept. 27, 2023, 10:34 a.m. OK Java 21 TESTS 14 327 41267200
225596251 MD.Atik A Sept. 28, 2023, 5:09 a.m. OK Java 21 TESTS 14 373 0
225483078 devendar11 A Sept. 27, 2023, 9:08 a.m. OK Java 21 TESTS 14 373 41062400
225541122 TARIKUL_ISLAM. A Sept. 27, 2023, 3:57 p.m. OK Java 21 TESTS 14 374 0
225506008 Sumitp007 A Sept. 27, 2023, 11:58 a.m. OK Java 21 TESTS 14 389 41164800
225452658 r2k A Sept. 27, 2023, 3:13 a.m. OK Java 21 TESTS 14 390 41164800
225566003 fast_coder_395 A Sept. 27, 2023, 7:37 p.m. OK Java 21 TESTS 14 467 0
225499571 yadavDipesh A Sept. 27, 2023, 11:18 a.m. OK Java 8 TESTS 14 108 18841600
225590388 dsdkjwoejo A Sept. 28, 2023, 3:42 a.m. OK Java 8 TESTS 14 124 0
225542190 formidablechief_27 A Sept. 27, 2023, 4:06 p.m. OK Java 8 TESTS 14 124 0
225471533 xiaoshua A Sept. 27, 2023, 7:34 a.m. OK Java 8 TESTS 14 124 18944000
225505671 KHUSHI_SINGH_23 A Sept. 27, 2023, 11:55 a.m. OK Java 8 TESTS 14 156 18944000
225537664 Echo_14 A Sept. 27, 2023, 3:32 p.m. OK Java 8 TESTS 14 233 0
225592771 shubhamsahani A Sept. 28, 2023, 4:20 a.m. OK Java 8 TESTS 14 234 0
225471469 omneesh.kushwah6396 A Sept. 27, 2023, 7:33 a.m. OK Java 8 TESTS 14 249 19660800
225471282 omneesh.kushwah6396 A Sept. 27, 2023, 7:31 a.m. OK Java 8 TESTS 14 249 19660800
225451898 Kartik2005 A Sept. 27, 2023, 3 a.m. OK Java 8 TESTS 14 249 19660800
225486495 zeinab A Sept. 27, 2023, 9:34 a.m. OK Mono C# TESTS 14 62 9216000
225568589 Alexit A Sept. 27, 2023, 8:09 p.m. OK MS C++ 2017 TESTS 14 62 0
225590245 Varun_2K A Sept. 28, 2023, 3:39 a.m. OK MS C++ 2017 TESTS 14 78 0
225519309 ansh_jain23 A Sept. 27, 2023, 1:26 p.m. OK MS C++ 2017 TESTS 14 78 1126400
225516378 6ziv A Sept. 27, 2023, 1:07 p.m. OK MS C++ 2017 TESTS 14 78 1126400
225483126 safe1 A Sept. 27, 2023, 9:08 a.m. OK MS C++ 2017 TESTS 14 93 1126400
225459153 otnahs A Sept. 27, 2023, 4:43 a.m. OK Node.js TESTS 14 109 14336000
225549782 0xROoT A Sept. 27, 2023, 5:05 p.m. OK PyPy 3 TESTS 14 124 3788800
225483534 iCatOH A Sept. 27, 2023, 9:11 a.m. OK PyPy 3 TESTS 14 124 20582400
225538174 Keramine A Sept. 27, 2023, 3:35 p.m. OK PyPy 3 TESTS 14 202 5324800
225511510 Xamp A Sept. 27, 2023, 12:34 p.m. OK PyPy 3 TESTS 14 202 22835200
225473394 mathsworm A Sept. 27, 2023, 7:53 a.m. OK PyPy 3 TESTS 14 202 23449600
225471966 heprob A Sept. 27, 2023, 7:38 a.m. OK PyPy 3 TESTS 14 202 24166400
225562823 pedrosorio A Sept. 27, 2023, 7:03 p.m. OK PyPy 3 TESTS 14 249 6553600
225449209 sakai A Sept. 27, 2023, 2:12 a.m. OK PyPy 3-64 TESTS 14 77 32563200
225536768 InHng A Sept. 27, 2023, 3:25 p.m. OK PyPy 3-64 TESTS 14 92 3072000
225539793 aentrenus1 A Sept. 27, 2023, 3:48 p.m. OK PyPy 3-64 TESTS 14 92 3379200
225546367 to0th_less A Sept. 27, 2023, 4:37 p.m. OK PyPy 3-64 TESTS 14 93 2969600
225550615 harrylfoppa A Sept. 27, 2023, 5:12 p.m. OK PyPy 3-64 TESTS 14 93 3072000
225478332 Marco_Lau A Sept. 27, 2023, 8:31 a.m. OK PyPy 3-64 TESTS 14 93 31846400
225473663 bruher A Sept. 27, 2023, 7:55 a.m. OK PyPy 3-64 TESTS 14 93 32665600
225470740 AndreiZherder A Sept. 27, 2023, 7:25 a.m. OK PyPy 3-64 TESTS 14 93 32665600
225492883 AD0 A Sept. 27, 2023, 10:28 a.m. OK PyPy 3-64 TESTS 14 93 33280000
225581798 nealzane A Sept. 28, 2023, 12:35 a.m. OK PyPy 3-64 TESTS 14 108 3481600
225453580 tlswlgns2021 A Sept. 27, 2023, 3:27 a.m. OK Python 3 TESTS 14 46 5939200
225471333 Ovicorsho A Sept. 27, 2023, 7:32 a.m. OK Python 3 TESTS 14 46 6144000
225553913 Aditya_Santhosh A Sept. 27, 2023, 5:40 p.m. OK Python 3 TESTS 14 61 0
225579354 AryanGoel575 A Sept. 27, 2023, 11:34 p.m. OK Python 3 TESTS 14 61 102400
225584777 DeathStroke______ A Sept. 28, 2023, 1:43 a.m. OK Python 3 TESTS 14 61 409600
225561911 2607 A Sept. 27, 2023, 6:53 p.m. OK Python 3 TESTS 14 61 409600
225549633 Lolboi A Sept. 27, 2023, 5:03 p.m. OK Python 3 TESTS 14 61 409600
225529713 NoLongerHuman A Sept. 27, 2023, 2:34 p.m. OK Python 3 TESTS 14 61 409600
225470742 shashwatjaipuria3 A Sept. 27, 2023, 7:25 a.m. OK Python 3 TESTS 14 61 5632000
225477160 Ratery A Sept. 27, 2023, 8:22 a.m. OK Python 3 TESTS 14 61 6144000
225558869 ShyWoou A Sept. 27, 2023, 6:24 p.m. OK Rust 2021 TESTS 14 31 0

remove filters

Back to search problems