Codeforces Round 479 (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
977 Codeforces Round 479 (Div. 3) FINISHED False 7200 211910124 May 6, 2018, 2:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 41094 ) B Two-gram PROGRAMMING implementation strings 900

B'Two-gram is an ordered pair (i.e. string of length two) of capital Latin letters. For example, "AZ", "AA", "ZA" -- three distinct two-grams. You are given a string s consisting of n capital Latin letters. Your task is to find any two-gram contained in the given string as a substring (i.e. two consecutive characters of the string) maximal number of times. For example, for string s = "BBAABBBA" the answer is two-gram "BB", which contained in s three times. In other words, find any most frequent two-gram. Note that occurrences of the two-gram can overlap with each other. The first line of the input contains integer number n ( 2 <= n <= 100 ) -- the length of string s . The second line of the input contains the string s consisting of n capital Latin letters. Print the only line containing exactly two capital Latin letters -- any two-gram contained in the given string s as a substring (i.e. two consecutive characters of the string) maximal number of times. In the first example "BA" is also valid answer. In the second example the only two-gram "ZZ" can be printed because it contained in the string "ZZZAA" two times. '...

Tutorials

Codeforces Round #479 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
56412445 shenqihao B July 2, 2019, 1:35 a.m. OK Clang++17 Diagnostics TESTS 22 46 1024000 900
60464658 Ghozlan B Sept. 13, 2019, 12:02 a.m. OK Clang++17 Diagnostics TESTS 22 46 1024000 900
52666598 Guaguapi B April 13, 2019, 5:04 a.m. OK Clang++17 Diagnostics TESTS 22 46 1228800 900
61808759 yorkdev123 B Oct. 4, 2019, 12:27 a.m. OK Clang++17 Diagnostics TESTS 22 46 6246400 900
66462432 kien05012006 B Dec. 7, 2019, 3:16 p.m. OK FPC TESTS 22 15 409600 900
61393151 BTS_is_Dogs B Sept. 27, 2019, 11:32 p.m. OK FPC TESTS 22 30 102400 900
68851312 baaloone B Jan. 15, 2020, 9:03 a.m. OK FPC TESTS 22 30 102400 900
54579050 luogu_bot3 B May 25, 2019, 3:01 a.m. OK FPC TESTS 22 30 102400 900
60194790 ghosthunterk B Sept. 7, 2019, 12:41 a.m. OK FPC TESTS 22 30 102400 900
68392737 duydec1 B Jan. 8, 2020, 9:26 a.m. OK FPC TESTS 22 31 102400 900
57936251 minhquaningenious B July 29, 2019, 10:52 a.m. OK FPC TESTS 22 31 102400 900
53496427 luogu_bot3 B April 29, 2019, 12:02 p.m. OK FPC TESTS 22 31 102400 900
52751246 ninjadoc0152 B April 14, 2019, 2:09 p.m. OK FPC TESTS 22 31 102400 900
58209820 darkkcyan B Aug. 3, 2019, 8:26 a.m. OK FPC TESTS 22 31 204800 900
68426497 romarioputra B Jan. 9, 2020, 3:49 a.m. OK GNU C11 TESTS 22 15 0 900
56047581 Iftekhar_Fahim_CoU12ICT9 B June 25, 2019, 5:22 p.m. OK GNU C11 TESTS 22 15 0 900
64897193 Aplycaebous B Nov. 14, 2019, 5:09 p.m. OK GNU C11 TESTS 22 15 0 900
68489170 TARIQ B Jan. 10, 2020, 11:03 a.m. OK GNU C11 TESTS 22 15 0 900
61769199 yiluong B Oct. 3, 2019, 9:36 a.m. OK GNU C11 TESTS 22 30 0 900
64648014 Ayyub_Abu_Muadh B Nov. 10, 2019, 3:51 p.m. OK GNU C11 TESTS 22 30 0 900
65054385 vjudge1 B Nov. 15, 2019, 2:32 p.m. OK GNU C11 TESTS 22 30 0 900
65258282 SomonindroRoy B Nov. 17, 2019, 2:09 p.m. OK GNU C11 TESTS 22 30 0 900
69299293 shreyashbapodia B Jan. 22, 2020, 1:18 p.m. OK GNU C11 TESTS 22 30 0 900
69427746 exitkhan B Jan. 23, 2020, 4:20 p.m. OK GNU C11 TESTS 22 30 0 900
53051310 Buddhashadow B April 20, 2019, 2:45 p.m. OK GNU C++11 TESTS 22 15 0 900
53305928 MiguelAngel B April 26, 2019, 3:10 a.m. OK GNU C++11 TESTS 22 15 0 900
53786222 Sher-Locked B May 5, 2019, 10:13 a.m. OK GNU C++11 TESTS 22 15 0 900
55176760 ahmad_104442 B June 5, 2019, 7:04 p.m. OK GNU C++11 TESTS 22 15 0 900
60207406 ldcduc2019 B Sept. 7, 2019, 8:44 a.m. OK GNU C++11 TESTS 22 15 0 900
60757127 luogu_bot5 B Sept. 18, 2019, 9:27 a.m. OK GNU C++11 TESTS 22 15 0 900
65023864 lizzzzzzzzzz B Nov. 15, 2019, 6:40 a.m. OK GNU C++11 TESTS 22 15 0 900
67401971 Esteban B Dec. 22, 2019, 4:27 a.m. OK GNU C++11 TESTS 22 15 0 900
68570171 vjudge3 B Jan. 11, 2020, 1:35 a.m. OK GNU C++11 TESTS 22 15 0 900
69187047 luogu_bot2 B Jan. 20, 2020, 12:18 p.m. OK GNU C++11 TESTS 22 15 0 900
65498849 Nabil28 B Nov. 21, 2019, 5:50 p.m. OK GNU C++14 TESTS 22 15 0 900
69290162 vjudge4 B Jan. 22, 2020, 9:54 a.m. OK GNU C++14 TESTS 22 15 0 900
69290149 KaziMuktadir B Jan. 22, 2020, 9:54 a.m. OK GNU C++14 TESTS 22 15 0 900
69284385 sohankumarparida B Jan. 22, 2020, 7:29 a.m. OK GNU C++14 TESTS 22 15 0 900
69230603 Mogatacho B Jan. 21, 2020, 9:19 a.m. OK GNU C++14 TESTS 22 15 0 900
66792808 Half-Blo0d_Prince B Dec. 13, 2019, 3:54 p.m. OK GNU C++14 TESTS 22 15 0 900
66253800 iwriaw B Dec. 4, 2019, 4:33 a.m. OK GNU C++14 TESTS 22 15 0 900
65481353 NaderAngeLo B Nov. 21, 2019, 11:46 a.m. OK GNU C++14 TESTS 22 15 0 900
65302185 justmaster B Nov. 18, 2019, 1:38 p.m. OK GNU C++14 TESTS 22 15 0 900
65152222 924735361 B Nov. 16, 2019, 7:59 a.m. OK GNU C++14 TESTS 22 15 0 900
68234609 back_time B Jan. 5, 2020, 10:28 a.m. OK GNU C++17 TESTS 22 15 0 900
68488322 vjudge2 B Jan. 10, 2020, 10:42 a.m. OK GNU C++17 TESTS 22 15 0 900
68492497 Aman_j1 B Jan. 10, 2020, 12:13 p.m. OK GNU C++17 TESTS 22 15 0 900
68754150 vjudge2 B Jan. 14, 2020, 7:43 a.m. OK GNU C++17 TESTS 22 15 0 900
68874240 vjudge4 B Jan. 15, 2020, 4:20 p.m. OK GNU C++17 TESTS 22 15 0 900
68967684 vjudge2 B Jan. 17, 2020, 5:45 a.m. OK GNU C++17 TESTS 22 15 0 900
69292527 vjudge1 B Jan. 22, 2020, 10:53 a.m. OK GNU C++17 TESTS 22 15 0 900
69443492 FatmaaGamaal B Jan. 24, 2020, 12:20 a.m. OK GNU C++17 TESTS 22 15 0 900
69495629 joaovitor01 B Jan. 25, 2020, 3:42 a.m. OK GNU C++17 TESTS 22 15 0 900
69501324 redwanalirafi B Jan. 25, 2020, 6:41 a.m. OK GNU C++17 TESTS 22 15 0 900
68344736 ktateish B Jan. 7, 2020, 6:31 a.m. OK Go TESTS 22 31 0 900
67993253 pain_nagato B Dec. 31, 2019, 6:30 a.m. OK Go TESTS 22 31 0 900
67248985 xmq5513 B Dec. 19, 2019, 6:17 p.m. OK Go TESTS 22 46 0 900
60500474 jegfault B Sept. 13, 2019, 6:25 p.m. OK Haskell TESTS 22 31 102400 900
57454343 jmazon B July 21, 2019, 10:59 a.m. OK Haskell TESTS 22 46 102400 900
68479161 Vatsal53 B Jan. 10, 2020, 7 a.m. OK Java 11 TESTS 22 187 0 900
67675062 ColdAtom B Dec. 27, 2019, 12:24 a.m. OK Java 11 TESTS 22 187 0 900
66990254 svaibhav407 B Dec. 15, 2019, 7:59 p.m. OK Java 11 TESTS 22 187 0 900
69519151 am_tech B Jan. 25, 2020, 12:55 p.m. OK Java 11 TESTS 22 202 0 900
64097671 pizzaEater B Nov. 2, 2019, 2:24 p.m. OK Java 11 TESTS 22 202 0 900
63624507 Clowyy B Oct. 28, 2019, 2:31 a.m. OK Java 11 TESTS 22 202 0 900
69493957 luchy0120 B Jan. 25, 2020, 1:49 a.m. OK Java 8 TESTS 22 108 0 900
68841698 NitinRamnani B Jan. 15, 2020, 6:01 a.m. OK Java 8 TESTS 22 108 0 900
61173667 Hoctopus B Sept. 23, 2019, 5:04 p.m. OK Java 8 TESTS 22 108 0 900
60717056 apoorvb3439 B Sept. 17, 2019, 11:04 a.m. OK Java 8 TESTS 22 108 0 900
59868753 AmmarKayaliite B Sept. 1, 2019, 6:19 p.m. OK Java 8 TESTS 22 108 0 900
58130719 BerserkVl B Aug. 1, 2019, 2:11 p.m. OK Java 8 TESTS 22 108 0 900
55382207 ZMaaraki B June 9, 2019, 9:52 p.m. OK Java 8 TESTS 22 108 0 900
54953729 Jetch B June 1, 2019, 8:49 p.m. OK Java 8 TESTS 22 108 0 900
68432897 supriya14 B Jan. 9, 2020, 7:41 a.m. OK Java 8 TESTS 22 109 0 900
66895186 fundamentals B Dec. 15, 2019, 12:51 a.m. OK Java 8 TESTS 22 109 0 900
68843756 NitinRamnani B Jan. 15, 2020, 6:42 a.m. OK JavaScript TESTS 22 31 0 900
53240573 viktor.rusanov B April 24, 2019, 3:25 p.m. OK JavaScript TESTS 22 31 0 900
52644373 ziimir B April 12, 2019, 1:51 p.m. OK JavaScript TESTS 22 31 0 900
68868166 NitinRamnani B Jan. 15, 2020, 2:15 p.m. OK JavaScript TESTS 22 46 0 900
68867994 NitinRamnani B Jan. 15, 2020, 2:11 p.m. OK JavaScript TESTS 22 46 0 900
68843987 NitinRamnani B Jan. 15, 2020, 6:47 a.m. OK JavaScript TESTS 22 46 0 900
68863404 abdurauf1997 B Jan. 15, 2020, 12:49 p.m. OK Kotlin TESTS 22 139 0 900
60222406 gultai4ukr B Sept. 7, 2019, 2:07 p.m. OK Kotlin TESTS 22 139 0 900
63847061 thavlek B Oct. 30, 2019, 3:05 p.m. OK Kotlin TESTS 22 140 0 900
69481107 h__h B Jan. 24, 2020, 5:47 p.m. OK Kotlin TESTS 22 140 0 900
58659723 MeHdi.KaZemI8 B Aug. 12, 2019, 10:28 a.m. OK Kotlin TESTS 22 140 0 900
58110528 akhmadov.navruzjon B Aug. 1, 2019, 6:56 a.m. OK Kotlin TESTS 22 155 409600 900
56287412 ds88 B June 29, 2019, 8:35 p.m. OK Mono C# TESTS 22 46 0 900
63398626 Jopidia B Oct. 25, 2019, 5:30 p.m. OK Mono C# TESTS 22 46 0 900
55202141 abd_alrhman_ B June 6, 2019, 11:02 a.m. OK Mono C# TESTS 22 61 0 900
61703698 Zaheed B Oct. 2, 2019, 9:22 a.m. OK Mono C# TESTS 22 61 0 900
55932343 jose31309 B June 22, 2019, 12:05 p.m. OK Mono C# TESTS 22 61 0 900
53598882 maxsrjrjy B May 1, 2019, 6:25 a.m. OK Mono C# TESTS 22 62 0 900
63653625 hibatibati B Oct. 28, 2019, 12:05 p.m. OK Mono C# TESTS 22 62 1536000 900
56994142 Giangvp B July 13, 2019, 8:28 p.m. OK Mono C# TESTS 22 62 3584000 900
65492461 boookva B Nov. 21, 2019, 3:14 p.m. OK Mono C# TESTS 22 62 3584000 900
56287234 ds88 B June 29, 2019, 8:27 p.m. OK Mono C# TESTS 22 77 3686400 900
56678732 VazFlavio B July 7, 2019, 4:59 p.m. OK MS C++ TESTS 22 15 0 900
54339026 vjudge1 B May 18, 2019, 9:28 a.m. OK MS C++ TESTS 22 15 0 900
58568074 vjudge5 B Aug. 11, 2019, 8:50 a.m. OK MS C++ TESTS 22 15 0 900
68489683 vjudge4 B Jan. 10, 2020, 11:14 a.m. OK MS C++ TESTS 22 15 0 900
67506429 vjudge5 B Dec. 24, 2019, 7:28 a.m. OK MS C++ TESTS 22 15 0 900
57824404 vjudge4 B July 27, 2019, 2:05 a.m. OK MS C++ TESTS 22 15 0 900
54384579 vjudge5 B May 19, 2019, 12:38 p.m. OK MS C++ TESTS 22 15 0 900
54370625 vjudge5 B May 19, 2019, 6:24 a.m. OK MS C++ TESTS 22 15 102400 900
69650368 vjudge2 B Jan. 28, 2020, 4:49 a.m. OK MS C++ TESTS 22 30 0 900
69293176 vjudge2 B Jan. 22, 2020, 11:09 a.m. OK MS C++ TESTS 22 30 0 900
68687245 vjudge2 B Jan. 13, 2020, 4:13 a.m. OK MS C++ 2017 TESTS 22 15 0 900
52314133 Onlykarting B April 4, 2019, 4:08 p.m. OK MS C++ 2017 TESTS 22 30 0 900
54759537 buyolitsez B May 28, 2019, 3:31 p.m. OK MS C++ 2017 TESTS 22 30 0 900
58337407 vjudge5 B Aug. 5, 2019, 11:59 a.m. OK MS C++ 2017 TESTS 22 30 0 900
68707269 vjudge2 B Jan. 13, 2020, 11:47 a.m. OK MS C++ 2017 TESTS 22 31 0 900
68910488 vjudge1 B Jan. 16, 2020, 7:34 a.m. OK MS C++ 2017 TESTS 22 31 0 900
68762777 vjudge1 B Jan. 14, 2020, 8:48 a.m. OK MS C++ 2017 TESTS 22 31 0 900
68589545 vjudge4 B Jan. 11, 2020, 12:16 p.m. OK MS C++ 2017 TESTS 22 31 0 900
68573662 vjudge4 B Jan. 11, 2020, 3:52 a.m. OK MS C++ 2017 TESTS 22 31 0 900
68489456 hxj B Jan. 10, 2020, 11:09 a.m. OK MS C++ 2017 TESTS 22 31 0 900
69152279 adrianapineda B Jan. 19, 2020, 6:02 p.m. OK Node.js TESTS 22 155 204800 900
61210015 shivam1420 B Sept. 24, 2019, 11:11 a.m. OK Node.js TESTS 22 155 204800 900
52640134 Reyvart B April 12, 2019, 12:06 p.m. OK Node.js TESTS 22 155 409600 900
63196948 mbardauskas B Oct. 22, 2019, 6:56 p.m. OK Node.js TESTS 22 155 512000 900
69151311 adrianapineda B Jan. 19, 2020, 5:44 p.m. OK Node.js TESTS 22 156 204800 900
69152319 adrianapineda B Jan. 19, 2020, 6:03 p.m. OK Node.js TESTS 22 156 307200 900
69152348 adrianapineda B Jan. 19, 2020, 6:03 p.m. OK Node.js TESTS 22 156 409600 900
69152012 adrianapineda B Jan. 19, 2020, 5:57 p.m. OK Node.js TESTS 22 156 409600 900
69151662 adrianapineda B Jan. 19, 2020, 5:50 p.m. OK Node.js TESTS 22 156 409600 900
69152404 adrianapineda B Jan. 19, 2020, 6:04 p.m. OK Node.js TESTS 22 170 409600 900
56167290 Gimber B June 27, 2019, 2:50 p.m. OK PascalABC.NET TESTS 22 171 0 900
69379620 Nidavellir B Jan. 22, 2020, 7:15 p.m. OK PascalABC.NET TESTS 22 296 102400 900
52450404 Daniilkozyrev B April 7, 2019, 9:30 a.m. OK PascalABC.NET TESTS 22 296 614400 900
55802526 byb0nd B June 19, 2019, 7:49 p.m. OK PascalABC.NET TESTS 22 311 0 900
65735535 Abdyrahym.A B Nov. 26, 2019, 7:36 a.m. OK PascalABC.NET TESTS 22 327 102400 900
56747434 giorgi_giunashvili B July 9, 2019, 10:26 a.m. OK PHP TESTS 22 31 0 900
60196940 angoncal B Sept. 7, 2019, 2:28 a.m. OK PyPy 2 TESTS 22 155 0 900
55929355 raj1307 B June 22, 2019, 10:44 a.m. OK PyPy 2 TESTS 22 156 1638400 900
63122498 transfusion B Oct. 22, 2019, 11:47 a.m. OK PyPy 3 TESTS 22 124 0 900
62332090 Code_Breaker B Oct. 10, 2019, 9:24 p.m. OK PyPy 3 TESTS 22 124 0 900
57597869 diduk001 B July 23, 2019, 2:37 p.m. OK PyPy 3 TESTS 22 124 0 900
52240817 vjudge1 B April 2, 2019, 3:47 p.m. OK PyPy 3 TESTS 22 124 0 900
52234669 vjudge1 B April 2, 2019, 1:18 p.m. OK PyPy 3 TESTS 22 124 0 900
52231737 vjudge5 B April 2, 2019, 12:09 p.m. OK PyPy 3 TESTS 22 124 0 900
62766380 deadguy kbagoli1999 B Oct. 17, 2019, 8:47 a.m. OK PyPy 3 TESTS 22 124 1228800 900
57268533 n000 B July 18, 2019, 8:04 a.m. OK PyPy 3 TESTS 22 124 1228800 900
52240820 vjudge4 B April 2, 2019, 3:48 p.m. OK PyPy 3 TESTS 22 139 0 900
69226950 mth1908 B Jan. 21, 2020, 7:41 a.m. OK PyPy 3 TESTS 22 139 0 900
56154762 swetank B June 27, 2019, 9:41 a.m. OK Python 2 TESTS 22 171 0 900
53216481 bsr011 B April 24, 2019, 9:06 a.m. OK Python 2 TESTS 22 171 0 900
52504054 vjudge1 B April 8, 2019, 5:38 p.m. OK Python 2 TESTS 22 171 0 900
67299606 out0fbounds B Dec. 20, 2019, 6:11 p.m. OK Python 2 TESTS 22 187 0 900
54509681 Aidos B May 23, 2019, 6:24 a.m. OK Python 3 TESTS 22 93 0 900
54312829 lehonghai104 B May 17, 2019, 5:28 p.m. OK Python 3 TESTS 22 93 0 900
52510434 codeurway_codeforces B April 8, 2019, 10:11 p.m. OK Python 3 TESTS 22 93 0 900
52281495 vjudge3 B April 3, 2019, 5:17 p.m. OK Python 3 TESTS 22 93 0 900
68143034 vjudge4 B Jan. 4, 2020, 1:19 a.m. OK Python 3 TESTS 22 108 0 900
67767673 gajrajgchouhan B Dec. 28, 2019, 5:06 a.m. OK Python 3 TESTS 22 108 0 900
58981629 _viru_ B Aug. 18, 2019, 4:45 a.m. OK Python 3 TESTS 22 108 0 900
56678522 Danylo99 B July 7, 2019, 4:51 p.m. OK Python 3 TESTS 22 108 0 900
55646342 chiragsoni812 B June 16, 2019, 12:26 p.m. OK Python 3 TESTS 22 108 0 900
54539409 __Enigma__ B May 23, 2019, 11:07 p.m. OK Python 3 TESTS 22 108 0 900
69165318 fshuto B Jan. 20, 2020, 3:19 a.m. OK Ruby TESTS 22 93 0 900
55714399 tuna_salad B June 18, 2019, 11:57 a.m. OK Rust TESTS 22 30 0 900
55717791 tuna_salad B June 18, 2019, 1:38 p.m. OK Rust TESTS 22 31 0 900
58798799 hir12111 B Aug. 14, 2019, 6:50 a.m. OK Rust TESTS 22 31 102400 900

remove filters

Back to search problems