Codeforces Round 854 by cybercats (Div. 1 + 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
1799 Codeforces Round 854 by cybercats (Div. 1 + Div. 2) FINISHED False 10800 54314699 Feb. 27, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 5924 ) C Double Lexicographically Minimum PROGRAMMING constructive algorithms greedy implementation strings

B'You are given a string s . You can reorder the characters to form a string t . Define t_{ mathrm{max}} to be the lexicographical maximum of t and t in reverse order. Given s determine the lexicographically minimum value of t_{ mathrm{max}} over all reorderings t of s . A string a is lexicographically smaller than a string b if and only if one of the following holds: The first line contains a single integer t ( 1 <= q t <= q 10^5 ) -- the number of test cases. Descriptions of test cases follow. The first and only line of each test case contains a string s ( 1 <= q |s| <= q 10^5 ). s consists of only lowercase English letters. It is guaranteed that the sum of |s| over all test cases does not exceed 10^5 . For each test case print the lexicographically minimum value of t_{ mathrm{max}} over all reorderings t of s . For the first test case, there is only one reordering of s , namely "a". For the second test case, there are three reorderings of s . The lexicographical minimum of t_{ mathrm{max}} over all cases is "aba". '...

Tutorials

Codeforces Round #854 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
195187609 AliAthary C Feb. 27, 2023, 5:26 p.m. OK C# 10 TESTS 30 358 3686400
195194517 AnnaElli C Feb. 27, 2023, 6:16 p.m. OK C# 10 TESTS 30 545 7884800
195196114 edwardnvv57k C Feb. 27, 2023, 6:28 p.m. OK GNU C11 TESTS 30 31 204800
195229686 edwardnvv57k C Feb. 28, 2023, 4:59 a.m. OK GNU C11 TESTS 30 46 204800
195172474 HeapUser.He C Feb. 27, 2023, 4:19 p.m. OK GNU C11 TESTS 30 436 1024000
195171182 antguz C Feb. 27, 2023, 4:14 p.m. OK GNU C++14 TESTS 30 15 204800
195223767 y61329697 C Feb. 28, 2023, 3:04 a.m. OK GNU C++14 TESTS 30 15 307200
195222031 yimuhua C Feb. 28, 2023, 2:23 a.m. OK GNU C++14 TESTS 30 15 307200
195228070 dianhsu_scarlet C Feb. 28, 2023, 4:29 a.m. OK GNU C++14 TESTS 30 15 307200
195224065 nalemy C Feb. 28, 2023, 3:11 a.m. OK GNU C++14 TESTS 30 15 307200
195232644 Linver C Feb. 28, 2023, 5:50 a.m. OK GNU C++14 TESTS 30 15 307200
195232855 Linver C Feb. 28, 2023, 5:54 a.m. OK GNU C++14 TESTS 30 15 409600
195186107 Inori C Feb. 27, 2023, 5:19 p.m. OK GNU C++14 TESTS 30 15 409600
195178710 leaps C Feb. 27, 2023, 4:45 p.m. OK GNU C++14 TESTS 30 15 2252800
195222039 bkifhr10 C Feb. 28, 2023, 2:23 a.m. OK GNU C++14 TESTS 30 30 307200
195224582 newestsolego C Feb. 28, 2023, 3:22 a.m. OK GNU C++17 TESTS 30 15 204800
195186146 XDEv11 C Feb. 27, 2023, 5:20 p.m. OK GNU C++17 TESTS 30 15 307200
195180826 vipin C Feb. 27, 2023, 4:55 p.m. OK GNU C++17 TESTS 30 15 307200
195172688 ventusliberum C Feb. 27, 2023, 4:20 p.m. OK GNU C++17 TESTS 30 15 307200
195192955 bartmath C Feb. 27, 2023, 6:06 p.m. OK GNU C++17 TESTS 30 15 307200
195224391 hardik_836 C Feb. 28, 2023, 3:18 a.m. OK GNU C++17 TESTS 30 15 307200
195231749 TaylorFly C Feb. 28, 2023, 5:34 a.m. OK GNU C++17 TESTS 30 15 307200
195206990 Dakovalev1 C Feb. 27, 2023, 8:32 p.m. OK GNU C++17 TESTS 30 15 409600
195187025 Kahou C Feb. 27, 2023, 5:23 p.m. OK GNU C++17 TESTS 30 15 409600
195180789 mshshaikat C Feb. 27, 2023, 4:55 p.m. OK GNU C++17 TESTS 30 15 409600
195220395 lqx2005 C Feb. 28, 2023, 1:36 a.m. OK GNU C++17 (64) TESTS 30 15 102400
195174873 linxd C Feb. 27, 2023, 4:29 p.m. OK GNU C++17 (64) TESTS 30 15 409600
195219833 cheng1202 C Feb. 28, 2023, 1:19 a.m. OK GNU C++17 (64) TESTS 30 15 409600
195187018 wumeibanfa C Feb. 27, 2023, 5:23 p.m. OK GNU C++17 (64) TESTS 30 15 409600
195183739 Saimun_Islam C Feb. 27, 2023, 5:08 p.m. OK GNU C++17 (64) TESTS 30 15 512000
195187137 wakaranai C Feb. 27, 2023, 5:24 p.m. OK GNU C++17 (64) TESTS 30 15 819200
195179503 YocyCraft C Feb. 27, 2023, 4:49 p.m. OK GNU C++17 (64) TESTS 30 15 1126400
195182514 lukameladze2 C Feb. 27, 2023, 5:03 p.m. OK GNU C++17 (64) TESTS 30 15 3686400
195198370 lukameladze1 C Feb. 27, 2023, 6:49 p.m. OK GNU C++17 (64) TESTS 30 15 3686400
195224363 Buqiujun C Feb. 28, 2023, 3:17 a.m. OK GNU C++17 (64) TESTS 30 30 409600
195226505 luo233 C Feb. 28, 2023, 3:57 a.m. OK GNU C++20 (64) TESTS 30 15 307200
195226276 Null_Resot C Feb. 28, 2023, 3:52 a.m. OK GNU C++20 (64) TESTS 30 15 307200
195225737 tyler C Feb. 28, 2023, 3:41 a.m. OK GNU C++20 (64) TESTS 30 15 307200
195222682 LittleXi C Feb. 28, 2023, 2:39 a.m. OK GNU C++20 (64) TESTS 30 15 307200
195222675 _zzh C Feb. 28, 2023, 2:39 a.m. OK GNU C++20 (64) TESTS 30 15 307200
195220282 zz-zz C Feb. 28, 2023, 1:32 a.m. OK GNU C++20 (64) TESTS 30 15 307200
195212759 Renauga C Feb. 27, 2023, 10:03 p.m. OK GNU C++20 (64) TESTS 30 15 307200
195228577 luo233 C Feb. 28, 2023, 4:39 a.m. OK GNU C++20 (64) TESTS 30 15 307200
195227693 kk110011 C Feb. 28, 2023, 4:21 a.m. OK GNU C++20 (64) TESTS 30 15 307200
195227964 EthanZYF C Feb. 28, 2023, 4:27 a.m. OK GNU C++20 (64) TESTS 30 15 307200
195200438 NewbiePupil C Feb. 27, 2023, 7:11 p.m. OK Java 11 TESTS 30 171 0
195183572 ch2001 C Feb. 27, 2023, 5:07 p.m. OK Java 11 TESTS 30 202 0
195179745 __Serendipity C Feb. 27, 2023, 4:50 p.m. OK Java 11 TESTS 30 217 0
195182962 dajeff C Feb. 27, 2023, 5:05 p.m. OK Java 11 TESTS 30 218 0
195221399 kamranm C Feb. 28, 2023, 2:06 a.m. OK Java 11 TESTS 30 264 109158400
195185720 RockStar_14 C Feb. 27, 2023, 5:18 p.m. OK Java 11 TESTS 30 265 0
195221276 kamranm C Feb. 28, 2023, 2:02 a.m. OK Java 11 TESTS 30 280 109158400
195182130 Yuki_B C Feb. 27, 2023, 5:01 p.m. OK Java 11 TESTS 30 296 512000
195200003 jaikhatri7987 C Feb. 27, 2023, 7:06 p.m. OK Java 11 TESTS 30 514 0
195199151 koteswaruduakula C Feb. 27, 2023, 6:57 p.m. OK Java 11 TESTS 30 857 0
195199022 warks C Feb. 27, 2023, 6:56 p.m. OK Java 17 TESTS 30 217 307200
195182975 john9999911 C Feb. 27, 2023, 5:05 p.m. OK Java 17 TESTS 30 233 716800
195192590 this.is.shivamsingh C Feb. 27, 2023, 6:04 p.m. OK Java 17 TESTS 30 248 1433600
195194034 Socrates1232 C Feb. 27, 2023, 6:13 p.m. OK Java 17 TESTS 30 451 409600
195199057 megaspazz C Feb. 27, 2023, 6:56 p.m. OK Java 8 TESTS 30 124 0
195181201 Java_Programmer C Feb. 27, 2023, 4:56 p.m. OK Java 8 TESTS 30 124 0
195232681 rahul_81 C Feb. 28, 2023, 5:51 a.m. OK Java 8 TESTS 30 140 0
195190083 megaspazz C Feb. 27, 2023, 5:34 p.m. OK Java 8 TESTS 30 155 0
195171090 Virendra115 C Feb. 27, 2023, 4:14 p.m. OK Java 8 TESTS 30 155 0
195230291 n0obie C Feb. 28, 2023, 5:09 a.m. OK Java 8 TESTS 30 202 0
195180242 _Coder_Ayush C Feb. 27, 2023, 4:52 p.m. OK Java 8 TESTS 30 810 0
195171073 FastFreeTask C Feb. 27, 2023, 4:14 p.m. OK Kotlin 1.6 TESTS 30 233 512000
195182504 aadrito C Feb. 27, 2023, 5:02 p.m. OK MS C++ 2017 TESTS 30 62 307200
195174909 BusIgor C Feb. 27, 2023, 4:29 p.m. OK MS C++ 2017 TESTS 30 358 716800
195171348 tranquility C Feb. 27, 2023, 4:15 p.m. OK MS C++ 2017 TESTS 30 358 24371200
195192648 bvf C Feb. 27, 2023, 6:05 p.m. OK PyPy 3 TESTS 30 311 9625600
195233175 broshen C Feb. 28, 2023, 5:59 a.m. OK PyPy 3 TESTS 30 1184 9625600
195219394 bpdolson C Feb. 28, 2023, 1:03 a.m. OK PyPy 3 TESTS 30 1216 10444800
195233090 broshen C Feb. 28, 2023, 5:57 a.m. OK PyPy 3 TESTS 30 1232 9420800
195233204 broshen C Feb. 28, 2023, 5:59 a.m. OK PyPy 3 TESTS 30 1247 9523200
195205483 SophieHatter C Feb. 27, 2023, 8:12 p.m. OK PyPy 3-64 TESTS 30 139 13004800
195179787 lemiao12 C Feb. 27, 2023, 4:50 p.m. OK PyPy 3-64 TESTS 30 155 12697600
195218078 toam C Feb. 28, 2023, 12:23 a.m. OK PyPy 3-64 TESTS 30 170 9932800
195196191 sushmanth.dampur8780 C Feb. 27, 2023, 6:29 p.m. OK PyPy 3-64 TESTS 30 202 10342400
195184383 petamingks C Feb. 27, 2023, 5:11 p.m. OK PyPy 3-64 TESTS 30 202 10752000
195208122 1_2_3_4_5_9 C Feb. 27, 2023, 8:48 p.m. OK PyPy 3-64 TESTS 30 202 18739200
195181981 blue_ice_yj C Feb. 27, 2023, 5 p.m. OK PyPy 3-64 TESTS 30 218 9830400
195206506 RobinFromTheHood C Feb. 27, 2023, 8:26 p.m. OK PyPy 3-64 TESTS 30 233 10137600
195171487 rien C Feb. 27, 2023, 4:15 p.m. OK PyPy 3-64 TESTS 30 233 13721600
195195166 Tistou C Feb. 27, 2023, 6:21 p.m. OK PyPy 3-64 TESTS 30 264 10137600
195177356 mansur_from_documentolog C Feb. 27, 2023, 4:39 p.m. OK Python 3 TESTS 30 405 1843200
195193919 Korneli C Feb. 27, 2023, 6:12 p.m. OK Python 3 TESTS 30 780 819200
195188635 Quick-One C Feb. 27, 2023, 5:30 p.m. OK Python 3 TESTS 30 795 2662400
195221896 CodeLike C Feb. 28, 2023, 2:20 a.m. OK Python 3 TESTS 30 1169 1126400
195206381 pulkitkumarmathur C Feb. 27, 2023, 8:24 p.m. OK Ruby 3 TESTS 30 343 8908800
195185995 liut C Feb. 27, 2023, 5:19 p.m. OK Rust 2021 TESTS 30 31 409600

remove filters

Back to search problems