Codeforces Round 899 (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
1882 Codeforces Round 899 (Div. 2) FINISHED False 7200 36170699 Sept. 25, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 25498 ) A Increasing Sequence PROGRAMMING greedy

B'You are given a sequence a_{1}, a_{2}, ldots, a_{n} . A sequence b_{1}, b_{2}, ldots, b_{n} is called good, if it satisfies all of the following conditions: Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= t <= 100 ). The description of the test cases follows. The first line of each test case contains a single integer n ( 1 <= n <= 100 ). The second line of each test case contains n integers a_1, a_2, ldots, a_n ( 1 <= a_i <= 10^{9} ). For each test case, print a single integer -- the minimum value of b_{n} among all good sequences b . In the first test case, b = [2, 4, 5, 7, 8] is a good sequence. It can be proved that there is no good b with b_{5} < 8 . In the second test case, b = [1, 2, 3, 4] is an optimal good sequence. In the third test case, b = [2] is an optimal good sequence. '...

Tutorials

Codeforces Round 899 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
225144878 kavyabanka A Sept. 25, 2023, 4:10 p.m. OK C# 10 TESTS 8 46 614400
225183603 Morty_Coder A Sept. 25, 2023, 9:21 p.m. OK C# 10 TESTS 8 46 819200
225201708 mban259 A Sept. 26, 2023, 3:21 a.m. OK C# 10 TESTS 8 155 2150400
225185120 bluemegane A Sept. 25, 2023, 9:47 p.m. OK C# 8 TESTS 8 140 819200
225206044 code_123123 A Sept. 26, 2023, 4:32 a.m. OK Clang++17 Diagnostics TESTS 8 61 0
225158436 harshbardhan1326348 A Sept. 25, 2023, 5:12 p.m. OK Clang++17 Diagnostics TESTS 8 62 0
225178604 harshsingh7246 A Sept. 25, 2023, 8:08 p.m. OK Clang++17 Diagnostics TESTS 8 62 1024000
225195752 saksham122shrivastava A Sept. 26, 2023, 1:46 a.m. OK Clang++17 Diagnostics TESTS 8 62 3174400
225196300 saksham122shrivastava A Sept. 26, 2023, 1:56 a.m. OK Clang++17 Diagnostics TESTS 8 62 10547200
225170638 raviranjan15aug2002 A Sept. 25, 2023, 6:44 p.m. OK Clang++17 Diagnostics TESTS 8 77 0
225159312 kadamadityaram2003 A Sept. 25, 2023, 5:17 p.m. OK Clang++17 Diagnostics TESTS 8 77 0
225212266 Cesair A Sept. 26, 2023, 5:57 a.m. OK Clang++17 Diagnostics TESTS 8 77 3174400
225158274 KingBob A Sept. 25, 2023, 5:11 p.m. OK Clang++20 Diagnostics TESTS 8 61 16588800
225177413 NenadDapic A Sept. 25, 2023, 7:53 p.m. OK FPC TESTS 8 15 0
225164441 SlimReaper15 A Sept. 25, 2023, 5:53 p.m. OK GNU C11 TESTS 8 15 0
225144363 vishnu_63 A Sept. 25, 2023, 4:09 p.m. OK GNU C11 TESTS 8 15 0
225147610 2100090088csit A Sept. 25, 2023, 4:17 p.m. OK GNU C11 TESTS 8 15 0
225147720 pranavi77 A Sept. 25, 2023, 4:18 p.m. OK GNU C11 TESTS 8 15 0
225157458 PRINCE_BRUR A Sept. 25, 2023, 5:07 p.m. OK GNU C11 TESTS 8 15 0
225174870 Rishi_kaneria A Sept. 25, 2023, 7:26 p.m. OK GNU C11 TESTS 8 15 0
225190138 Mahmoudtamer A Sept. 25, 2023, 11:46 p.m. OK GNU C11 TESTS 8 15 0
225195912 Winnie258 A Sept. 26, 2023, 1:49 a.m. OK GNU C11 TESTS 8 15 0
225205011 Dipu66 A Sept. 26, 2023, 4:14 a.m. OK GNU C11 TESTS 8 15 0
225185125 Tresure A Sept. 25, 2023, 9:47 p.m. OK GNU C11 TESTS 8 31 0
225200486 Shelter587 A Sept. 26, 2023, 3:04 a.m. OK GNU C++14 TESTS 8 15 0
225206349 kuguadawang A Sept. 26, 2023, 4:37 a.m. OK GNU C++14 TESTS 8 15 0
225208185 amit_2131 A Sept. 26, 2023, 5:05 a.m. OK GNU C++14 TESTS 8 15 0
225208922 Rupnarayan A Sept. 26, 2023, 5:14 a.m. OK GNU C++14 TESTS 8 15 0
225209157 pratik___9998 A Sept. 26, 2023, 5:17 a.m. OK GNU C++14 TESTS 8 15 0
225209397 2983654945 A Sept. 26, 2023, 5:20 a.m. OK GNU C++14 TESTS 8 15 0
225209757 santanhuahewu A Sept. 26, 2023, 5:25 a.m. OK GNU C++14 TESTS 8 15 0
225210544 HGENDAS A Sept. 26, 2023, 5:36 a.m. OK GNU C++14 TESTS 8 15 0
225210951 lrx___ A Sept. 26, 2023, 5:41 a.m. OK GNU C++14 TESTS 8 15 0
225212195 LP_Young. A Sept. 26, 2023, 5:56 a.m. OK GNU C++14 TESTS 8 15 0
225191250 Linzhixuan A Sept. 26, 2023, 12:15 a.m. OK GNU C++17 TESTS 8 0 0
225162690 sohag_chandra A Sept. 25, 2023, 5:40 p.m. OK GNU C++17 TESTS 8 0 0
225212255 asda1 A Sept. 26, 2023, 5:57 a.m. OK GNU C++17 TESTS 8 15 0
225212169 khem_404 A Sept. 26, 2023, 5:56 a.m. OK GNU C++17 TESTS 8 15 0
225212101 ayush_keshari A Sept. 26, 2023, 5:55 a.m. OK GNU C++17 TESTS 8 15 0
225212050 Dominater069 A Sept. 26, 2023, 5:55 a.m. OK GNU C++17 TESTS 8 15 0
225211872 Emon0002 A Sept. 26, 2023, 5:52 a.m. OK GNU C++17 TESTS 8 15 0
225211505 tanvirmahfuz22 A Sept. 26, 2023, 5:48 a.m. OK GNU C++17 TESTS 8 15 0
225211328 houssainebd A Sept. 26, 2023, 5:45 a.m. OK GNU C++17 TESTS 8 15 0
225211125 ajme A Sept. 26, 2023, 5:43 a.m. OK GNU C++17 TESTS 8 15 0
225188921 jdurie A Sept. 25, 2023, 11:11 p.m. OK GNU C++17 (64) TESTS 8 0 0
225211235 Sy_03 A Sept. 26, 2023, 5:44 a.m. OK GNU C++17 (64) TESTS 8 0 0
225210403 fs20091003 A Sept. 26, 2023, 5:34 a.m. OK GNU C++17 (64) TESTS 8 0 0
225209243 nect0ry A Sept. 26, 2023, 5:19 a.m. OK GNU C++17 (64) TESTS 8 0 0
225208865 humroush A Sept. 26, 2023, 5:14 a.m. OK GNU C++17 (64) TESTS 8 0 0
225207268 ipsumm A Sept. 26, 2023, 4:50 a.m. OK GNU C++17 (64) TESTS 8 0 0
225203754 SakiBee A Sept. 26, 2023, 3:53 a.m. OK GNU C++17 (64) TESTS 8 0 0
225194877 Njaso A Sept. 26, 2023, 1:29 a.m. OK GNU C++17 (64) TESTS 8 0 0
225191387 stan23456 A Sept. 26, 2023, 12:18 a.m. OK GNU C++17 (64) TESTS 8 0 0
225178729 maharin_21 A Sept. 25, 2023, 8:09 p.m. OK GNU C++17 (64) TESTS 8 0 0
225209953 zz-zz A Sept. 26, 2023, 5:28 a.m. OK GNU C++20 (64) TESTS 8 0 0
225210179 i_emerge16 A Sept. 26, 2023, 5:31 a.m. OK GNU C++20 (64) TESTS 8 0 0
225210268 muhammad_sayem A Sept. 26, 2023, 5:32 a.m. OK GNU C++20 (64) TESTS 8 0 0
225210302 4mkbs A Sept. 26, 2023, 5:32 a.m. OK GNU C++20 (64) TESTS 8 0 0
225210628 aman76520 A Sept. 26, 2023, 5:37 a.m. OK GNU C++20 (64) TESTS 8 0 0
225210695 KasodaniKyouko A Sept. 26, 2023, 5:38 a.m. OK GNU C++20 (64) TESTS 8 0 0
225211075 akashsingh7649 A Sept. 26, 2023, 5:42 a.m. OK GNU C++20 (64) TESTS 8 0 0
225212114 miasoroar A Sept. 26, 2023, 5:55 a.m. OK GNU C++20 (64) TESTS 8 0 0
225212260 anikethend1234 A Sept. 26, 2023, 5:57 a.m. OK GNU C++20 (64) TESTS 8 0 0
225212548 Syed_Saim A Sept. 26, 2023, 6:01 a.m. OK GNU C++20 (64) TESTS 8 0 0
225186584 theSSS A Sept. 25, 2023, 10:14 p.m. OK Java 11 TESTS 8 171 0
225174026 MaroMaxor A Sept. 25, 2023, 7:17 p.m. OK Java 11 TESTS 8 171 0
225158780 princeayush04 A Sept. 25, 2023, 5:14 p.m. OK Java 11 TESTS 8 171 0
225173459 TCchen A Sept. 25, 2023, 7:12 p.m. OK Java 11 TESTS 8 187 0
225162435 vijender_8601 A Sept. 25, 2023, 5:39 p.m. OK Java 11 TESTS 8 187 0
225206200 champions815 A Sept. 26, 2023, 4:34 a.m. OK Java 11 TESTS 8 202 0
225206239 aman_deep21 A Sept. 26, 2023, 4:35 a.m. OK Java 11 TESTS 8 202 0
225195822 ankitraj0551 A Sept. 26, 2023, 1:47 a.m. OK Java 11 TESTS 8 202 0
225161918 GnDlf99 A Sept. 25, 2023, 5:35 p.m. OK Java 11 TESTS 8 202 0
225197396 21241A05P9 A Sept. 26, 2023, 2:16 a.m. OK Java 11 TESTS 8 218 0
225193646 v7fgg A Sept. 26, 2023, 1:06 a.m. OK Java 17 TESTS 8 171 409600
225171965 mena-rizkalla A Sept. 25, 2023, 6:58 p.m. OK Java 17 TESTS 8 186 307200
225163439 gauravkumar15021999 A Sept. 25, 2023, 5:46 p.m. OK Java 17 TESTS 8 187 512000
225206073 weird_penguin A Sept. 26, 2023, 4:32 a.m. OK Java 17 TESTS 8 202 0
225147675 CMRIT25_21r01a05b6 A Sept. 25, 2023, 4:18 p.m. OK Java 17 TESTS 8 202 614400
225144106 ankitsinghhada1111 A Sept. 25, 2023, 4:08 p.m. OK Java 17 TESTS 8 202 819200
225162149 efti23 A Sept. 25, 2023, 5:36 p.m. OK Java 17 TESTS 8 217 716800
225160929 daksh_02 A Sept. 25, 2023, 5:27 p.m. OK Java 17 TESTS 8 218 102400
225145025 madhanmuthu A Sept. 25, 2023, 4:10 p.m. OK Java 17 TESTS 8 218 409600
225158943 raghad18 A Sept. 25, 2023, 5:15 p.m. OK Java 17 TESTS 8 218 512000
225193612 v7fgg A Sept. 26, 2023, 1:06 a.m. OK Java 21 TESTS 8 186 0
225172619 sai_kishan A Sept. 25, 2023, 7:04 p.m. OK Java 21 TESTS 8 249 0
225193610 goalboy A Sept. 26, 2023, 1:06 a.m. OK Java 21 TESTS 8 264 0
225144380 shivaram2444 A Sept. 25, 2023, 4:09 p.m. OK Java 21 TESTS 8 264 0
225186862 IOFYA A Sept. 25, 2023, 10:19 p.m. OK Java 8 TESTS 8 93 0
225161671 laksj113 A Sept. 25, 2023, 5:33 p.m. OK Java 8 TESTS 8 93 0
225159131 Udayf A Sept. 25, 2023, 5:16 p.m. OK Java 8 TESTS 8 93 0
225169456 Sumitsingh7 A Sept. 25, 2023, 6:33 p.m. OK Java 8 TESTS 8 109 5734400
225171741 akashagrawal0358 A Sept. 25, 2023, 6:55 p.m. OK Java 8 TESTS 8 124 0
225161815 YashNahata A Sept. 25, 2023, 5:34 p.m. OK Java 8 TESTS 8 124 0
225175284 tutjae A Sept. 25, 2023, 7:30 p.m. OK Java 8 TESTS 8 140 0
225167686 raxon A Sept. 25, 2023, 6:18 p.m. OK Java 8 TESTS 8 140 0
225166574 vallalasaivishwaja A Sept. 25, 2023, 6:09 p.m. OK Java 8 TESTS 8 140 0
225165991 Praveenuppari27 A Sept. 25, 2023, 6:05 p.m. OK Java 8 TESTS 8 140 0
225168092 Krantzy A Sept. 25, 2023, 6:21 p.m. OK Kotlin 1.7 TESTS 8 264 307200
225202186 aaasss233 A Sept. 26, 2023, 3:28 a.m. OK MS C++ 2017 TESTS 8 15 0
225172809 Alexit A Sept. 25, 2023, 7:06 p.m. OK MS C++ 2017 TESTS 8 15 0
225149786 CMRIT25_21R01A05P8 A Sept. 25, 2023, 4:23 p.m. OK MS C++ 2017 TESTS 8 15 0
225208027 svlh7777 A Sept. 26, 2023, 5:03 a.m. OK MS C++ 2017 TESTS 8 31 0
225193291 Aditi_Khandelia A Sept. 26, 2023, 12:59 a.m. OK MS C++ 2017 TESTS 8 31 0
225178115 Himmat_Patel A Sept. 25, 2023, 8:02 p.m. OK MS C++ 2017 TESTS 8 31 0
225176899 InterstellarGuo A Sept. 25, 2023, 7:48 p.m. OK MS C++ 2017 TESTS 8 31 0
225149695 sanjayrathva091 A Sept. 25, 2023, 4:23 p.m. OK Node.js TESTS 8 77 1433600
225158122 sksshivam007 A Sept. 25, 2023, 5:10 p.m. OK PyPy 2 TESTS 8 155 8396800
225178680 0xROoT A Sept. 25, 2023, 8:09 p.m. OK PyPy 3 TESTS 8 77 2048000
225202739 Chien2510 A Sept. 26, 2023, 3:37 a.m. OK PyPy 3 TESTS 8 92 1536000
225161818 goh29932 A Sept. 25, 2023, 5:34 p.m. OK PyPy 3 TESTS 8 92 1638400
225178922 0xROoT A Sept. 25, 2023, 8:12 p.m. OK PyPy 3 TESTS 8 92 2048000
225207969 abhipandey9315 A Sept. 26, 2023, 5:02 a.m. OK PyPy 3 TESTS 8 93 1536000
225175969 WalrusRamen21 A Sept. 25, 2023, 7:38 p.m. OK PyPy 3 TESTS 8 93 1536000
225169072 Wanderbrok A Sept. 25, 2023, 6:30 p.m. OK PyPy 3 TESTS 8 93 1536000
225145467 thota_chinmai A Sept. 25, 2023, 4:12 p.m. OK PyPy 3 TESTS 8 93 1536000
225144654 21b01a12b7 A Sept. 25, 2023, 4:10 p.m. OK PyPy 3 TESTS 8 93 1536000
225178734 0xROoT A Sept. 25, 2023, 8:09 p.m. OK PyPy 3 TESTS 8 93 2048000
225169031 alexpods A Sept. 25, 2023, 6:30 p.m. OK PyPy 3-64 TESTS 8 61 1536000
225210916 Baki_19 A Sept. 26, 2023, 5:40 a.m. OK PyPy 3-64 TESTS 8 61 1843200
225196265 MdAbedin A Sept. 26, 2023, 1:56 a.m. OK PyPy 3-64 TESTS 8 62 1536000
225169956 Mars_FN A Sept. 25, 2023, 6:38 p.m. OK PyPy 3-64 TESTS 8 62 1536000
225161554 gardengnome A Sept. 25, 2023, 5:32 p.m. OK PyPy 3-64 TESTS 8 62 1536000
225158178 harrylfoppa A Sept. 25, 2023, 5:11 p.m. OK PyPy 3-64 TESTS 8 62 1536000
225156743 mikeac A Sept. 25, 2023, 5:03 p.m. OK PyPy 3-64 TESTS 8 62 1536000
225205317 Quick-One A Sept. 26, 2023, 4:20 a.m. OK PyPy 3-64 TESTS 8 62 1638400
225168998 alexpods A Sept. 25, 2023, 6:29 p.m. OK PyPy 3-64 TESTS 8 62 1638400
225204992 ptripathy013 A Sept. 26, 2023, 4:14 a.m. OK PyPy 3-64 TESTS 8 62 1843200
225204623 NoLongerHuman A Sept. 26, 2023, 4:07 a.m. OK Python 3 TESTS 8 30 102400
225158739 rg_rahul A Sept. 25, 2023, 5:13 p.m. OK Python 3 TESTS 8 30 102400
225145432 keerthisrikonduru15 A Sept. 25, 2023, 4:12 p.m. OK Python 3 TESTS 8 30 102400
225144984 _Ramya A Sept. 25, 2023, 4:10 p.m. OK Python 3 TESTS 8 30 102400
225207235 ___a_s_1_2___ A Sept. 26, 2023, 4:50 a.m. OK Python 3 TESTS 8 31 102400
225199266 M.Arham_SundarSTEM. A Sept. 26, 2023, 2:45 a.m. OK Python 3 TESTS 8 31 102400
225197358 M.Mathar_SundarSTEM A Sept. 26, 2023, 2:15 a.m. OK Python 3 TESTS 8 31 102400
225197221 yagnesh2004 A Sept. 26, 2023, 2:12 a.m. OK Python 3 TESTS 8 31 102400
225197161 relax_1 A Sept. 26, 2023, 2:12 a.m. OK Python 3 TESTS 8 31 102400
225183845 Adryan_TM A Sept. 25, 2023, 9:26 p.m. OK Python 3 TESTS 8 31 102400
225168216 ihnaqi A Sept. 25, 2023, 6:23 p.m. OK Rust 2021 TESTS 8 15 102400
225157453 0npata A Sept. 25, 2023, 5:07 p.m. OK Rust 2021 TESTS 8 15 512000
225187366 wrick A Sept. 25, 2023, 10:29 p.m. OK Scala TESTS 8 436 0

remove filters

Back to search problems