Codeforces Round 568 (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
1185 Codeforces Round 568 (Div. 2) FINISHED False 8100 176483687 June 19, 2019, 2:45 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 13566 ) B Email from Polycarp PROGRAMMING implementation strings 1200

B'Methodius received an email from his friend Polycarp. However, Polycarp 's keyboard is broken, so pressing a key on it once may cause the corresponding symbol to appear more than once (if you press a key on a regular keyboard, it prints exactly one symbol). For example, as a result of typing the word "hello", the following words could be printed: "hello", "hhhhello", "hheeeellllooo", but the following could not be printed: "hell", "helo", "hhllllooo". Note, that when you press a key, the corresponding symbol must appear (possibly, more than once). The keyboard is broken in a random manner, it means that pressing the same key you can get the different number of letters in the result. For each word in the letter, Methodius has guessed what word Polycarp actually wanted to write, but he is not sure about it, so he asks you to help him. You are given a list of pairs of words. For each pair, determine if the second word could be printed by typing the first one on Polycarp 's keyboard. The first line of the input contains one integer n ( 1 <= n <= 10^5 ) -- the number of pairs to check. Further input contains n descriptions of pairs. The first line of each description contains a single non-empty word s consisting of lowercase Latin letters. The second line of the description contains a single non-empty word t consisting of lowercase Latin letters. The lengths of both strings are not greater than 10^6 . It is guaranteed that the total length of all words s in the input is not greater than 10^6 . Also, it is guaranteed that the total length of all words t in the input is not greater than 10^6 . Output n lines. In the i -th line for the i -th pair of words s and t print YES if the word t could be printed by typing the word s . Otherwise, print NO. '...

Tutorials

Editorial for Codeforces Round #568 (Div. 2)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
55825917 WhySoSerious6490 B June 20, 2019, 10:51 a.m. OK Clang++17 Diagnostics TESTS 14 529 2457600 1200
55816970 U__Square B June 20, 2019, 6:52 a.m. OK Clang++17 Diagnostics TESTS 14 748 21196800 1200
55853530 jiangly B June 21, 2019, 5:44 a.m. OK Clang++17 Diagnostics TESTS 14 1996 91750400 1200
57944942 ahmat B July 29, 2019, 1:58 p.m. OK D TESTS 14 139 22118400 1200
63356026 Mike4235 B Oct. 25, 2019, 2:40 a.m. OK FPC TESTS 14 420 15769600 1200
63222519 Aftery142 B Oct. 23, 2019, 8:18 a.m. OK FPC TESTS 14 436 5734400 1200
57474800 romanporsh B July 21, 2019, 8:35 p.m. OK FPC TESTS 14 670 72908800 1200
57630542 sansen B July 24, 2019, 8:35 a.m. OK GNU C11 TESTS 14 77 2048000 1200
67034517 MrProfessional B Dec. 16, 2019, 4:56 p.m. OK GNU C11 TESTS 14 78 11980800 1200
56515276 luciferkingofthehell B July 4, 2019, 12:25 p.m. OK GNU C11 TESTS 14 327 2048000 1200
56044157 arjunmann73 B June 25, 2019, 3:45 p.m. OK GNU C11 TESTS 14 342 1945600 1200
56515354 luciferkingofthehell B July 4, 2019, 12:27 p.m. OK GNU C11 TESTS 14 343 2048000 1200
67137649 Mohammadhosseini B Dec. 18, 2019, 5:12 a.m. OK GNU C11 TESTS 14 343 2048000 1200
55815636 Kurogami B June 20, 2019, 6:20 a.m. OK GNU C11 TESTS 14 343 2355200 1200
57764212 tiwari.rahul1998 B July 25, 2019, 7:23 p.m. OK GNU C11 TESTS 14 358 1945600 1200
55823416 Farhan__Sakib B June 20, 2019, 9:38 a.m. OK GNU C11 TESTS 14 358 1945600 1200
65820367 Euphonium B Nov. 27, 2019, 10:11 a.m. OK GNU C11 TESTS 14 358 1945600 1200
55820095 ztc. B June 20, 2019, 8:09 a.m. OK GNU C++11 TESTS 14 31 819200 1200
56675322 Moon201 B July 7, 2019, 3:11 p.m. OK GNU C++11 TESTS 14 31 1843200 1200
55829278 QAQAutoMaton B June 20, 2019, 12:23 p.m. OK GNU C++11 TESTS 14 31 6246400 1200
56672547 haomie B July 7, 2019, 1:48 p.m. OK GNU C++11 TESTS 14 46 1024000 1200
69196251 LeThanhLong582000 B Jan. 20, 2020, 3:01 p.m. OK GNU C++11 TESTS 14 46 1843200 1200
57133186 vjudge4 B July 16, 2019, 7:55 a.m. OK GNU C++11 TESTS 14 46 1843200 1200
55846601 Frame233 B June 20, 2019, 10:06 p.m. OK GNU C++11 TESTS 14 46 1843200 1200
55831619 Frame233 B June 20, 2019, 1:25 p.m. OK GNU C++11 TESTS 14 46 1843200 1200
57134366 vjudge1 B July 16, 2019, 8:21 a.m. OK GNU C++11 TESTS 14 46 2048000 1200
55852611 AcmerCy B June 21, 2019, 5:03 a.m. OK GNU C++11 TESTS 14 46 2048000 1200
66009492 vjudge4 B Nov. 30, 2019, 1:25 a.m. OK GNU C++14 TESTS 14 31 1945600 1200
66009483 CSTS B Nov. 30, 2019, 1:25 a.m. OK GNU C++14 TESTS 14 46 1945600 1200
60712380 Scut82 B Sept. 17, 2019, 9 a.m. OK GNU C++14 TESTS 14 46 2048000 1200
56191499 nguyenledinh B June 28, 2019, 7:51 a.m. OK GNU C++14 TESTS 14 46 2048000 1200
55855300 mark_12345 B June 21, 2019, 6:40 a.m. OK GNU C++14 TESTS 14 46 2048000 1200
56225986 Gokohan B June 28, 2019, 12:22 p.m. OK GNU C++14 TESTS 14 46 2662400 1200
59505244 LucSac B Aug. 26, 2019, 5:43 a.m. OK GNU C++14 TESTS 14 46 2662400 1200
66239811 sgaurav411 B Dec. 3, 2019, 5:38 p.m. OK GNU C++14 TESTS 14 46 2662400 1200
56063454 KyRillos_BoshRa B June 26, 2019, 6:44 a.m. OK GNU C++14 TESTS 14 46 2662400 1200
58912630 MuhammedAbdalla B Aug. 16, 2019, 1:40 p.m. OK GNU C++14 TESTS 14 46 2662400 1200
56175793 lesskreker B June 27, 2019, 7:03 p.m. OK GNU C++17 TESTS 14 31 5017600 1200
65952554 zzulillh B Nov. 29, 2019, 11:28 a.m. OK GNU C++17 TESTS 14 46 1945600 1200
57448528 vjudge2 B July 21, 2019, 8:58 a.m. OK GNU C++17 TESTS 14 46 2048000 1200
58242628 thematrix233 B Aug. 4, 2019, 2:39 a.m. OK GNU C++17 TESTS 14 46 2048000 1200
57642028 M.Ars B July 24, 2019, 12:57 p.m. OK GNU C++17 TESTS 14 46 2048000 1200
57441438 pilipalapengpengca B July 21, 2019, 6:52 a.m. OK GNU C++17 TESTS 14 46 2048000 1200
57188373 vjudge3 B July 17, 2019, 9:31 a.m. OK GNU C++17 TESTS 14 46 2048000 1200
56848688 gaelim B July 11, 2019, 2:42 p.m. OK GNU C++17 TESTS 14 46 2048000 1200
56647300 sword9 B July 7, 2019, 7:12 a.m. OK GNU C++17 TESTS 14 46 2048000 1200
56275263 Bombers B June 29, 2019, 1:55 p.m. OK GNU C++17 TESTS 14 46 2048000 1200
55868011 filthycasual B June 21, 2019, 1:11 p.m. OK Go TESTS 14 156 4505600 1200
58473049 sighduck B Aug. 9, 2019, 1:39 a.m. OK Go TESTS 14 342 94208000 1200
56213300 suryanshv23 B June 28, 2019, 9:34 a.m. OK Go TESTS 14 514 29184000 1200
56003467 bouncypi B June 24, 2019, 2:13 p.m. OK Haskell TESTS 14 139 44134400 1200
56133883 Hasker B June 26, 2019, 8:19 p.m. OK Haskell TESTS 14 171 68300800 1200
55843250 Black_Fregat B June 20, 2019, 7:22 p.m. OK Haskell TESTS 14 295 29491200 1200
55832598 BitShot B June 20, 2019, 1:51 p.m. OK Java 8 TESTS 14 124 0 1200
58545705 AhmadEyad B Aug. 10, 2019, 4:31 p.m. OK Java 8 TESTS 14 124 2150400 1200
56525221 adeepgarg13 B July 4, 2019, 4:50 p.m. OK Java 8 TESTS 14 124 14438400 1200
58505043 LAKOUAM_IMAD B Aug. 9, 2019, 4:02 p.m. OK Java 8 TESTS 14 139 0 1200
56017339 mbfeci B June 24, 2019, 10:34 p.m. OK Java 8 TESTS 14 139 0 1200
55833726 perDAYTwo_A B June 20, 2019, 2:21 p.m. OK Java 8 TESTS 14 139 0 1200
55905371 Jehm B June 21, 2019, 9:07 p.m. OK Java 8 TESTS 14 140 0 1200
55814762 Lovinix B June 20, 2019, 5:55 a.m. OK Java 8 TESTS 14 140 0 1200
68096404 Xylenox B Jan. 2, 2020, 9:08 p.m. OK Java 8 TESTS 14 140 2969600 1200
56973681 AmmarKayaliite B July 13, 2019, 11:21 a.m. OK Java 8 TESTS 14 155 0 1200
55823193 ______nati_bosto______ B June 20, 2019, 9:33 a.m. OK JavaScript TESTS 14 560 58675200 1200
59372007 david_varela B Aug. 23, 2019, 7:32 p.m. OK Kotlin TESTS 14 326 1331200 1200
56169475 Spheniscine B June 27, 2019, 3:48 p.m. OK Kotlin TESTS 14 374 1740800 1200
56169861 Spheniscine B June 27, 2019, 3:59 p.m. OK Kotlin TESTS 14 405 1740800 1200
56858153 MattM B July 11, 2019, 7:48 p.m. OK Kotlin TESTS 14 935 921600 1200
55848988 mendel_vv B June 21, 2019, 1:37 a.m. OK Kotlin TESTS 14 967 1945600 1200
56449730 dzharvis B July 2, 2019, 9:07 p.m. OK Kotlin TESTS 14 997 59801600 1200
56025370 Spheniscine B June 25, 2019, 6:38 a.m. OK Kotlin TESTS 14 1029 1228800 1200
56025108 Spheniscine B June 25, 2019, 6:31 a.m. OK Kotlin TESTS 14 1107 187596800 1200
55837296 og.kostya B June 20, 2019, 4:01 p.m. OK Mono C# TESTS 14 62 7065600 1200
55989437 treasuryonly B June 24, 2019, 6:43 a.m. OK Mono C# TESTS 14 92 7065600 1200
55922401 svobodiannikov B June 22, 2019, 7:58 a.m. OK Mono C# TESTS 14 373 7065600 1200
56596545 zazak B July 5, 2019, 7:49 p.m. OK Mono C# TESTS 14 389 7065600 1200
56714223 ansergeyg B July 8, 2019, 1:56 p.m. OK Mono C# TESTS 14 389 7065600 1200
55969385 ahmedabdalmageed B June 23, 2019, 1:54 p.m. OK Mono C# TESTS 14 390 7577600 1200
56074938 kaifonaft B June 26, 2019, 12:22 p.m. OK Mono C# TESTS 14 390 31436800 1200
56717144 ansergeyg B July 8, 2019, 3:07 p.m. OK Mono C# TESTS 14 404 31334400 1200
62358933 nadilk B Oct. 11, 2019, 11:50 a.m. OK Mono C# TESTS 14 405 7065600 1200
55922396 MAKARonin B June 22, 2019, 7:58 a.m. OK Mono C# TESTS 14 405 23244800 1200
66546035 vjudge1 B Dec. 9, 2019, 1:14 p.m. OK MS C++ TESTS 14 46 2048000 1200
66546036 vjudge2 B Dec. 9, 2019, 1:15 p.m. OK MS C++ TESTS 14 46 2048000 1200
65889337 vjudge1 B Nov. 28, 2019, 2:12 a.m. OK MS C++ TESTS 14 46 2048000 1200
56374025 S.K B July 1, 2019, 5:39 a.m. OK MS C++ TESTS 14 46 2048000 1200
55935284 mxhmxhmxh B June 22, 2019, 1:39 p.m. OK MS C++ TESTS 14 46 2048000 1200
57184874 vjudge2 B July 17, 2019, 8:23 a.m. OK MS C++ TESTS 14 61 2048000 1200
57228047 vjudge3 B July 17, 2019, 3:48 p.m. OK MS C++ TESTS 14 62 2048000 1200
56868086 vjudge5 B July 12, 2019, 4:44 a.m. OK MS C++ TESTS 14 62 2048000 1200
57453077 vjudge4 B July 21, 2019, 10:28 a.m. OK MS C++ TESTS 14 62 2048000 1200
65889409 vjudge1 B Nov. 28, 2019, 2:15 a.m. OK MS C++ TESTS 14 62 2150400 1200
60662555 pichulia B Sept. 16, 2019, 5:58 a.m. OK MS C++ 2017 TESTS 14 93 2048000 1200
61696101 vjudge1 B Oct. 2, 2019, 7:01 a.m. OK MS C++ 2017 TESTS 14 93 2048000 1200
56742159 xsc B July 9, 2019, 8:10 a.m. OK MS C++ 2017 TESTS 14 93 3072000 1200
56813409 Still_Theory B July 10, 2019, 5:36 p.m. OK MS C++ 2017 TESTS 14 93 3072000 1200
57114298 sladkayaKlubnichka B July 15, 2019, 7:05 p.m. OK MS C++ 2017 TESTS 14 93 3072000 1200
56512893 eyesofgod123 B July 4, 2019, 11:19 a.m. OK MS C++ 2017 TESTS 14 93 3072000 1200
69460901 suun B Jan. 24, 2020, 10:44 a.m. OK MS C++ 2017 TESTS 14 93 3584000 1200
58103509 suancaiyu B Aug. 1, 2019, 2:39 a.m. OK MS C++ 2017 TESTS 14 108 3072000 1200
56754568 Ta1lin B July 9, 2019, 1:20 p.m. OK MS C++ 2017 TESTS 14 108 5120000 1200
55844992 re_eVVorld B June 20, 2019, 8:34 p.m. OK MS C++ 2017 TESTS 14 171 25292800 1200
56125623 filthycasual B June 26, 2019, 4:59 p.m. OK Node.js TESTS 14 936 37376000 1200
60055369 citizen11 B Sept. 5, 2019, 3:44 a.m. OK Node.js TESTS 14 1076 80793600 1200
56456015 031341403 B July 3, 2019, 3:54 a.m. OK Node.js TESTS 14 1263 36044800 1200
56455956 031341403 B July 3, 2019, 3:51 a.m. OK Node.js TESTS 14 1278 35328000 1200
56178905 mayakin B June 27, 2019, 9:10 p.m. OK PHP TESTS 14 670 125644800 1200
55841402 shanu_im B June 20, 2019, 6:13 p.m. OK PyPy 2 TESTS 14 483 110489600 1200
56526628 oskarl B July 4, 2019, 5:26 p.m. OK PyPy 2 TESTS 14 1419 7270400 1200
55812339 arman.t B June 20, 2019, 4:35 a.m. OK PyPy 2 TESTS 14 1466 21401600 1200
58525580 vjudge4 B Aug. 10, 2019, 6:57 a.m. OK PyPy 2 TESTS 14 2120 7270400 1200
61024340 petabyte0 B Sept. 21, 2019, 3:33 p.m. OK PyPy 2 TESTS 14 2183 7782400 1200
55820575 jolt.tks B June 20, 2019, 8:22 a.m. OK PyPy 2 TESTS 14 2183 8396800 1200
57101007 tchr B July 15, 2019, 1:46 p.m. OK PyPy 3 TESTS 14 373 9830400 1200
55841104 b_hus_ha_n B June 20, 2019, 6:03 p.m. OK PyPy 3 TESTS 14 374 9830400 1200
55840607 b_hus_ha_n B June 20, 2019, 5:47 p.m. OK PyPy 3 TESTS 14 374 9830400 1200
55840937 b_hus_ha_n B June 20, 2019, 5:58 p.m. OK PyPy 3 TESTS 14 389 9830400 1200
57080719 b_hus_ha_n B July 15, 2019, 7:08 a.m. OK PyPy 3 TESTS 14 389 9830400 1200
55839886 b_hus_ha_n B June 20, 2019, 5:23 p.m. OK PyPy 3 TESTS 14 404 9830400 1200
55856361 toxzi B June 21, 2019, 7:11 a.m. OK PyPy 3 TESTS 14 405 10342400 1200
55856160 toxzi B June 21, 2019, 7:06 a.m. OK PyPy 3 TESTS 14 436 9830400 1200
56175361 ParsaBahrami B June 27, 2019, 6:48 p.m. OK PyPy 3 TESTS 14 452 11059200 1200
55856081 toxzi B June 21, 2019, 7:04 a.m. OK PyPy 3 TESTS 14 499 10240000 1200
55812461 arman.t B June 20, 2019, 4:40 a.m. OK Python 2 TESTS 14 451 14643200 1200
55812380 arman.t B June 20, 2019, 4:36 a.m. OK Python 2 TESTS 14 467 14336000 1200
57552214 Helli.code B July 22, 2019, 5:58 p.m. OK Python 2 TESTS 14 577 18432000 1200
58181596 -Morass- B Aug. 2, 2019, 3:24 p.m. OK Python 2 TESTS 14 686 5017600 1200
58528898 vjudge4 B Aug. 10, 2019, 8:31 a.m. OK Python 2 TESTS 14 904 3584000 1200
56577577 Sharp_Eye B July 5, 2019, 3:54 p.m. OK Python 3 TESTS 14 748 4300800 1200
56278037 fatibahrami771998 B June 29, 2019, 3:17 p.m. OK Python 3 TESTS 14 764 9523200 1200
55856066 toxzi B June 21, 2019, 7:04 a.m. OK Python 3 TESTS 14 779 4300800 1200
56026895 365050244 B June 25, 2019, 7:22 a.m. OK Python 3 TESTS 14 795 4300800 1200
55856176 toxzi B June 21, 2019, 7:06 a.m. OK Python 3 TESTS 14 857 4300800 1200
55968744 Vovkaez B June 23, 2019, 1:33 p.m. OK Python 3 TESTS 14 889 13824000 1200
61883477 wattaihei B Oct. 5, 2019, 1:57 a.m. OK Python 3 TESTS 14 904 13107200 1200
56374983 iehn B July 1, 2019, 6:08 a.m. OK Python 3 TESTS 14 982 91750400 1200
55999577 RedGriffin B June 24, 2019, 12:22 p.m. OK Python 3 TESTS 14 1029 16998400 1200
57575330 mehanat B July 23, 2019, 6:48 a.m. OK Python 3 TESTS 14 1154 16486400 1200
56274718 Omar_Morsi B June 29, 2019, 1:41 p.m. OK Ruby TESTS 14 1824 217600000 1200
56274748 Omar_Morsi B June 29, 2019, 1:42 p.m. OK Ruby TESTS 14 1840 217600000 1200
56274595 Omar_Morsi B June 29, 2019, 1:38 p.m. OK Ruby TESTS 14 1856 221388800 1200
56274688 Omar_Morsi B June 29, 2019, 1:40 p.m. OK Ruby TESTS 14 1871 217497600 1200
56274094 Omar_Morsi B June 29, 2019, 1:24 p.m. OK Ruby TESTS 14 1887 213811200 1200
56274164 Omar_Morsi B June 29, 2019, 1:26 p.m. OK Ruby TESTS 14 1918 213708800 1200
56274228 Omar_Morsi B June 29, 2019, 1:27 p.m. OK Ruby TESTS 14 2012 224768000 1200
56102994 zimpha B June 26, 2019, 3:36 p.m. OK Rust TESTS 14 109 23142400 1200
55841066 yakamoto B June 20, 2019, 6:02 p.m. OK Scala TESTS 14 467 0 1200

remove filters

Back to search problems