Codeforces Round 734 (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
1551 Codeforces Round 734 (Div. 3) FINISHED False 7200 110129063 July 23, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 29861 ) B1 Wonderful Coloring - 1 PROGRAMMING strings

B'This is a simplified version of the problem B2. Perhaps you should read the problem B2 before you start solving B1. Paul and Mary have a favorite string s which consists of lowercase letters of the Latin alphabet. They want to paint it using pieces of chalk of two colors: red and green. Let 's call a coloring of a string wonderful if the following conditions are met: E. xe2 x80 x89g. consider a string s equal to "kzaaa". One of the wonderful colorings of the string is shown in the figure. Paul and Mary want to learn by themselves how to find a wonderful coloring of the string. But they are very young, so they need a hint. Help them find k -- the number of red (or green, these numbers are equal) letters in a wonderful coloring. The first line contains one integer t ( 1 <= t <= 1000 ) -- the number of test cases. Then t test cases follow. Each test case consists of one non-empty string s which consists of lowercase letters of the Latin alphabet. The number of characters in the string doesn 't exceed 50 . For each test case, output a separate line containing one non-negative integer k -- the number of letters which will be painted in red in a wonderful coloring. The first test case contains the string from the statement. One of the wonderful colorings is shown in the figure. There 's no wonderful coloring containing 3 or more red letters because the total number of painted symbols will exceed the string 's length. The string from the second test case can be painted as follows. Let 's paint the first occurrence of each of the letters "c", "o", "e" in red and the second ones in green. Let 's paint the letters "d", "f" in red and "r", "s" in green. So every letter will be painted in red or green, hence the answer better than 5 doesn 't exist. The third test case contains the string of distinct letters, so you can paint any set of characters in red, as long as the size of this set doesn 't exceed half of the size'...

Tutorials

Editorial for Codeforces Round #734 (Div.3)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
123557555 ssvb B1 July 24, 2021, 1:05 a.m. OK D TESTS 3 15 6656000
123537588 Arif.30 B1 July 23, 2021, 5:53 p.m. OK GNU C11 TESTS 3 15 3686400
123525016 RedJohn2 B1 July 23, 2021, 4:30 p.m. OK GNU C11 TESTS 3 15 4608000
123524696 pokemonvn1 B1 July 23, 2021, 4:29 p.m. OK GNU C11 TESTS 3 31 3686400
123534620 L_ryusaki_912 B1 July 23, 2021, 5:18 p.m. OK GNU C++11 TESTS 3 0 3891200
123563440 childofcuriosity B1 July 24, 2021, 3:04 a.m. OK GNU C++11 TESTS 3 0 3891200
123560493 luogu_bot3 B1 July 24, 2021, 2:12 a.m. OK GNU C++11 TESTS 3 0 3891200
123555343 Wuyanru B1 July 23, 2021, 11:44 p.m. OK GNU C++11 TESTS 3 15 3686400
123572748 cyrxdzj B1 July 24, 2021, 5:40 a.m. OK GNU C++11 TESTS 5 15 3686400
123562858 luogu_bot4 B1 July 24, 2021, 2:54 a.m. OK GNU C++11 TESTS 3 15 3686400
123558730 excellent123 B1 July 24, 2021, 1:35 a.m. OK GNU C++11 TESTS 3 15 3686400
123573205 xzpq B1 July 24, 2021, 5:46 a.m. OK GNU C++11 TESTS 5 15 3891200
123572127 hassanimran114 B1 July 24, 2021, 5:31 a.m. OK GNU C++11 TESTS 5 15 3891200
123572665 BlingBling. B1 July 24, 2021, 5:39 a.m. OK GNU C++11 TESTS 5 15 3891200
123542102 rakshitshinde150 B1 July 23, 2021, 6:51 p.m. OK GNU C++14 TESTS 3 0 3686400
123550589 immortal_101 B1 July 23, 2021, 9:09 p.m. OK GNU C++14 TESTS 3 0 3788800
123527217 Clay123 B1 July 23, 2021, 4:33 p.m. OK GNU C++14 TESTS 3 0 3891200
123524760 shreyasatre16 B1 July 23, 2021, 4:30 p.m. OK GNU C++14 TESTS 3 0 3891200
123533836 shreyasatre16 B1 July 23, 2021, 5:11 p.m. OK GNU C++14 TESTS 3 0 3891200
123538162 PrinceRajor B1 July 23, 2021, 6 p.m. OK GNU C++14 TESTS 3 0 3891200
123565899 mk1212 B1 July 24, 2021, 3:45 a.m. OK GNU C++14 TESTS 3 0 3891200
123572408 ankit_gaga B1 July 24, 2021, 5:35 a.m. OK GNU C++14 TESTS 5 15 3686400
123564015 Shizuka_11 B1 July 24, 2021, 3:15 a.m. OK GNU C++14 TESTS 3 15 3686400
123561974 arsh_ak7 B1 July 24, 2021, 2:40 a.m. OK GNU C++14 TESTS 3 15 3686400
123541681 -pandey_shivam- B1 July 23, 2021, 6:45 p.m. OK GNU C++17 TESTS 3 0 3686400
123568203 mahfuz31 B1 July 24, 2021, 4:25 a.m. OK GNU C++17 TESTS 3 0 3686400
123549192 skmprohunt B1 July 23, 2021, 8:39 p.m. OK GNU C++17 TESTS 3 0 3686400
123544307 himanipoonia B1 July 23, 2021, 7:21 p.m. OK GNU C++17 TESTS 3 0 3686400
123538006 parag_619 B1 July 23, 2021, 5:58 p.m. OK GNU C++17 TESTS 3 0 3788800
123562208 preet_mungra B1 July 24, 2021, 2:44 a.m. OK GNU C++17 TESTS 3 0 3788800
123563589 hsekharsahoo B1 July 24, 2021, 3:06 a.m. OK GNU C++17 TESTS 3 0 3891200
123567179 return_404 B1 July 24, 2021, 4:07 a.m. OK GNU C++17 TESTS 3 0 3891200
123557288 QuTi B1 July 24, 2021, 1 a.m. OK GNU C++17 TESTS 3 0 3891200
123554609 darkandy B1 July 23, 2021, 11:10 p.m. OK GNU C++17 TESTS 3 0 3891200
123541353 Meul B1 July 23, 2021, 6:40 p.m. OK GNU C++17 (64) TESTS 3 0 4300800
123564877 b2jena B1 July 24, 2021, 3:29 a.m. OK GNU C++17 (64) TESTS 3 0 4300800
123542781 aryan57 B1 July 23, 2021, 7:01 p.m. OK GNU C++17 (64) TESTS 3 0 4300800
123561520 Time_JYF B1 July 24, 2021, 2:32 a.m. OK GNU C++17 (64) TESTS 3 0 4300800
123571743 __SchrodingersCat__ B1 July 24, 2021, 5:25 a.m. OK GNU C++17 (64) TESTS 5 15 4300800
123573922 mjtai B1 July 24, 2021, 5:55 a.m. OK GNU C++17 (64) TESTS 5 15 4300800
123572785 _Shimla_ B1 July 24, 2021, 5:40 a.m. OK GNU C++17 (64) TESTS 5 15 4300800
123572564 Sanjidaafrin48 B1 July 24, 2021, 5:37 a.m. OK GNU C++17 (64) TESTS 5 15 4300800
123570775 janak2001 B1 July 24, 2021, 5:09 a.m. OK GNU C++17 (64) TESTS 5 15 4300800
123570338 simply_hooman B1 July 24, 2021, 5:03 a.m. OK GNU C++17 (64) TESTS 5 15 4300800
123549439 solo07 B1 July 23, 2021, 8:44 p.m. OK Java 11 TESTS 3 155 23756800
123570446 SaberXpro B1 July 24, 2021, 5:04 a.m. OK Java 11 TESTS 5 171 23756800
123563228 mphillotry B1 July 24, 2021, 3 a.m. OK Java 11 TESTS 3 171 23756800
123553055 Debojit219 B1 July 23, 2021, 10:15 p.m. OK Java 11 TESTS 3 171 23961600
123546155 xypher_007 B1 July 23, 2021, 7:47 p.m. OK Java 11 TESTS 3 171 23961600
123537269 qwerty12345qwerty B1 July 23, 2021, 5:49 p.m. OK Java 11 TESTS 3 186 23756800
123547751 codebook_2000 B1 July 23, 2021, 8:13 p.m. OK Java 11 TESTS 3 186 23961600
123532048 MubtasimShahriar B1 July 23, 2021, 4:56 p.m. OK Java 11 TESTS 3 186 23961600
123543741 gourav02 B1 July 23, 2021, 7:14 p.m. OK Java 11 TESTS 3 186 24166400
123534750 tirth485 B1 July 23, 2021, 5:20 p.m. OK Java 11 TESTS 3 186 24166400
123536160 medude B1 July 23, 2021, 5:35 p.m. OK Java 8 TESTS 3 78 20480000
123532678 gssakash B1 July 23, 2021, 5:01 p.m. OK Java 8 TESTS 3 78 20480000
123573324 Halix B1 July 24, 2021, 5:47 a.m. OK Java 8 TESTS 5 93 20377600
123533875 SAURABH16_ B1 July 23, 2021, 5:11 p.m. OK Java 8 TESTS 3 93 20992000
123555632 fareedahmaheeb B1 July 23, 2021, 11:56 p.m. OK Java 8 TESTS 3 108 20377600
123570811 tryingDream B1 July 24, 2021, 5:10 a.m. OK Java 8 TESTS 5 108 20480000
123566376 arpit31 B1 July 24, 2021, 3:52 a.m. OK Java 8 TESTS 3 109 20377600
123572306 yashpandey73 B1 July 24, 2021, 5:33 a.m. OK Java 8 TESTS 5 109 20480000
123567142 pikachu_pika_pika B1 July 24, 2021, 4:06 a.m. OK Java 8 TESTS 3 109 20480000
123547169 Shemo B1 July 23, 2021, 8:03 p.m. OK Java 8 TESTS 3 109 20480000
123560796 Spheniscine B1 July 24, 2021, 2:18 a.m. OK Kotlin TESTS 3 108 22323200
123529004 codersanjeev B1 July 23, 2021, 4:38 p.m. OK Kotlin TESTS 3 155 22425600
123574072 wbars B1 July 24, 2021, 5:57 a.m. OK Kotlin TESTS 5 171 21913600
123533413 small-fish B1 July 23, 2021, 5:07 p.m. OK MS C++ TESTS 3 15 3891200
123526198 Code_2k2 B1 July 23, 2021, 4:32 p.m. OK MS C++ 2017 TESTS 3 0 3686400
123556519 gleb32 B1 July 24, 2021, 12:35 a.m. OK MS C++ 2017 TESTS 3 15 3686400
123541416 _aniket_ B1 July 23, 2021, 6:41 p.m. OK MS C++ 2017 TESTS 3 15 3686400
123556042 _Rimjhim_36 B1 July 24, 2021, 12:15 a.m. OK MS C++ 2017 TESTS 3 15 3788800
123533704 Tangerine B1 July 23, 2021, 5:10 p.m. OK MS C++ 2017 TESTS 3 15 3788800
123531419 komalsatwik2002 B1 July 23, 2021, 4:52 p.m. OK MS C++ 2017 TESTS 3 15 3788800
123555777 UdeaJl1337 B1 July 24, 2021, 12:02 a.m. OK MS C++ 2017 TESTS 3 30 3686400
123563006 lissl123 B1 July 24, 2021, 2:56 a.m. OK MS C++ 2017 TESTS 3 30 3788800
123557393 zwb B1 July 24, 2021, 1:01 a.m. OK MS C++ 2017 TESTS 3 30 3788800
123527842 AVP123 B1 July 23, 2021, 4:34 p.m. OK MS C++ 2017 TESTS 3 30 3788800
123530476 itsbhavya B1 July 23, 2021, 4:46 p.m. OK PyPy 3 TESTS 3 108 22630400
123560564 not_akshitm16 B1 July 24, 2021, 2:14 a.m. OK PyPy 3 TESTS 3 124 23552000
123542871 akshitm16 B1 July 23, 2021, 7:02 p.m. OK PyPy 3 TESTS 3 124 23552000
123530023 divyenegi B1 July 23, 2021, 4:43 p.m. OK PyPy 3 TESTS 3 139 23552000
123573527 skhan_org B1 July 24, 2021, 5:50 a.m. OK PyPy 3 TESTS 5 140 23347200
123534285 navya3 B1 July 23, 2021, 5:15 p.m. OK PyPy 3 TESTS 3 140 23449600
123535330 bjy B1 July 23, 2021, 5:26 p.m. OK PyPy 3 TESTS 3 155 23347200
123543672 anuraagbarde B1 July 23, 2021, 7:13 p.m. OK PyPy 3 TESTS 3 155 25088000
123524823 hkbiet B1 July 23, 2021, 4:30 p.m. OK PyPy 3 TESTS 3 156 23040000
123538097 sarthakmanna B1 July 23, 2021, 5:59 p.m. OK PyPy 3 TESTS 3 156 24064000
123537524 so_h B1 July 23, 2021, 5:52 p.m. OK Python 3 TESTS 3 46 7065600
123527427 _bazinga_ B1 July 23, 2021, 4:34 p.m. OK Python 3 TESTS 3 61 6656000
123545406 suramyaverma B1 July 23, 2021, 7:37 p.m. OK Python 3 TESTS 3 61 6963200
123524548 pancholi.tanuj8 B1 July 23, 2021, 4:29 p.m. OK Python 3 TESTS 3 61 7168000
123568925 sarah007 B1 July 24, 2021, 4:38 a.m. OK Python 3 TESTS 3 62 6758400
123537777 _vapor B1 July 23, 2021, 5:55 p.m. OK Python 3 TESTS 3 62 6758400
123554228 Sonenka B1 July 23, 2021, 10:54 p.m. OK Python 3 TESTS 3 62 6963200
123554003 sarthak20574 B1 July 23, 2021, 10:47 p.m. OK Python 3 TESTS 3 62 6963200
123553876 eugalt B1 July 23, 2021, 10:42 p.m. OK Python 3 TESTS 3 62 6963200
123550626 vinay272001 B1 July 23, 2021, 9:10 p.m. OK Python 3 TESTS 3 62 6963200

remove filters

Back to search problems