Codeforces Global Round 20

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
1672 Codeforces Global Round 20 FINISHED False 10800 86457263 April 23, 2022, 2:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 16012 ) B I love AAAB PROGRAMMING constructive algorithms implementation 800

B'Let 's call a string good if its length is at least 2 and all of its characters are texttt{A} except for the last character which is texttt{B} . The good strings are texttt{AB}, texttt{AAB}, texttt{AAAB}, ldots . Note that texttt{B} is not a good string. You are given an initially empty string s_1 . You can perform the following operation any number of times: Given a string s_2 , can we turn s_1 into s_2 after some number of operations? Each test contains multiple test cases. The first line contains a single integer t ( 1 <= q t <= q 10^4 ) -- the number of test cases. The description of the test cases follows. The first line of each test case contains a single string s_2 ( 1 <= q |s_2| <= q 2 cdot 10^5 ). It is guaranteed that s_2 consists of only the characters texttt{A} and texttt{B} . It is guaranteed that the sum of |s_2| over all test cases does not exceed 2 cdot 10^5 . For each test case, print "YES" (without quotes) if we can turn s_1 into s_2 after some number of operations, and "NO" (without quotes) otherwise. You can output "YES" and "NO" in any case (for example, strings "yEs", "yes" and "Yes" will be recognized as a positive response). In the first test case, we transform s_1 as such: varnothing to color{red}{ texttt{AAB}} to texttt{A} color{red}{ texttt{AB}} texttt{AB} . In the third test case, we transform s_1 as such: varnothing to color{red}{ texttt{AAAAAAAAB}} . In the second and fourth test case, it can be shown that it is impossible to turn s_1 into s_2 . '...

Tutorials

Global Round 20 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
154862742 ParvThacker B April 24, 2022, 2:32 p.m. OK Clang++17 Diagnostics TESTS 8 77 204800 800
154801876 LiuYiWen B April 24, 2022, 2:27 a.m. OK GNU C11 TESTS 8 15 204800 800
154781944 Gold_Dragon B April 23, 2022, 6:58 p.m. OK GNU C11 TESTS 8 31 204800 800
154777802 MohammadDallash B April 23, 2022, 6:05 p.m. OK GNU C11 TESTS 8 31 204800 800
154819815 Eyjafjal1a B April 24, 2022, 7:15 a.m. OK GNU C11 TESTS 8 46 204800 800
154907279 Sarwar82 B April 25, 2022, 5:54 a.m. OK GNU C11 TESTS 8 46 204800 800
154812820 hnust_zhangziyue B April 24, 2022, 5:50 a.m. OK GNU C11 TESTS 8 46 204800 800
154865910 abusayeid B April 24, 2022, 3:07 p.m. OK GNU C11 TESTS 8 46 204800 800
154788961 Meow.Meow B April 23, 2022, 8:50 p.m. OK GNU C11 TESTS 8 46 204800 800
154798553 keutoi B April 24, 2022, 12:53 a.m. OK GNU C11 TESTS 8 46 204800 800
154810956 hnust_zhangyuejia B April 24, 2022, 5:25 a.m. OK GNU C11 TESTS 8 46 204800 800
154814287 xia0ji233 B April 24, 2022, 6:09 a.m. OK GNU C++14 TESTS 8 0 204800 800
154901218 Ca1se B April 25, 2022, 3:44 a.m. OK GNU C++14 TESTS 8 0 204800 800
154800255 Ahiyawesome B April 24, 2022, 1:45 a.m. OK GNU C++14 TESTS 8 0 512000 800
154778679 Practice_100pm B April 23, 2022, 6:15 p.m. OK GNU C++14 TESTS 8 0 512000 800
154775421 kausar_ahamed B April 23, 2022, 5:43 p.m. OK GNU C++14 TESTS 8 0 512000 800
154781292 Pharaonic_fox B April 23, 2022, 6:49 p.m. OK GNU C++14 TESTS 8 0 512000 800
154781124 wildkite B April 23, 2022, 6:47 p.m. OK GNU C++14 TESTS 8 0 2150400 800
154907012 MiyukiKazuya B April 25, 2022, 5:48 a.m. OK GNU C++14 TESTS 8 15 204800 800
154839687 QuantAsk B April 24, 2022, 10:58 a.m. OK GNU C++14 TESTS 8 15 204800 800
154854134 spoonjunxi B April 24, 2022, 1:06 p.m. OK GNU C++14 TESTS 8 15 204800 800
154844228 XiayuFengchen B April 24, 2022, 11:37 a.m. OK GNU C++17 TESTS 8 0 204800 800
154905718 Runtime_terror_ B April 25, 2022, 5:21 a.m. OK GNU C++17 TESTS 8 0 512000 800
154845546 rigved3401 B April 24, 2022, 11:47 a.m. OK GNU C++17 TESTS 8 0 512000 800
154897622 QuiqueLuna B April 25, 2022, 2:18 a.m. OK GNU C++17 TESTS 8 0 512000 800
154897635 aytdev B April 25, 2022, 2:18 a.m. OK GNU C++17 TESTS 8 0 512000 800
154902400 swift51385 B April 25, 2022, 4:10 a.m. OK GNU C++17 TESTS 8 0 512000 800
154837952 butani_111 B April 24, 2022, 10:37 a.m. OK GNU C++17 TESTS 8 0 512000 800
154896338 maghrabyJr_ B April 24, 2022, 11:38 p.m. OK GNU C++17 TESTS 8 0 512000 800
154873082 Omar.Yasser B April 24, 2022, 4:17 p.m. OK GNU C++17 TESTS 8 0 512000 800
154846034 mak4233 B April 24, 2022, 11:51 a.m. OK GNU C++17 TESTS 8 0 512000 800
154802901 exzang B April 24, 2022, 2:50 a.m. OK GNU C++17 (64) TESTS 8 0 204800 800
154776106 Mr-Robot_545 B April 23, 2022, 5:49 p.m. OK GNU C++17 (64) TESTS 8 0 512000 800
154775385 mesbah19 B April 23, 2022, 5:42 p.m. OK GNU C++17 (64) TESTS 8 0 512000 800
154864613 Dijkstra_attack B April 24, 2022, 2:52 p.m. OK GNU C++17 (64) TESTS 8 0 512000 800
154840649 _Yeager_ B April 24, 2022, 11:09 a.m. OK GNU C++17 (64) TESTS 8 0 512000 800
154820689 Tr_Tuhin B April 24, 2022, 7:23 a.m. OK GNU C++17 (64) TESTS 8 0 512000 800
154798127 yaoveil B April 24, 2022, 12:39 a.m. OK GNU C++17 (64) TESTS 8 0 512000 800
154797614 yzc2005 B April 24, 2022, 12:23 a.m. OK GNU C++17 (64) TESTS 8 0 512000 800
154825783 sunny77 B April 24, 2022, 8:20 a.m. OK GNU C++17 (64) TESTS 8 0 1331200 800
154817248 H-H B April 24, 2022, 6:47 a.m. OK GNU C++17 (64) TESTS 8 15 204800 800
154849443 SkyWalkerPS B April 24, 2022, 12:21 p.m. OK GNU C++20 (64) TESTS 8 0 512000 800
154903599 hasan2006 B April 25, 2022, 4:39 a.m. OK GNU C++20 (64) TESTS 8 0 512000 800
154877139 sdeepanshu17 B April 24, 2022, 5:17 p.m. OK GNU C++20 (64) TESTS 8 0 512000 800
154867976 bihnehminduh B April 24, 2022, 3:29 p.m. OK GNU C++20 (64) TESTS 8 0 512000 800
154863705 CaoTienDat B April 24, 2022, 2:43 p.m. OK GNU C++20 (64) TESTS 8 0 512000 800
154861851 isPritchin B April 24, 2022, 2:22 p.m. OK GNU C++20 (64) TESTS 8 0 512000 800
154860816 shekharh433 B April 24, 2022, 2:11 p.m. OK GNU C++20 (64) TESTS 8 0 512000 800
154837689 covid_coder B April 24, 2022, 10:34 a.m. OK GNU C++20 (64) TESTS 8 0 512000 800
154829764 fenyman B April 24, 2022, 9 a.m. OK GNU C++20 (64) TESTS 8 0 512000 800
154828654 folsatraptai B April 24, 2022, 8:49 a.m. OK GNU C++20 (64) TESTS 8 0 512000 800
154810087 chandler1837 B April 24, 2022, 5:13 a.m. OK Go TESTS 8 46 2457600 800
154811937 gaju321 B April 24, 2022, 5:39 a.m. OK Java 11 TESTS 8 155 0 800
154805189 Satyaa B April 24, 2022, 3:41 a.m. OK Java 11 TESTS 8 155 0 800
154777339 vijender_8601 B April 23, 2022, 6:01 p.m. OK Java 11 TESTS 8 155 0 800
154774840 vinam1 B April 23, 2022, 5:38 p.m. OK Java 11 TESTS 8 170 0 800
154858476 souvik2000 B April 24, 2022, 1:48 p.m. OK Java 11 TESTS 8 171 0 800
154860631 palindro.me B April 24, 2022, 2:09 p.m. OK Java 11 TESTS 8 171 0 800
154831240 __Serendipity B April 24, 2022, 9:17 a.m. OK Java 11 TESTS 8 171 0 800
154822728 the_unseen B April 24, 2022, 7:45 a.m. OK Java 11 TESTS 8 171 0 800
154821335 akashkumarkly B April 24, 2022, 7:30 a.m. OK Java 11 TESTS 8 171 0 800
154820776 suhas5979 B April 24, 2022, 7:24 a.m. OK Java 11 TESTS 8 171 0 800
154797915 Shemo B April 24, 2022, 12:32 a.m. OK Java 8 TESTS 8 92 0 800
154874039 Mohamed_A7med B April 24, 2022, 4:28 p.m. OK Java 8 TESTS 8 93 0 800
154782520 arutsudar B April 23, 2022, 7:07 p.m. OK Java 8 TESTS 8 93 0 800
154777683 GonFreecss2830 B April 23, 2022, 6:04 p.m. OK Java 8 TESTS 8 108 0 800
154774866 gssakash B April 23, 2022, 5:38 p.m. OK Java 8 TESTS 8 108 0 800
154817523 lcheeme1 B April 24, 2022, 6:50 a.m. OK Java 8 TESTS 8 109 0 800
154788223 Koka B April 23, 2022, 8:37 p.m. OK Java 8 TESTS 8 109 0 800
154878480 sachinjaiswal B April 24, 2022, 5:36 p.m. OK Java 8 TESTS 8 139 0 800
154774747 toufique_husein B April 23, 2022, 5:38 p.m. OK Java 8 TESTS 8 139 0 800
154797123 -crazy_coder- B April 24, 2022, 12:06 a.m. OK Java 8 TESTS 8 140 0 800
154899173 emailam B April 25, 2022, 2:58 a.m. OK MS C++ 2017 TESTS 8 15 409600 800
154846967 xuancx B April 24, 2022, 11:59 a.m. OK MS C++ 2017 TESTS 8 15 409600 800
154780398 whiteReboot B April 23, 2022, 6:36 p.m. OK MS C++ 2017 TESTS 8 15 409600 800
154899008 emailam B April 25, 2022, 2:54 a.m. OK MS C++ 2017 TESTS 8 15 512000 800
154799453 19acm B April 24, 2022, 1:22 a.m. OK MS C++ 2017 TESTS 8 30 204800 800
154835479 Killer_No.47 B April 24, 2022, 10:06 a.m. OK MS C++ 2017 TESTS 8 31 204800 800
154901027 dogoeswoof B April 25, 2022, 3:40 a.m. OK MS C++ 2017 TESTS 8 31 512000 800
154805229 Fish_L B April 24, 2022, 3:42 a.m. OK MS C++ 2017 TESTS 8 31 512000 800
154793440 Nour_Ayman644 B April 23, 2022, 10:20 p.m. OK MS C++ 2017 TESTS 8 31 512000 800
154879597 vip_007 B April 24, 2022, 5:53 p.m. OK MS C++ 2017 TESTS 8 31 716800 800
154797648 hasanjak99 B April 24, 2022, 12:24 a.m. OK PHP TESTS 8 31 614400 800
154776246 1_2_3_4_5_9 B April 23, 2022, 5:50 p.m. OK PyPy 2 TESTS 8 93 2457600 800
154783516 ambs_ B April 23, 2022, 7:21 p.m. OK PyPy 3 TESTS 8 124 6144000 800
154773988 __J__ B April 23, 2022, 5:32 p.m. OK PyPy 3 TESTS 8 124 7065600 800
154777739 ayshiff B April 23, 2022, 6:05 p.m. OK PyPy 3 TESTS 8 155 9420800 800
154782089 Adolf988 B April 23, 2022, 7 p.m. OK PyPy 3 TESTS 8 171 6246400 800
154852679 NAVI_Perfecto B April 24, 2022, 12:52 p.m. OK PyPy 3 TESTS 8 171 8601600 800
154904046 Ayushman_123 B April 25, 2022, 4:48 a.m. OK PyPy 3 TESTS 8 202 8499200 800
154799778 wyxfwxh250821 B April 24, 2022, 1:31 a.m. OK PyPy 3 TESTS 8 217 6860800 800
154835004 3juhwan B April 24, 2022, 10:01 a.m. OK PyPy 3 TESTS 8 249 6451200 800
154857886 ms_27 B April 24, 2022, 1:43 p.m. OK PyPy 3 TESTS 8 249 6553600 800
154778484 sigilius B April 23, 2022, 6:13 p.m. OK PyPy 3 TESTS 8 249 7680000 800
154810581 _Frust B April 24, 2022, 5:20 a.m. OK PyPy 3-64 TESTS 8 92 7270400 800
154827317 notTehlka B April 24, 2022, 8:36 a.m. OK PyPy 3-64 TESTS 8 93 8192000 800
154819029 vermakunal088 B April 24, 2022, 7:07 a.m. OK PyPy 3-64 TESTS 8 93 8499200 800
154794822 legend.ary_as B April 23, 2022, 10:57 p.m. OK PyPy 3-64 TESTS 8 93 15052800 800
154810664 sakshatmali B April 24, 2022, 5:21 a.m. OK PyPy 3-64 TESTS 8 109 10137600 800
154792760 MistaAsh B April 23, 2022, 10:05 p.m. OK PyPy 3-64 TESTS 8 124 9318400 800
154808868 hsh8086 B April 24, 2022, 4:56 a.m. OK PyPy 3-64 TESTS 8 124 10137600 800
154860180 wudoo B April 24, 2022, 2:05 p.m. OK PyPy 3-64 TESTS 8 140 9728000 800
154775088 kwin B April 23, 2022, 5:40 p.m. OK PyPy 3-64 TESTS 8 155 10342400 800
154888889 Bucher B April 24, 2022, 8:36 p.m. OK PyPy 3-64 TESTS 8 217 9216000 800
154778131 xndxcv B April 23, 2022, 6:09 p.m. OK Python 3 TESTS 8 62 512000 800
154895911 quaazz B April 24, 2022, 11:24 p.m. OK Python 3 TESTS 8 77 716800 800
154777051 shkaal B April 23, 2022, 5:58 p.m. OK Python 3 TESTS 8 77 921600 800
154831160 its_AK B April 24, 2022, 9:16 a.m. OK Python 3 TESTS 8 93 0 800
154780258 kamal_singh89 B April 23, 2022, 6:34 p.m. OK Python 3 TESTS 8 93 307200 800
154887218 sagamantus B April 24, 2022, 8:06 p.m. OK Python 3 TESTS 8 108 307200 800
154865013 yashmuchhala B April 24, 2022, 2:56 p.m. OK Python 3 TESTS 8 108 307200 800
154853875 VedantMehta B April 24, 2022, 1:03 p.m. OK Python 3 TESTS 8 108 307200 800
154843455 THEarchitect B April 24, 2022, 11:31 a.m. OK Python 3 TESTS 8 108 307200 800
154828535 Ak_basniwal B April 24, 2022, 8:48 a.m. OK Python 3 TESTS 8 108 307200 800
154780648 utkarsh B April 23, 2022, 6:39 p.m. OK Ruby 3 TESTS 8 295 11468800 800

remove filters

Back to search problems