Codeforces Round 482 (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
979 Codeforces Round 482 (Div. 2) FINISHED False 7200 211217124 May 14, 2018, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4459 ) B Treasure Hunt PROGRAMMING greedy 1800

B"After the big birthday party, Katie still wanted Shiro to have some more fun. Later, she came up with a game called treasure hunt. Of course, she invited her best friends Kuro and Shiro to play with her. The three friends are very smart so they passed all the challenges very quickly and finally reached the destination. But the treasure can only belong to one cat so they started to think of something which can determine who is worthy of the treasure. Instantly, Kuro came up with some ribbons. A random colorful ribbon is given to each of the cats. Each color of the ribbon can be represented as an uppercase or lowercase Latin letter. Let's call a consecutive subsequence of colors that appears in the ribbon a subribbon. The beauty of a ribbon is defined as the maximum number of times one of its subribbon appears in the ribbon. The more the subribbon appears, the more beautiful is the ribbon. For example, the ribbon aaaaaaa has the beauty of 7 because its subribbon a appears 7 times, and the ribbon abcdabc has the beauty of 2 because its subribbon abc appears twice. The rules are simple. The game will have n turns. Every turn, each of the cats must change strictly one color (at one position) in his/her ribbon to an arbitrary color which is different from the unchanged one. For example, a ribbon aaab can be changed into acab in one turn. The one having the most beautiful ribbon after n turns wins the treasure. Could you find out who is going to be the winner if they all play optimally? The first line contains an integer n ( 0 <= q n <= q 10^{9} ) -- the number of turns. Next 3 lines contain 3 ribbons of Kuro, Shiro and Katie one per line, respectively. Each ribbon is a string which contains no more than 10^{5} uppercase and lowercase Latin letters and is not empty. It is guaranteed that the length of all ribbons are equal for the purpose of fairness. Note that uppercase and lowercase letters are considered differen"...

Tutorials

Codeforces Round #482 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
38323222 wolfris B May 16, 2018, 1:30 p.m. OK FPC TESTS 184 31 4198400 1800
38646334 renan.am B May 27, 2018, 3:25 a.m. OK GNU C TESTS 184 31 307200 1800
38239070 aniket.shrimal B May 14, 2018, 4:08 p.m. OK GNU C TESTS 184 31 3379200 1800
38253795 vladislav_k B May 15, 2018, 2:15 a.m. OK GNU C TESTS 184 31 3379200 1800
38254410 zz_zigzag B May 15, 2018, 2:56 a.m. OK GNU C TESTS 184 31 3481600 1800
38254162 sitara_lives B May 15, 2018, 2:41 a.m. OK GNU C TESTS 184 31 3584000 1800
38304910 dabonline B May 16, 2018, 12:25 a.m. OK GNU C TESTS 184 31 3584000 1800
38304611 Udders B May 15, 2018, 11:55 p.m. OK GNU C TESTS 184 31 3584000 1800
38336315 Udders B May 17, 2018, 2:31 a.m. OK GNU C TESTS 184 31 3686400 1800
38304982 Udders B May 16, 2018, 12:34 a.m. OK GNU C TESTS 184 31 3686400 1800
38248252 mahabir10 B May 14, 2018, 7:19 p.m. OK GNU C TESTS 184 31 3686400 1800
38352528 NecroFantasia B May 17, 2018, 2:39 p.m. OK GNU C++ TESTS 184 31 0 1800
38622239 vjudge1 B May 26, 2018, 3:55 a.m. OK GNU C++ TESTS 184 31 102400 1800
39205274 primy B June 13, 2018, 3:28 a.m. OK GNU C++ TESTS 184 31 102400 1800
38655698 vjudge3 B May 27, 2018, 12:55 p.m. OK GNU C++ TESTS 184 31 102400 1800
38622265 vjudge4 B May 26, 2018, 3:57 a.m. OK GNU C++ TESTS 184 31 102400 1800
38622022 vjudge5 B May 26, 2018, 3:37 a.m. OK GNU C++ TESTS 184 31 102400 1800
38622009 vjudge5 B May 26, 2018, 3:35 a.m. OK GNU C++ TESTS 184 31 102400 1800
38584655 vjudge2 B May 24, 2018, 11:31 a.m. OK GNU C++ TESTS 184 31 102400 1800
38584319 16110502142tx1604 B May 24, 2018, 11:19 a.m. OK GNU C++ TESTS 184 31 102400 1800
38548756 AmazingWang B May 23, 2018, 1:12 a.m. OK GNU C++ TESTS 184 31 102400 1800
43511112 Jose19397 B Sept. 27, 2018, 11:34 p.m. OK GNU C11 TESTS 184 31 102400 1800
39188766 C1ariS B June 12, 2018, 10:49 a.m. OK GNU C11 TESTS 184 31 512000 1800
38249180 sansen B May 14, 2018, 8:03 p.m. OK GNU C11 TESTS 184 31 3481600 1800
38258460 karam123 B May 15, 2018, 6:31 a.m. OK GNU C11 TESTS 184 31 3584000 1800
38483252 as2341567 B May 21, 2018, 12:32 p.m. OK GNU C++11 TESTS 184 31 0 1800
46437169 vjudge3 B Dec. 1, 2018, 9:51 a.m. OK GNU C++11 TESTS 184 31 0 1800
38349816 tpsoete B May 17, 2018, 1:07 p.m. OK GNU C++11 TESTS 184 31 0 1800
41530310 mochavic B Aug. 12, 2018, 2:08 p.m. OK GNU C++11 TESTS 184 31 0 1800
41528742 FlowerBlack B Aug. 12, 2018, 1:23 p.m. OK GNU C++11 TESTS 184 31 0 1800
38675655 jakeshen B May 27, 2018, 5:35 p.m. OK GNU C++11 TESTS 184 31 0 1800
51486957 vjudge1 B March 19, 2019, 1:56 p.m. OK GNU C++11 TESTS 184 31 102400 1800
67280023 vjudge2 B Dec. 20, 2019, 12:50 p.m. OK GNU C++11 TESTS 184 31 102400 1800
54512183 mmmod_lqs B May 23, 2019, 7:43 a.m. OK GNU C++11 TESTS 184 31 102400 1800
51682000 tanxi B March 22, 2019, 1:03 p.m. OK GNU C++11 TESTS 184 31 102400 1800
38248344 _no0B B May 14, 2018, 7:24 p.m. OK GNU C++14 TESTS 184 30 3481600 1800
38264439 lifesaver B May 15, 2018, 10:36 a.m. OK GNU C++14 TESTS 184 30 3993600 1800
38250133 endless B May 14, 2018, 8:54 p.m. OK GNU C++14 TESTS 184 30 3993600 1800
38309312 toothbrush B May 16, 2018, 5:25 a.m. OK GNU C++14 TESTS 184 30 3993600 1800
38251020 abdalrahmanatwah B May 14, 2018, 10:10 p.m. OK GNU C++14 TESTS 184 30 3993600 1800
39198729 quailty B June 12, 2018, 6:14 p.m. OK GNU C++14 TESTS 184 31 102400 1800
41080267 dreamaniac B Aug. 1, 2018, 11:25 a.m. OK GNU C++14 TESTS 184 31 102400 1800
40932212 ReaLNero1 B July 30, 2018, 1:39 a.m. OK GNU C++14 TESTS 184 31 102400 1800
59421736 HABAR310 B Aug. 24, 2019, 9:38 p.m. OK GNU C++14 TESTS 184 31 102400 1800
42138114 rianta9 B Aug. 27, 2018, 2:18 a.m. OK GNU C++14 TESTS 184 31 102400 1800
38465773 lys1280023 B May 20, 2018, 5:15 p.m. OK GNU C++17 TESTS 184 30 409600 1800
38256084 ty1234257 B May 15, 2018, 4:35 a.m. OK GNU C++17 TESTS 184 30 3993600 1800
38526965 hovees B May 22, 2018, 7:29 a.m. OK GNU C++17 TESTS 184 31 102400 1800
69951594 vjudge2 B Feb. 1, 2020, 9:05 a.m. OK GNU C++17 TESTS 184 31 102400 1800
60450895 xzt220 B Sept. 12, 2019, 3:54 p.m. OK GNU C++17 TESTS 184 31 102400 1800
53904319 Elegia B May 9, 2019, 11:57 a.m. OK GNU C++17 TESTS 184 31 102400 1800
49978407 lvao-x B Feb. 16, 2019, 7:09 a.m. OK GNU C++17 TESTS 184 31 102400 1800
49978223 lvao-x B Feb. 16, 2019, 7:03 a.m. OK GNU C++17 TESTS 184 31 102400 1800
69150085 yuhta B Jan. 19, 2020, 5:23 p.m. OK GNU C++17 TESTS 184 31 307200 1800
69705441 thtsshz_bgwrswh B Jan. 29, 2020, 4:16 a.m. OK GNU C++17 TESTS 184 31 307200 1800
38954869 Red4Ru B June 4, 2018, 8:51 p.m. OK Go TESTS 184 61 25702400 1800
38262486 guangfnian B May 15, 2018, 9:16 a.m. OK Go TESTS 184 78 42598400 1800
38264294 cheater2k B May 15, 2018, 10:30 a.m. OK Go TESTS 184 624 26624000 1800
39641741 Solix B June 25, 2018, 7:30 a.m. OK Go TESTS 184 670 2355200 1800
38255041 Jinx.Jinx.again B May 15, 2018, 3:30 a.m. OK Go TESTS 184 686 26624000 1800
38903748 burakov28 B June 2, 2018, 9:20 p.m. OK Haskell TESTS 184 78 59699200 1800
46857132 wadissimo B Dec. 10, 2018, 3:33 p.m. OK Java 8 TESTS 184 124 0 1800
68440247 chojh1222 B Jan. 9, 2020, 10:39 a.m. OK Java 8 TESTS 184 124 0 1800
63410373 ijxjdjd B Oct. 25, 2019, 11:32 p.m. OK Java 8 TESTS 184 124 0 1800
59633303 Heisen_Berg B Aug. 28, 2019, 7:13 p.m. OK Java 8 TESTS 184 124 0 1800
58514286 jenish9599 B Aug. 9, 2019, 9:24 p.m. OK Java 8 TESTS 184 124 0 1800
58188446 Harbin B Aug. 2, 2019, 6:14 p.m. OK Java 8 TESTS 184 124 0 1800
51908156 alibaba B March 27, 2019, 4:41 p.m. OK Java 8 TESTS 184 124 0 1800
50887444 AWCXV B March 6, 2019, 11:54 a.m. OK Java 8 TESTS 184 124 0 1800
45320343 KulikAlex B Nov. 5, 2018, 10:16 a.m. OK Java 8 TESTS 184 124 0 1800
56065011 gaidash B June 26, 2019, 7:29 a.m. OK Java 8 TESTS 184 139 0 1800
38237491 romanovma B May 14, 2018, 3:58 p.m. OK JavaScript TESTS 184 124 17203200 1800
38626271 0442A403 B May 26, 2018, 7:02 a.m. OK Kotlin TESTS 184 155 0 1800
38268911 z39 B May 15, 2018, 1:26 p.m. OK Kotlin TESTS 184 202 22528000 1800
39289271 dzhaba B June 16, 2018, 1:53 p.m. OK Mono C# TESTS 184 46 1228800 1800
38681187 dimtbd B May 27, 2018, 10:58 p.m. OK Mono C# TESTS 184 46 1331200 1800
38689658 dimtbd B May 28, 2018, 9:26 a.m. OK Mono C# TESTS 184 46 1331200 1800
38951962 Samyrai B June 4, 2018, 5:44 p.m. OK Mono C# TESTS 184 46 9113600 1800
38256685 og.kostya B May 15, 2018, 5:06 a.m. OK Mono C# TESTS 184 61 12800000 1800
38392888 QuantumKnight B May 18, 2018, 7:26 a.m. OK Mono C# TESTS 184 62 4812800 1800
38643022 zazak B May 26, 2018, 8:37 p.m. OK Mono C# TESTS 184 62 4812800 1800
38238756 vivek17geek B May 14, 2018, 4:06 p.m. OK Mono C# TESTS 184 62 9728000 1800
38383414 Anastasiya_Andreevna B May 17, 2018, 9:45 p.m. OK Mono C# TESTS 184 109 2764800 1800
56797792 vjudge3 B July 10, 2019, 1:11 p.m. OK MS C++ TESTS 184 31 102400 1800
61557630 vjudge2 B Sept. 30, 2019, 2:32 p.m. OK MS C++ TESTS 184 31 307200 1800
40529541 vjudge5 B July 19, 2018, 1:39 a.m. OK MS C++ TESTS 184 31 307200 1800
39140960 MenOfPassion B June 11, 2018, 8:30 a.m. OK MS C++ TESTS 184 31 307200 1800
38694844 vjudge4 B May 28, 2018, 1:03 p.m. OK MS C++ TESTS 184 31 307200 1800
38693708 vjudge5 B May 28, 2018, 12:18 p.m. OK MS C++ TESTS 184 31 307200 1800
38693456 vjudge4 B May 28, 2018, 12:07 p.m. OK MS C++ TESTS 184 31 307200 1800
38597729 olpetOdessaONU B May 24, 2018, 11:02 p.m. OK MS C++ TESTS 184 31 307200 1800
39140923 MenOfPassion B June 11, 2018, 8:27 a.m. OK MS C++ TESTS 184 31 512000 1800
39449201 j4357j B June 21, 2018, 2:18 a.m. OK MS C++ TESTS 184 31 512000 1800
66552283 CtrlAlt B Dec. 9, 2019, 3:22 p.m. OK MS C++ 2017 TESTS 184 46 307200 1800
67377830 meanman B Dec. 21, 2019, 3:31 p.m. OK MS C++ 2017 TESTS 184 46 716800 1800
38708280 secondwtq B May 29, 2018, 3:23 a.m. OK Ocaml TESTS 184 31 512000 1800
39418292 mayakin B June 19, 2018, 5:36 p.m. OK PHP TESTS 184 62 409600 1800
38245824 nazmulpcc B May 14, 2018, 6:12 p.m. OK PHP TESTS 184 108 6041600 1800
38262188 Patiala_Peg B May 15, 2018, 9:04 a.m. OK PyPy 2 TESTS 184 109 24473600 1800
38611455 Wizmann B May 25, 2018, 2:10 p.m. OK PyPy 2 TESTS 184 139 2560000 1800
38236615 wolffd B May 14, 2018, 3:53 p.m. OK PyPy 2 TESTS 184 139 24268800 1800
38265771 fortmax120 B May 15, 2018, 11:29 a.m. OK PyPy 2 TESTS 184 140 28979200 1800
38310448 WyattWismer B May 16, 2018, 6:09 a.m. OK PyPy 2 TESTS 184 140 31436800 1800
41290312 kakkarotssj B Aug. 7, 2018, 2:17 a.m. OK PyPy 2 TESTS 184 171 1945600 1800
38269638 neverwin B May 15, 2018, 1:55 p.m. OK PyPy 3 TESTS 184 124 22118400 1800
38233504 sungun1996 B May 14, 2018, 3:36 p.m. OK PyPy 3 TESTS 184 140 24268800 1800
38302404 dimi_dot_com B May 15, 2018, 8:27 p.m. OK PyPy 3 TESTS 184 140 24883200 1800
46979639 Praxis B Dec. 13, 2018, 6:50 p.m. OK PyPy 3 TESTS 184 155 2867200 1800
58994355 snape_here B Aug. 18, 2019, 10:41 a.m. OK PyPy 3 TESTS 184 156 3584000 1800
38249796 artemtimofeev B May 14, 2018, 8:35 p.m. OK PyPy 3 TESTS 184 156 24268800 1800
60752036 kopok2 B Sept. 18, 2019, 6:52 a.m. OK PyPy 3 TESTS 184 187 3174400 1800
58517770 xuzhengqi B Aug. 10, 2019, 1:51 a.m. OK PyPy 3 TESTS 184 187 3686400 1800
60369452 Black_Fregat B Sept. 10, 2019, 11:59 p.m. OK PyPy 3 TESTS 184 202 3584000 1800
45981552 mug B Nov. 20, 2018, 12:27 a.m. OK PyPy 3 TESTS 184 248 6041600 1800
38488927 telekinesis B May 21, 2018, 2:56 p.m. OK Python 2 TESTS 184 171 2048000 1800
38306005 luke888 B May 16, 2018, 2:01 a.m. OK Python 2 TESTS 184 171 7168000 1800
38433540 dut200901102 B May 19, 2018, 2:23 p.m. OK Python 2 TESTS 184 187 716800 1800
38332164 pankajAhuja B May 16, 2018, 8:15 p.m. OK Python 2 TESTS 184 187 6451200 1800
38258168 fromexptolog B May 15, 2018, 6:19 a.m. OK Python 2 TESTS 184 187 6451200 1800
38253702 WNG B May 15, 2018, 2:09 a.m. OK Python 2 TESTS 184 187 6451200 1800
39069028 hailstorm_19 Korusuke shmabulock B June 9, 2018, 12:20 p.m. OK Python 2 TESTS 184 202 409600 1800
38611442 Wizmann B May 25, 2018, 2:09 p.m. OK Python 2 TESTS 184 202 512000 1800
38592221 Wizmann B May 24, 2018, 4:33 p.m. OK Python 2 TESTS 184 202 512000 1800
38243077 mihir_94 B May 14, 2018, 4:31 p.m. OK Python 2 TESTS 184 202 6451200 1800
38251985 bernie B May 14, 2018, 11:45 p.m. OK Python 3 TESTS 184 108 7987200 1800
38249732 timofeevartyom B May 14, 2018, 8:31 p.m. OK Python 3 TESTS 184 109 7680000 1800
38234705 Manaeff.Ivan B May 14, 2018, 3:42 p.m. OK Python 3 TESTS 184 109 7680000 1800
38233880 chessdroid B May 14, 2018, 3:38 p.m. OK Python 3 TESTS 184 109 7680000 1800
40246832 TWICE_OVER_SKYGLOW B July 13, 2018, 1:59 a.m. OK Python 3 TESTS 184 124 716800 1800
38481846 Artifex99 B May 21, 2018, 11:34 a.m. OK Python 3 TESTS 184 124 716800 1800
61205116 safal.gupta001 B Sept. 24, 2019, 9:20 a.m. OK Python 3 TESTS 184 124 819200 1800
38587514 JokerNN B May 24, 2018, 1:10 p.m. OK Python 3 TESTS 184 124 921600 1800
38347334 rareone0602 B May 17, 2018, 11:49 a.m. OK Python 3 TESTS 184 124 921600 1800
38645804 marcelomv B May 27, 2018, 2:29 a.m. OK Python 3 TESTS 184 124 1740800 1800
38233146 Leonardone B May 14, 2018, 3:34 p.m. OK Rust TESTS 184 31 3891200 1800
38903291 brauliobz B June 2, 2018, 8:50 p.m. OK Rust TESTS 184 46 3481600 1800

remove filters

Back to search problems