Codeforces Round 829 (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
1754 Codeforces Round 829 (Div. 2) FINISHED False 7200 65311799 Oct. 23, 2022, 7:50 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 23326 ) A Technical Support PROGRAMMING 800

B'You work in the quality control department of technical support for a large company. Your job is to make sure all client issues have been resolved. Today you need to check a copy of a dialog between a client and a technical support manager. According to the rules of work, each message of the client must be followed by one or several messages, which are the answer of a support manager. However, sometimes clients ask questions so quickly that some of the manager 's answers to old questions appear after the client has asked some new questions. Due to the privacy policy, the full text of messages is not available to you, only the order of messages is visible, as well as the type of each message: a customer question or a response from the technical support manager. It is guaranteed that the dialog begins with the question of the client. You have to determine, if this dialog may correspond to the rules of work described above, or the rules are certainly breached. Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= t <= 500 ). Description of the test cases follows. The first line of each test case contains one integer n ( 1 <= n <= 100 ) -- the total number of messages in the dialog. The second line of each test case consists of n characters "Q" and "A", describing types of messages in the dialog in chronological order. Character "Q" denotes the message with client question, and character "A" -- the message with technical support manager answer. It is guaranteed that the first character in the line equals to "Q". For each test case print "Yes" (without quotes) if dialog may correspond to the rules of work, or "No" (without quotes) otherwise. In the first test case the two questions from the client are followed with two specialist 's answers. So this dialog may correspond to the rules of work. In the second test case one of the first two questions was not answered. In the third test case'...

Tutorials

Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
177599648 AntoshaK A Oct. 23, 2022, 9:38 a.m. OK C# 10 TESTS 4 46 0 800
177669120 rakhi41237 A Oct. 23, 2022, 3:55 p.m. OK Clang++17 Diagnostics TESTS 4 31 0 800
177707908 dzechan98 A Oct. 24, 2022, 1:35 a.m. OK Clang++17 Diagnostics TESTS 4 31 0 800
177668955 auroraaaa A Oct. 23, 2022, 3:54 p.m. OK Clang++17 Diagnostics TESTS 4 31 0 800
177714279 mirmuddassir78 A Oct. 24, 2022, 3:34 a.m. OK Clang++17 Diagnostics TESTS 4 46 0 800
177653984 ruban A Oct. 23, 2022, 1:58 p.m. OK Delphi TESTS 4 15 0 800
177604977 SAFIN07 A Oct. 23, 2022, 9:49 a.m. OK GNU C11 TESTS 4 15 0 800
177662473 Abhishek_Tewatia A Oct. 23, 2022, 3:02 p.m. OK GNU C11 TESTS 4 15 0 800
177720852 Jahidul_CSE A Oct. 24, 2022, 5:31 a.m. OK GNU C11 TESTS 4 15 0 800
177721318 Jahidul_CSE A Oct. 24, 2022, 5:38 a.m. OK GNU C11 TESTS 4 15 0 800
177649732 Mushfiqur_ A Oct. 23, 2022, 1:32 p.m. OK GNU C11 TESTS 4 15 0 800
177669353 SP2003 A Oct. 23, 2022, 3:57 p.m. OK GNU C11 TESTS 4 15 204800 800
177650668 Mushfiqur_ A Oct. 23, 2022, 1:37 p.m. OK GNU C11 TESTS 4 31 0 800
177600076 lanjiu A Oct. 23, 2022, 9:39 a.m. OK GNU C11 TESTS 4 31 0 800
177720611 NEVER.GIVE.UP A Oct. 24, 2022, 5:27 a.m. OK GNU C++14 TESTS 4 0 0 800
177718893 nitlala A Oct. 24, 2022, 5 a.m. OK GNU C++14 TESTS 4 0 0 800
177717308 shivdattadixit0567 A Oct. 24, 2022, 4:32 a.m. OK GNU C++14 TESTS 4 0 0 800
177717042 taikon A Oct. 24, 2022, 4:27 a.m. OK GNU C++14 TESTS 4 0 0 800
177716101 Kenneth123 A Oct. 24, 2022, 4:08 a.m. OK GNU C++14 TESTS 4 0 0 800
177713904 Kiet_Le A Oct. 24, 2022, 3:28 a.m. OK GNU C++14 TESTS 4 0 0 800
177709578 behuymummim A Oct. 24, 2022, 2:14 a.m. OK GNU C++14 TESTS 4 0 0 800
177708997 with_no_signal A Oct. 24, 2022, 2:01 a.m. OK GNU C++14 TESTS 4 0 0 800
177722695 amit.chakraborti9 A Oct. 24, 2022, 5:57 a.m. OK GNU C++14 TESTS 4 0 0 800
177722115 Dregen_Yor A Oct. 24, 2022, 5:49 a.m. OK GNU C++14 TESTS 4 0 0 800
177720163 hausopro A Oct. 24, 2022, 5:20 a.m. OK GNU C++17 TESTS 4 0 0 800
177719285 rana2001shubham A Oct. 24, 2022, 5:06 a.m. OK GNU C++17 TESTS 4 0 0 800
177721967 Luo_Xubo A Oct. 24, 2022, 5:47 a.m. OK GNU C++17 TESTS 4 0 0 800
177722549 zouyu963l A Oct. 24, 2022, 5:55 a.m. OK GNU C++17 TESTS 4 0 0 800
177722649 Scrapper_700 A Oct. 24, 2022, 5:56 a.m. OK GNU C++17 TESTS 4 0 0 800
177722724 Sempr A Oct. 24, 2022, 5:57 a.m. OK GNU C++17 TESTS 4 0 0 800
177722942 DcConan A Oct. 24, 2022, 6 a.m. OK GNU C++17 TESTS 4 0 0 800
177723124 A.T_ A Oct. 24, 2022, 6:02 a.m. OK GNU C++17 TESTS 4 0 0 800
177721774 shaunak_10 A Oct. 24, 2022, 5:44 a.m. OK GNU C++17 TESTS 4 0 0 800
177720819 Siddhant_Tohan A Oct. 24, 2022, 5:31 a.m. OK GNU C++17 TESTS 4 0 0 800
177708122 JinTianHao A Oct. 24, 2022, 1:41 a.m. OK GNU C++17 (64) TESTS 4 0 0 800
177716074 Muly A Oct. 24, 2022, 4:07 a.m. OK GNU C++17 (64) TESTS 4 0 0 800
177710422 Messywind A Oct. 24, 2022, 2:28 a.m. OK GNU C++17 (64) TESTS 4 0 0 800
177708480 Hytidel A Oct. 24, 2022, 1:49 a.m. OK GNU C++17 (64) TESTS 4 0 0 800
177706176 Awesome3.14 A Oct. 24, 2022, 12:50 a.m. OK GNU C++17 (64) TESTS 4 0 0 800
177705806 hhh3 A Oct. 24, 2022, 12:37 a.m. OK GNU C++17 (64) TESTS 4 0 0 800
177701866 enslaved A Oct. 23, 2022, 10:31 p.m. OK GNU C++17 (64) TESTS 4 0 0 800
177701182 ALILILILILI-KHAN A Oct. 23, 2022, 10:10 p.m. OK GNU C++17 (64) TESTS 4 0 0 800
177697715 joao.breno.ro17 A Oct. 23, 2022, 8:51 p.m. OK GNU C++17 (64) TESTS 4 0 0 800
177690575 kanishk_k A Oct. 23, 2022, 7:04 p.m. OK GNU C++17 (64) TESTS 4 0 0 800
177720350 mayankiet_20 A Oct. 24, 2022, 5:23 a.m. OK GNU C++20 (64) TESTS 4 0 0 800
177720029 ElyesBerriri A Oct. 24, 2022, 5:18 a.m. OK GNU C++20 (64) TESTS 4 0 0 800
177720443 stellarhuman09 A Oct. 24, 2022, 5:24 a.m. OK GNU C++20 (64) TESTS 4 0 0 800
177720886 Xhnxhn A Oct. 24, 2022, 5:31 a.m. OK GNU C++20 (64) TESTS 4 0 0 800
177721129 Fysty A Oct. 24, 2022, 5:35 a.m. OK GNU C++20 (64) TESTS 4 0 0 800
177721400 cocomos A Oct. 24, 2022, 5:39 a.m. OK GNU C++20 (64) TESTS 4 0 0 800
177721903 willychan A Oct. 24, 2022, 5:46 a.m. OK GNU C++20 (64) TESTS 4 0 0 800
177722051 WandDereR A Oct. 24, 2022, 5:48 a.m. OK GNU C++20 (64) TESTS 4 0 0 800
177722401 MoAdelEzz A Oct. 24, 2022, 5:53 a.m. OK GNU C++20 (64) TESTS 4 0 0 800
177722606 i.afshanshekh A Oct. 24, 2022, 5:56 a.m. OK GNU C++20 (64) TESTS 4 0 0 800
177699263 Eslam_Genedy92 A Oct. 23, 2022, 9:22 p.m. OK Go TESTS 4 15 0 800
177668516 a0ggie A Oct. 23, 2022, 3:50 p.m. OK Go TESTS 4 93 0 800
177710529 ashs A Oct. 24, 2022, 2:29 a.m. OK Java 11 TESTS 4 155 0 800
177707243 KarMa_ A Oct. 24, 2022, 1:19 a.m. OK Java 11 TESTS 4 156 0 800
177656250 rd37574 A Oct. 23, 2022, 2:14 p.m. OK Java 11 TESTS 4 170 0 800
177660884 procrastinate7 A Oct. 23, 2022, 2:49 p.m. OK Java 11 TESTS 4 171 0 800
177668363 __bing007___ A Oct. 23, 2022, 3:49 p.m. OK Java 11 TESTS 4 186 0 800
177651740 rajneesh.osho A Oct. 23, 2022, 1:44 p.m. OK Java 11 TESTS 4 186 0 800
177703500 wat2 A Oct. 23, 2022, 11:26 p.m. OK Java 11 TESTS 4 186 24371200 800
177694254 Forbidden_Bruteforce A Oct. 23, 2022, 7:55 p.m. OK Java 11 TESTS 4 187 0 800
177661164 bhushan2311 A Oct. 23, 2022, 2:52 p.m. OK Java 11 TESTS 4 187 0 800
177718517 nikku599 A Oct. 24, 2022, 4:53 a.m. OK Java 11 TESTS 4 202 0 800
177719081 manvendramehrotra A Oct. 24, 2022, 5:03 a.m. OK Java 17 TESTS 4 140 307200 800
177705275 Yousef_Badr A Oct. 24, 2022, 12:21 a.m. OK Java 17 TESTS 4 155 204800 800
177722567 therealvyshnavkarun A Oct. 24, 2022, 5:55 a.m. OK Java 17 TESTS 4 171 307200 800
177709270 Anurag-singh A Oct. 24, 2022, 2:08 a.m. OK Java 17 TESTS 4 171 307200 800
177649793 Kay0 A Oct. 23, 2022, 1:32 p.m. OK Java 17 TESTS 4 186 0 800
177697074 zaghaltariq007 A Oct. 23, 2022, 8:39 p.m. OK Java 17 TESTS 4 186 512000 800
177665409 anuragkr898 A Oct. 23, 2022, 3:25 p.m. OK Java 17 TESTS 4 202 0 800
177598578 Barsha_511 A Oct. 23, 2022, 9:35 a.m. OK Java 17 TESTS 4 202 0 800
177657313 varrick A Oct. 23, 2022, 2:22 p.m. OK Java 17 TESTS 4 217 0 800
177597598 yashsrivastava2603 A Oct. 23, 2022, 9:33 a.m. OK Java 17 TESTS 4 218 0 800
177719937 gssakash A Oct. 24, 2022, 5:16 a.m. OK Java 8 TESTS 4 78 0 800
177653103 ankit_0207 A Oct. 23, 2022, 1:53 p.m. OK Java 8 TESTS 4 92 0 800
177697419 josephSAMO A Oct. 23, 2022, 8:46 p.m. OK Java 8 TESTS 4 93 0 800
177663080 Sussykin A Oct. 23, 2022, 3:07 p.m. OK Java 8 TESTS 4 93 0 800
177656263 namazbekzhan_004 A Oct. 23, 2022, 2:14 p.m. OK Java 8 TESTS 4 93 0 800
177650018 ikillmyself A Oct. 23, 2022, 1:34 p.m. OK Java 8 TESTS 4 93 0 800
177657430 youtsuha A Oct. 23, 2022, 2:22 p.m. OK Java 8 TESTS 4 108 0 800
177669134 Koka A Oct. 23, 2022, 3:56 p.m. OK Java 8 TESTS 4 109 0 800
177598635 MN338327 A Oct. 23, 2022, 9:35 a.m. OK Java 8 TESTS 4 109 0 800
177719306 mrizzzz_03 A Oct. 24, 2022, 5:06 a.m. OK Java 8 TESTS 4 124 0 800
177717150 kamaan523 A Oct. 24, 2022, 4:29 a.m. OK MS C++ 2017 TESTS 4 15 0 800
177671874 shivamaggarwal513 A Oct. 23, 2022, 4:19 p.m. OK MS C++ 2017 TESTS 4 15 0 800
177656430 Rivennnnnnnmm A Oct. 23, 2022, 2:15 p.m. OK MS C++ 2017 TESTS 4 15 0 800
177652253 Vovka1602 A Oct. 23, 2022, 1:47 p.m. OK MS C++ 2017 TESTS 4 15 0 800
177659299 misorin A Oct. 23, 2022, 2:37 p.m. OK PyPy 3 TESTS 4 77 1740800 800
177717738 bokunopicolo A Oct. 24, 2022, 4:40 a.m. OK PyPy 3 TESTS 4 77 2048000 800
177717825 bokunopicolo A Oct. 24, 2022, 4:41 a.m. OK PyPy 3 TESTS 4 77 2150400 800
177717266 sw_enthusiast A Oct. 24, 2022, 4:31 a.m. OK PyPy 3 TESTS 4 77 66764800 800
177678855 Yash_Nandwana A Oct. 23, 2022, 5:25 p.m. OK PyPy 3 TESTS 4 124 3584000 800
177648019 bpdolson A Oct. 23, 2022, 1:20 p.m. OK PyPy 3 TESTS 4 140 2662400 800
177602667 KIRDOR A Oct. 23, 2022, 9:45 a.m. OK PyPy 3 TESTS 4 155 4096000 800
177677332 akimuuwu A Oct. 23, 2022, 5:11 p.m. OK PyPy 3 TESTS 4 171 4403200 800
177718659 0x7f_ A Oct. 24, 2022, 4:56 a.m. OK PyPy 3 TESTS 4 280 8908800 800
177650848 crapcode A Oct. 23, 2022, 1:38 p.m. OK PyPy 3-64 TESTS 4 46 1638400 800
177664053 _N_0_0_B_ A Oct. 23, 2022, 3:14 p.m. OK PyPy 3-64 TESTS 4 77 3481600 800
177679043 H3X460N157 A Oct. 23, 2022, 5:27 p.m. OK PyPy 3-64 TESTS 4 77 3584000 800
177707012 thewaxmango A Oct. 24, 2022, 1:13 a.m. OK PyPy 3-64 TESTS 4 92 2048000 800
177722196 keria_stan A Oct. 24, 2022, 5:50 a.m. OK PyPy 3-64 TESTS 4 92 5120000 800
177712967 ZaeThrix A Oct. 24, 2022, 3:12 a.m. OK PyPy 3-64 TESTS 4 93 3481600 800
177683732 erudition_0705 A Oct. 23, 2022, 6:12 p.m. OK PyPy 3-64 TESTS 4 93 5222400 800
177710469 sky_coder_ A Oct. 24, 2022, 2:28 a.m. OK PyPy 3-64 TESTS 4 93 5324800 800
177721249 tarun_24 A Oct. 24, 2022, 5:37 a.m. OK PyPy 3-64 TESTS 4 93 6041600 800
177664984 nealzane A Oct. 23, 2022, 3:21 p.m. OK PyPy 3-64 TESTS 4 93 10342400 800
177721804 utsu_boy A Oct. 24, 2022, 5:45 a.m. OK Python 3 TESTS 4 30 0 800
177719218 s_nishanth A Oct. 24, 2022, 5:05 a.m. OK Python 3 TESTS 4 31 0 800
177716345 script_kiddie_noob A Oct. 24, 2022, 4:12 a.m. OK Python 3 TESTS 4 31 0 800
177660175 harryPotterI A Oct. 23, 2022, 2:44 p.m. OK Python 3 TESTS 4 31 0 800
177600857 chrisaag A Oct. 23, 2022, 9:41 a.m. OK Python 3 TESTS 4 31 0 800
177719433 xxgiasonxx A Oct. 24, 2022, 5:09 a.m. OK Python 3 TESTS 4 46 0 800
177708595 Xenophloxic A Oct. 24, 2022, 1:52 a.m. OK Python 3 TESTS 4 46 0 800
177703436 milimurmu1995 A Oct. 23, 2022, 11:24 p.m. OK Python 3 TESTS 4 46 0 800
177700557 eugalt A Oct. 23, 2022, 9:53 p.m. OK Python 3 TESTS 4 46 0 800
177686367 varun_17 A Oct. 23, 2022, 6:41 p.m. OK Python 3 TESTS 4 46 0 800

remove filters

Back to search problems