Codeforces Round 835 (Div. 4)

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
1760 Codeforces Round 835 (Div. 4) FINISHED False 8700 68225062 Nov. 21, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 46433 ) B Atilla's Favorite Problem PROGRAMMING greedy implementation strings

B'In order to write a string, Atilla needs to first learn all letters that are contained in the string. Atilla needs to write a message which can be represented as a string s . He asks you what is the minimum alphabet size required so that one can write this message. The alphabet of size x ( 1 <= q x <= q 26 ) contains only the first x Latin letters. For example an alphabet of size 4 contains only the characters texttt{a} , texttt{b} , texttt{c} and texttt{d} . The first line contains a single integer t ( 1 <= q t <= q 1000 ) -- the number of test cases. The first line of each test case contains a single integer n ( 1 <= q n <= q 100 ) -- the length of the string. The second line of each test case contains a string s of length n , consisting of lowercase Latin letters. For each test case, output a single integer -- the minimum alphabet size required to so that Atilla can write his message s . For the first test case, Atilla needs to know only the character texttt{a} , so the alphabet of size 1 which only contains texttt{a} is enough. For the second test case, Atilla needs to know the characters texttt{d} , texttt{o} , texttt{w} , texttt{n} . The smallest alphabet size that contains all of them is 23 (such alphabet can be represented as the string texttt{abcdefghijklmnopqrstuvw} ). '...

Tutorials

109348

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
182057766 BlacKxDeviL B Nov. 21, 2022, 8:37 p.m. OK C# 10 TESTS 3 46 0
182049772 WAAAAAAAAAAAAAAAAAAAAA B Nov. 21, 2022, 6:53 p.m. OK C# 10 TESTS 3 46 0
182042308 Exomode B Nov. 21, 2022, 5:44 p.m. OK C# 10 TESTS 3 62 1433600
182083324 Apaji B Nov. 22, 2022, 4:11 a.m. OK Clang++17 Diagnostics TESTS 3 46 0
182077578 fengjiahe B Nov. 22, 2022, 2:31 a.m. OK Clang++20 Diagnostics TESTS 3 46 0
182078553 KingBob B Nov. 22, 2022, 2:49 a.m. OK Clang++20 Diagnostics TESTS 3 46 0
182089273 Dark_Coder_14 B Nov. 22, 2022, 5:49 a.m. OK Clang++20 Diagnostics TESTS 3 46 0
182077297 shiningme B Nov. 22, 2022, 2:26 a.m. OK Clang++20 Diagnostics TESTS 3 62 0
182049516 2pacXslimShady B Nov. 21, 2022, 6:50 p.m. OK GNU C11 TESTS 3 15 0
182035885 Interested B Nov. 21, 2022, 5:06 p.m. OK GNU C11 TESTS 3 15 0
182076424 msr11 B Nov. 22, 2022, 2:08 a.m. OK GNU C11 TESTS 3 15 0
182081452 manga5669 B Nov. 22, 2022, 3:35 a.m. OK GNU C11 TESTS 3 15 0
182039272 Aynul B Nov. 21, 2022, 5:23 p.m. OK GNU C11 TESTS 3 15 0
182039911 Mushfiqur_ B Nov. 21, 2022, 5:27 p.m. OK GNU C11 TESTS 3 15 0
182041860 alamin20cse B Nov. 21, 2022, 5:41 p.m. OK GNU C11 TESTS 3 15 0
182042480 siddique32 B Nov. 21, 2022, 5:45 p.m. OK GNU C11 TESTS 3 15 0
182044164 iraiyan50 B Nov. 21, 2022, 5:59 p.m. OK GNU C11 TESTS 3 15 0
182045619 Lopa-10 B Nov. 21, 2022, 6:12 p.m. OK GNU C11 TESTS 3 15 0
182084822 Ravi_Savsani B Nov. 22, 2022, 4:39 a.m. OK GNU C++14 TESTS 3 0 0
182082877 yogahh B Nov. 22, 2022, 4:02 a.m. OK GNU C++14 TESTS 3 0 0
182081837 huangxinting666 B Nov. 22, 2022, 3:43 a.m. OK GNU C++14 TESTS 3 0 0
182081129 _Ahmad_ B Nov. 22, 2022, 3:30 a.m. OK GNU C++14 TESTS 3 0 0
182079317 adilet_shymer_2025 B Nov. 22, 2022, 3:05 a.m. OK GNU C++14 TESTS 3 0 0
182078750 Kevin8502 B Nov. 22, 2022, 2:53 a.m. OK GNU C++14 TESTS 3 0 0
182077886 Starry516 B Nov. 22, 2022, 2:37 a.m. OK GNU C++14 TESTS 3 0 0
182076020 Lambent_Light B Nov. 22, 2022, 1:59 a.m. OK GNU C++14 TESTS 3 0 0
182075690 liympanda B Nov. 22, 2022, 1:52 a.m. OK GNU C++14 TESTS 3 0 0
182086044 mayeenUddinHasan B Nov. 22, 2022, 4:59 a.m. OK GNU C++14 TESTS 3 0 0
182085439 LLLVTA B Nov. 22, 2022, 4:49 a.m. OK GNU C++17 TESTS 3 0 0
182085639 20.21.14.07 B Nov. 22, 2022, 4:53 a.m. OK GNU C++17 TESTS 3 0 0
182085674 sanskarn17 B Nov. 22, 2022, 4:53 a.m. OK GNU C++17 TESTS 3 0 0
182086277 trustyourcode B Nov. 22, 2022, 5:03 a.m. OK GNU C++17 TESTS 3 0 0
182086537 shudhanshu0011 B Nov. 22, 2022, 5:08 a.m. OK GNU C++17 TESTS 3 0 0
182088342 _V3V_ B Nov. 22, 2022, 5:36 a.m. OK GNU C++17 TESTS 3 0 0
182088373 pranjalcoolagarwal B Nov. 22, 2022, 5:36 a.m. OK GNU C++17 TESTS 3 0 0
182088561 panyan7 B Nov. 22, 2022, 5:39 a.m. OK GNU C++17 TESTS 3 0 0
182089581 kumar.saurabh2508 B Nov. 22, 2022, 5:53 a.m. OK GNU C++17 TESTS 3 0 0
182084765 zhu_hk B Nov. 22, 2022, 4:37 a.m. OK GNU C++17 TESTS 3 0 0
182076095 blueness B Nov. 22, 2022, 2:01 a.m. OK GNU C++17 (64) TESTS 3 0 0
182087394 manant B Nov. 22, 2022, 5:22 a.m. OK GNU C++17 (64) TESTS 3 0 0
182078923 Evang B Nov. 22, 2022, 2:57 a.m. OK GNU C++17 (64) TESTS 3 0 0
182078191 Calanosay B Nov. 22, 2022, 2:42 a.m. OK GNU C++17 (64) TESTS 3 0 0
182074120 CY011 B Nov. 22, 2022, 1:35 a.m. OK GNU C++17 (64) TESTS 3 0 0
182071614 PCC B Nov. 22, 2022, 1:30 a.m. OK GNU C++17 (64) TESTS 3 0 0
182069981 Sansyen B Nov. 22, 2022, 1:17 a.m. OK GNU C++17 (64) TESTS 3 0 0
182068463 mixed_juice717 B Nov. 22, 2022, 1:02 a.m. OK GNU C++17 (64) TESTS 3 0 0
182067933 Awesome3.14 B Nov. 22, 2022, 12:49 a.m. OK GNU C++17 (64) TESTS 3 0 0
182062293 osamaBelal B Nov. 21, 2022, 10:05 p.m. OK GNU C++17 (64) TESTS 3 0 0
182083813 hellowpattie B Nov. 22, 2022, 4:20 a.m. OK GNU C++20 (64) TESTS 3 0 0
182084073 Mortus B Nov. 22, 2022, 4:25 a.m. OK GNU C++20 (64) TESTS 3 0 0
182084389 error_compiling B Nov. 22, 2022, 4:31 a.m. OK GNU C++20 (64) TESTS 3 0 0
182085939 HuParry B Nov. 22, 2022, 4:57 a.m. OK GNU C++20 (64) TESTS 3 0 0
182086763 Shahzod1207 B Nov. 22, 2022, 5:11 a.m. OK GNU C++20 (64) TESTS 3 0 0
182087707 madhav.gupta456 B Nov. 22, 2022, 5:26 a.m. OK GNU C++20 (64) TESTS 3 0 0
182087811 vedant_1 B Nov. 22, 2022, 5:28 a.m. OK GNU C++20 (64) TESTS 3 0 0
182088744 Sadik B Nov. 22, 2022, 5:41 a.m. OK GNU C++20 (64) TESTS 3 0 0
182089752 crewkrow B Nov. 22, 2022, 5:56 a.m. OK GNU C++20 (64) TESTS 3 0 0
182089971 falcon3000 B Nov. 22, 2022, 5:59 a.m. OK GNU C++20 (64) TESTS 3 0 0
182066823 pepradere B Nov. 22, 2022, 12:18 a.m. OK Go TESTS 3 30 102400
182060721 Yousef_Badr B Nov. 21, 2022, 9:32 p.m. OK Java 11 TESTS 3 140 0
182081783 rajneesh.osho B Nov. 22, 2022, 3:42 a.m. OK Java 11 TESTS 3 155 0
182089764 Deepak4466 B Nov. 22, 2022, 5:56 a.m. OK Java 11 TESTS 3 170 0
182043232 ashutosh_patel B Nov. 21, 2022, 5:52 p.m. OK Java 11 TESTS 3 171 0
182064047 pakkapapad B Nov. 21, 2022, 10:51 p.m. OK Java 11 TESTS 3 171 0
182063892 pranp_24 B Nov. 21, 2022, 10:47 p.m. OK Java 11 TESTS 3 171 0
182053973 df08.22_ B Nov. 21, 2022, 7:42 p.m. OK Java 11 TESTS 3 171 0
182050623 feief B Nov. 21, 2022, 7:03 p.m. OK Java 11 TESTS 3 171 0
182068570 deepoX B Nov. 22, 2022, 1:04 a.m. OK Java 11 TESTS 3 187 0
182082854 aiyush007 B Nov. 22, 2022, 4:02 a.m. OK Java 11 TESTS 3 202 0
182060085 kevy15 B Nov. 21, 2022, 9:18 p.m. OK Java 17 TESTS 3 139 307200
182042756 ronak_siddhpura_07 B Nov. 21, 2022, 5:47 p.m. OK Java 17 TESTS 3 186 409600
182086469 surelywell119 B Nov. 22, 2022, 5:06 a.m. OK Java 17 TESTS 3 202 0
182046952 bazzje B Nov. 21, 2022, 6:25 p.m. OK Java 17 TESTS 3 202 0
182058147 thjnhdthxdnhmt B Nov. 21, 2022, 8:43 p.m. OK Java 17 TESTS 3 202 819200
182059094 Z.L B Nov. 21, 2022, 9 p.m. OK Java 17 TESTS 3 202 921600
182040067 Eslam_Ahmed B Nov. 21, 2022, 5:28 p.m. OK Java 17 TESTS 3 217 716800
182034898 virinchiBalusani B Nov. 21, 2022, 5:02 p.m. OK Java 17 TESTS 3 218 921600
182039402 rajashish914 B Nov. 21, 2022, 5:24 p.m. OK Java 17 TESTS 3 233 0
182039693 lekha2608 B Nov. 21, 2022, 5:25 p.m. OK Java 17 TESTS 3 234 512000
182038366 Koka B Nov. 21, 2022, 5:18 p.m. OK Java 8 TESTS 3 62 0
182088986 mananparmar B Nov. 22, 2022, 5:45 a.m. OK Java 8 TESTS 3 78 0
182047045 ahmedtawfik B Nov. 21, 2022, 6:25 p.m. OK Java 8 TESTS 3 93 0
182045754 Sussykin B Nov. 21, 2022, 6:13 p.m. OK Java 8 TESTS 3 93 0
182039426 shreyshah578 B Nov. 21, 2022, 5:24 p.m. OK Java 8 TESTS 3 93 0
182062789 mohamedhassan_c B Nov. 21, 2022, 10:18 p.m. OK Java 8 TESTS 3 108 0
182036846 saisanat B Nov. 21, 2022, 5:10 p.m. OK Java 8 TESTS 3 108 0
182059098 toufique_husein B Nov. 21, 2022, 9 p.m. OK Java 8 TESTS 3 109 0
182085397 Jakhongir55 B Nov. 22, 2022, 4:49 a.m. OK Java 8 TESTS 3 124 0
182076267 Mohamedjassim B Nov. 22, 2022, 2:04 a.m. OK Java 8 TESTS 3 139 0
182046302 HavlongRG B Nov. 21, 2022, 6:18 p.m. OK Kotlin 1.7 TESTS 3 265 1228800
182045646 HavlongRG B Nov. 21, 2022, 6:12 p.m. OK Kotlin 1.7 TESTS 3 265 1331200
182083721 debk007 B Nov. 22, 2022, 4:18 a.m. OK Kotlin 1.7 TESTS 3 280 1945600
182083625 metarakib125 B Nov. 22, 2022, 4:16 a.m. OK MS C++ 2017 TESTS 3 0 0
182040570 timusmanovs B Nov. 21, 2022, 5:31 p.m. OK MS C++ 2017 TESTS 3 0 0
182082222 Maaidul B Nov. 22, 2022, 3:50 a.m. OK MS C++ 2017 TESTS 3 15 0
182051893 ahmed8626 B Nov. 21, 2022, 7:17 p.m. OK MS C++ 2017 TESTS 3 15 0
182047440 alex0511 B Nov. 21, 2022, 6:29 p.m. OK MS C++ 2017 TESTS 3 15 0
182082483 ShiYiiiii B Nov. 22, 2022, 3:55 a.m. OK MS C++ 2017 TESTS 3 30 0
182052466 reversir B Nov. 21, 2022, 7:24 p.m. OK MS C++ 2017 TESTS 3 31 0
182045452 Samekekz B Nov. 21, 2022, 6:10 p.m. OK MS C++ 2017 TESTS 3 31 0
182065518 alieldeba375 B Nov. 21, 2022, 11:34 p.m. OK Node.js TESTS 3 62 1331200
182037399 yogendra311204 B Nov. 21, 2022, 5:13 p.m. OK Node.js TESTS 3 62 1638400
182056376 rsFalse B Nov. 21, 2022, 8:15 p.m. OK Perl TESTS 3 15 0
182055769 rsFalse B Nov. 21, 2022, 8:07 p.m. OK Perl TESTS 3 78 0
182046858 EnDeRBeaT B Nov. 21, 2022, 6:24 p.m. OK PyPy 3 TESTS 3 93 2048000
182046934 EnDeRBeaT B Nov. 21, 2022, 6:24 p.m. OK PyPy 3 TESTS 3 108 2048000
182086237 stephenx7 B Nov. 22, 2022, 5:03 a.m. OK PyPy 3 TESTS 3 155 3993600
182059218 timofey256 B Nov. 21, 2022, 9:02 p.m. OK PyPy 3 TESTS 3 155 4505600
182065117 mehrajboss B Nov. 21, 2022, 11:21 p.m. OK PyPy 3 TESTS 3 171 4403200
182067921 akimuuwu B Nov. 22, 2022, 12:49 a.m. OK PyPy 3 TESTS 3 171 4608000
182085295 sugarstar B Nov. 22, 2022, 4:47 a.m. OK PyPy 3 TESTS 3 171 5734400
182048876 haydenhyoung B Nov. 21, 2022, 6:43 p.m. OK PyPy 3-64 TESTS 3 61 2150400
182064406 biglunchdude B Nov. 21, 2022, 11:02 p.m. OK PyPy 3-64 TESTS 3 62 3072000
182034857 hkwu6013 B Nov. 21, 2022, 5:02 p.m. OK PyPy 3-64 TESTS 3 62 3276800
182040738 crapcode B Nov. 21, 2022, 5:32 p.m. OK PyPy 3-64 TESTS 3 77 2048000
182048951 nealzane B Nov. 21, 2022, 6:44 p.m. OK PyPy 3-64 TESTS 3 77 2252800
182045891 abc_noob B Nov. 21, 2022, 6:14 p.m. OK PyPy 3-64 TESTS 3 77 2560000
182046250 SangeetaSingh B Nov. 21, 2022, 6:18 p.m. OK PyPy 3-64 TESTS 3 77 2764800
182061878 Juanm1 B Nov. 21, 2022, 9:57 p.m. OK PyPy 3-64 TESTS 3 108 3686400
182077971 saadberrissoul B Nov. 22, 2022, 2:38 a.m. OK PyPy 3-64 TESTS 3 108 4505600
182052367 vn_priovag1507 B Nov. 21, 2022, 7:22 p.m. OK PyPy 3-64 TESTS 3 108 5529600
182077465 Eli. B Nov. 22, 2022, 2:29 a.m. OK Python 3 TESTS 3 30 0
182056827 Gorius B Nov. 21, 2022, 8:22 p.m. OK Python 3 TESTS 3 30 0
182063337 EinPy B Nov. 21, 2022, 10:31 p.m. OK Python 3 TESTS 3 30 409600
182086863 surya_varma_03 B Nov. 22, 2022, 5:13 a.m. OK Python 3 TESTS 3 31 0
182041858 XxDeathRacerxX B Nov. 21, 2022, 5:41 p.m. OK Python 3 TESTS 3 31 0
182039568 mysterio304 B Nov. 21, 2022, 5:25 p.m. OK Python 3 TESTS 3 31 0
182087954 Teja_1412 B Nov. 22, 2022, 5:30 a.m. OK Python 3 TESTS 3 46 0
182084456 williamcz B Nov. 22, 2022, 4:32 a.m. OK Python 3 TESTS 3 46 0
182083233 dipper777 B Nov. 22, 2022, 4:09 a.m. OK Python 3 TESTS 3 46 0
182081676 krishnavardhan_g B Nov. 22, 2022, 3:40 a.m. OK Python 3 TESTS 3 46 0
182046850 nikgaevoy B Nov. 21, 2022, 6:24 p.m. OK Rust 2021 TESTS 3 30 0

remove filters

Back to search problems