Codeforces Round 555 (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
1157 Codeforces Round 555 (Div. 3) FINISHED False 7200 175533899 April 26, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 14761 ) B Long Number PROGRAMMING greedy 1300

B'You are given a long decimal number a consisting of n digits from 1 to 9 . You also have a function f that maps every digit from 1 to 9 to some (possibly the same) digit from 1 to 9 . You can perform the following operation no more than once: choose a non-empty contiguous subsegment of digits in a , and replace each digit x from this segment with f(x) . For example, if a = 1337 , f(1) = 1 , f(3) = 5 , f(7) = 3 , and you choose the segment consisting of three rightmost digits, you get 1553 as the result. What is the maximum possible number you can obtain applying this operation no more than once? The first line contains one integer n ( 1 <= n <= 2 cdot 10^5 ) -- the number of digits in a . The second line contains a string of n characters, denoting the number a . Each character is a decimal digit from 1 to 9 . The third line contains exactly 9 integers f(1) , f(2) , ..., f(9) ( 1 <= f(i) <= 9 ). Print the maximum number you can get after applying the operation described in the statement no more than once. '...

Tutorials

66737

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
56823677 vjudge2 B July 11, 2019, 2:37 a.m. OK Clang++17 Diagnostics TESTS 95 78 15155200 1300
66527783 EbrahimAli-RU B Dec. 9, 2019, 6:03 a.m. OK Clang++17 Diagnostics TESTS 95 139 15155200 1300
58901918 vjudge3 B Aug. 16, 2019, 9:31 a.m. OK Clang++17 Diagnostics TESTS 95 171 15769600 1300
53785243 Phatbadao900 B May 5, 2019, 9:56 a.m. OK FPC TESTS 95 31 1331200 1300
53678046 besttretrauworld B May 2, 2019, 5:10 p.m. OK FPC TESTS 95 31 1433600 1300
53541000 HQT2003 B April 30, 2019, 6:43 a.m. OK FPC TESTS 95 592 8601600 1300
56510899 rudro1152 B July 4, 2019, 10:19 a.m. OK GNU C11 TESTS 95 31 204800 1300
57304615 srijamk B July 19, 2019, 2:47 a.m. OK GNU C11 TESTS 95 31 204800 1300
59548323 kaiboy B Aug. 27, 2019, 12:30 a.m. OK GNU C11 TESTS 95 31 204800 1300
60460686 You_Know_Who B Sept. 12, 2019, 8:25 p.m. OK GNU C11 TESTS 95 31 204800 1300
65743208 Razvan2000f B Nov. 26, 2019, 11:12 a.m. OK GNU C11 TESTS 95 31 204800 1300
67161511 yigezhe B Dec. 18, 2019, 2:07 p.m. OK GNU C11 TESTS 95 31 204800 1300
54422442 Farhantarctic B May 20, 2019, 4:16 p.m. OK GNU C11 TESTS 95 31 204800 1300
54487240 NoSoul B May 22, 2019, 1:42 p.m. OK GNU C11 TESTS 95 31 204800 1300
55129054 bennyjoseph B June 5, 2019, 2:18 p.m. OK GNU C11 TESTS 95 31 204800 1300
55306738 atiq12357894466 B June 8, 2019, 2:57 p.m. OK GNU C11 TESTS 95 31 204800 1300
54021435 Alan.Turing B May 12, 2019, 9:58 a.m. OK GNU C++11 TESTS 95 31 0 1300
69573093 luogu_bot2 B Jan. 26, 2020, 2:42 p.m. OK GNU C++11 TESTS 95 31 0 1300
55825112 wucstdio B June 20, 2019, 10:29 a.m. OK GNU C++11 TESTS 95 31 0 1300
54350360 NextGeneration B May 18, 2019, 2:30 p.m. OK GNU C++11 TESTS 95 31 0 1300
54172915 vjudge5 B May 15, 2019, 12:19 p.m. OK GNU C++11 TESTS 95 31 0 1300
55829018 luogu_bot3 B June 20, 2019, 12:16 p.m. OK GNU C++11 TESTS 95 31 0 1300
57715552 2017wut_lijinwei B July 25, 2019, 2:32 a.m. OK GNU C++11 TESTS 95 31 0 1300
57916238 Jun_Naruse B July 29, 2019, 1:33 a.m. OK GNU C++11 TESTS 95 31 0 1300
65566717 xiximo1204 B Nov. 23, 2019, 6:11 a.m. OK GNU C++11 TESTS 95 31 0 1300
69474596 lonely_person B Jan. 24, 2020, 3:42 p.m. OK GNU C++11 TESTS 95 31 0 1300
53629559 A_man909 B May 1, 2019, 3:30 p.m. OK GNU C++14 TESTS 95 30 512000 1300
53584821 executable B April 30, 2019, 5:49 p.m. OK GNU C++14 TESTS 95 30 512000 1300
53565684 kelzzin2 B April 30, 2019, 12:18 p.m. OK GNU C++14 TESTS 95 30 512000 1300
55218331 shubham_01 B June 6, 2019, 6 p.m. OK GNU C++14 TESTS 95 30 512000 1300
59428480 lybzscyzb B Aug. 25, 2019, 4:44 a.m. OK GNU C++14 TESTS 95 31 204800 1300
66593416 _HonEy B Dec. 10, 2019, 1:46 p.m. OK GNU C++14 TESTS 95 31 204800 1300
66179170 Love_dkq_Forever B Dec. 2, 2019, 12:15 p.m. OK GNU C++14 TESTS 95 31 204800 1300
65730442 Rednavi B Nov. 26, 2019, 4:39 a.m. OK GNU C++14 TESTS 95 31 204800 1300
64620167 zstuycz B Nov. 10, 2019, 6:34 a.m. OK GNU C++14 TESTS 95 31 204800 1300
59441487 vjudge3 B Aug. 25, 2019, 11:24 a.m. OK GNU C++14 TESTS 95 31 204800 1300
53808458 NotGivingUp B May 6, 2019, 4 a.m. OK GNU C++17 TESTS 95 30 512000 1300
54522113 lucky_21 B May 23, 2019, 12:44 p.m. OK GNU C++17 TESTS 95 30 512000 1300
54555437 Mursaleen B May 24, 2019, 11:23 a.m. OK GNU C++17 TESTS 95 30 512000 1300
54590631 Hasti_K B May 25, 2019, 8:32 a.m. OK GNU C++17 TESTS 95 30 512000 1300
65318105 durga0105 B Nov. 18, 2019, 6:21 p.m. OK GNU C++17 TESTS 95 31 204800 1300
65947327 happy_ B Nov. 29, 2019, 9:15 a.m. OK GNU C++17 TESTS 95 31 204800 1300
61385101 Matuha777 B Sept. 27, 2019, 6:47 p.m. OK GNU C++17 TESTS 95 31 204800 1300
62448294 heshuo. B Oct. 13, 2019, 1:55 a.m. OK GNU C++17 TESTS 95 31 204800 1300
63125023 SupermusicA B Oct. 22, 2019, 12:34 p.m. OK GNU C++17 TESTS 95 31 204800 1300
64558556 EliasHridoy B Nov. 9, 2019, 5:05 a.m. OK GNU C++17 TESTS 95 31 204800 1300
55563687 abdolsamad B June 14, 2019, 2:07 p.m. OK Go TESTS 95 46 716800 1300
54084491 Jack5505 B May 14, 2019, 6:27 a.m. OK Go TESTS 95 576 0 1300
54084590 Jack5505 B May 14, 2019, 6:31 a.m. OK Go TESTS 95 577 0 1300
55381488 Avonazhrets B June 9, 2019, 9:04 p.m. OK Go TESTS 95 1216 0 1300
53482356 Pr0Ger B April 28, 2019, 9:35 p.m. OK Go TESTS 95 1216 5222400 1300
53754033 Laurens B May 4, 2019, 5:53 p.m. OK Haskell TESTS 95 46 1126400 1300
67787894 ragnar7 B Dec. 28, 2019, 1:30 p.m. OK Java 11 TESTS 95 187 0 1300
69670872 Jainam_Sanghvi B Jan. 28, 2020, 12:57 p.m. OK Java 11 TESTS 95 842 0 1300
53744133 abod.hi.5 B May 4, 2019, 3:38 p.m. OK Java 8 TESTS 95 109 0 1300
53602696 inseder B May 1, 2019, 8:37 a.m. OK Java 8 TESTS 95 109 0 1300
53483423 variablev B April 28, 2019, 11:23 p.m. OK Java 8 TESTS 95 109 0 1300
69943408 mohdsadiq058 B Feb. 1, 2020, 6:51 a.m. OK Java 8 TESTS 95 124 0 1300
66168943 jdkramhoft B Dec. 2, 2019, 9:15 a.m. OK Java 8 TESTS 95 124 0 1300
65330459 bluesky111 B Nov. 19, 2019, 5:42 a.m. OK Java 8 TESTS 95 124 0 1300
61061136 i_will_be_less_than_blue B Sept. 22, 2019, 9:30 a.m. OK Java 8 TESTS 95 124 0 1300
58866624 Vaibhav_Domadia B Aug. 15, 2019, 1:38 p.m. OK Java 8 TESTS 95 124 0 1300
58837369 Agnimandur B Aug. 14, 2019, 10:09 p.m. OK Java 8 TESTS 95 124 0 1300
58122113 hayaalt B Aug. 1, 2019, 11:13 a.m. OK Java 8 TESTS 95 124 0 1300
67065640 robota B Dec. 17, 2019, 10:59 a.m. OK Kotlin TESTS 95 155 0 1300
54732465 rakeshpillai B May 28, 2019, 1:53 a.m. OK Kotlin TESTS 95 155 0 1300
54557458 Killer45 B May 24, 2019, 12:20 p.m. OK Kotlin TESTS 95 155 0 1300
60220243 thecarrot B Sept. 7, 2019, 1:20 p.m. OK Kotlin TESTS 95 155 204800 1300
53704348 redjohn B May 3, 2019, 12:26 p.m. OK Kotlin TESTS 95 155 204800 1300
54214923 elizarov B May 15, 2019, 7:48 p.m. OK Kotlin TESTS 95 156 204800 1300
59777439 david_varela B Aug. 31, 2019, 12:40 a.m. OK Kotlin TESTS 95 156 204800 1300
59896710 ganixdd B Sept. 2, 2019, 12:22 p.m. OK Kotlin TESTS 95 171 204800 1300
59801491 dishanddd B Aug. 31, 2019, 10:25 a.m. OK Kotlin TESTS 95 171 204800 1300
56722613 sekti B July 8, 2019, 5:39 p.m. OK Kotlin TESTS 95 171 204800 1300
54900224 og.kostya B June 1, 2019, 6:12 a.m. OK Mono C# TESTS 95 46 819200 1300
62093438 nadilk B Oct. 8, 2019, 6:40 a.m. OK Mono C# TESTS 95 77 4710400 1300
54405191 maxkh B May 20, 2019, 5:34 a.m. OK Mono C# TESTS 95 77 4812800 1300
53803524 treasuryonly B May 5, 2019, 9:08 p.m. OK Mono C# TESTS 95 77 5427200 1300
53488840 jxuaqxwd B April 29, 2019, 6:54 a.m. OK Mono C# TESTS 95 77 12902400 1300
54026046 zazak B May 12, 2019, 12:38 p.m. OK Mono C# TESTS 95 93 8704000 1300
53810717 Salatik231166 B May 6, 2019, 6:28 a.m. OK Mono C# TESTS 95 156 8192000 1300
53565398 TRR B April 30, 2019, 12:09 p.m. OK Mono C# TESTS 95 607 716800 1300
54999177 kenma B June 3, 2019, 3:04 a.m. OK Mono C# TESTS 95 623 4198400 1300
55398194 Androninja B June 10, 2019, 12:46 p.m. OK Mono C# TESTS 95 639 7475200 1300
54587964 vjudge5 B May 25, 2019, 7:36 a.m. OK MS C++ TESTS 95 31 204800 1300
59442361 vjudge2 B Aug. 25, 2019, 11:46 a.m. OK MS C++ TESTS 95 31 204800 1300
58177380 vjudge2 B Aug. 2, 2019, 1:38 p.m. OK MS C++ TESTS 95 31 204800 1300
55615383 vjudge5 B June 16, 2019, 8:35 a.m. OK MS C++ TESTS 95 31 204800 1300
54333888 vjudge3 B May 18, 2019, 7:12 a.m. OK MS C++ TESTS 95 31 204800 1300
54175033 vjudge5 B May 15, 2019, 1:29 p.m. OK MS C++ TESTS 95 31 204800 1300
54171931 vjudge3 B May 15, 2019, 11:38 a.m. OK MS C++ TESTS 95 31 204800 1300
54058888 sunyuhan1998 B May 13, 2019, 10:04 a.m. OK MS C++ TESTS 95 31 204800 1300
53983093 vjudge1 B May 11, 2019, 8:12 a.m. OK MS C++ TESTS 95 31 204800 1300
53978124 vjudge1 B May 11, 2019, 5:36 a.m. OK MS C++ TESTS 95 31 204800 1300
58558282 Y_JARVIS B Aug. 11, 2019, 3:55 a.m. OK MS C++ 2017 TESTS 95 31 204800 1300
54062507 pangpang B May 13, 2019, 11:53 a.m. OK MS C++ 2017 TESTS 95 31 204800 1300
56504823 2465806616 B July 4, 2019, 8 a.m. OK MS C++ 2017 TESTS 95 31 204800 1300
53486222 hwangganzi B April 29, 2019, 3:59 a.m. OK MS C++ 2017 TESTS 95 31 204800 1300
53488738 zzq233 B April 29, 2019, 6:50 a.m. OK MS C++ 2017 TESTS 95 31 204800 1300
53811134 Gee1 B May 6, 2019, 6:49 a.m. OK MS C++ 2017 TESTS 95 31 204800 1300
53814316 yp0413170331 B May 6, 2019, 9:14 a.m. OK MS C++ 2017 TESTS 95 31 204800 1300
53836789 Gee1 B May 7, 2019, 3:50 a.m. OK MS C++ 2017 TESTS 95 31 204800 1300
65267572 MRamanauskas B Nov. 17, 2019, 5:54 p.m. OK MS C++ 2017 TESTS 95 31 614400 1300
64542273 salmadwekat37 B Nov. 8, 2019, 7:09 p.m. OK MS C++ 2017 TESTS 95 31 614400 1300
53907967 mayakin B May 9, 2019, 1:48 p.m. OK PHP TESTS 95 93 14233600 1300
53479684 alexwice B April 28, 2019, 6:33 p.m. OK PyPy 2 TESTS 95 140 6451200 1300
53533777 daniel.carlos B April 29, 2019, 11:36 p.m. OK PyPy 2 TESTS 95 171 5427200 1300
58670528 ssk497 B Aug. 12, 2019, 2:15 p.m. OK PyPy 2 TESTS 95 233 10342400 1300
53853831 gatsko B May 7, 2019, 2:56 p.m. OK PyPy 2 TESTS 95 295 11878400 1300
54971046 grhkm B June 2, 2019, 8:36 a.m. OK PyPy 3 TESTS 95 155 9728000 1300
53887374 pmarecki B May 8, 2019, 7:26 p.m. OK PyPy 3 TESTS 95 170 9932800 1300
53694505 _hanabi_ B May 3, 2019, 6:57 a.m. OK PyPy 3 TESTS 95 171 9420800 1300
65714114 __Derevo__ B Nov. 25, 2019, 3:43 p.m. OK PyPy 3 TESTS 95 186 8396800 1300
55309432 scambret B June 8, 2019, 4:37 p.m. OK PyPy 3 TESTS 95 186 9420800 1300
54476984 bupt.wc B May 22, 2019, 9:01 a.m. OK PyPy 3 TESTS 95 186 10649600 1300
53529712 bkalra92 B April 29, 2019, 6:42 p.m. OK PyPy 3 TESTS 95 186 11468800 1300
64513539 KrishRawat B Nov. 8, 2019, 9:45 a.m. OK PyPy 3 TESTS 95 187 9728000 1300
65607840 jsui2020 B Nov. 23, 2019, 10:05 p.m. OK PyPy 3 TESTS 95 187 11673600 1300
54415155 ragibshahriar2002 B May 20, 2019, 12:09 p.m. OK PyPy 3 TESTS 95 187 14848000 1300
58139537 soyluy B Aug. 1, 2019, 5:31 p.m. OK Python 2 TESTS 95 233 716800 1300
58784894 cecerhcp B Aug. 13, 2019, 9:31 p.m. OK Python 2 TESTS 95 421 4608000 1300
53897981 franckmy B May 9, 2019, 7:21 a.m. OK Python 2 TESTS 95 1918 9523200 1300
53762731 sardina B May 4, 2019, 8:15 p.m. OK Python 3 TESTS 95 140 1126400 1300
54096378 another_strike B May 14, 2019, 1:15 p.m. OK Python 3 TESTS 95 155 1331200 1300
53581035 diarmuid B April 30, 2019, 3:41 p.m. OK Python 3 TESTS 95 171 1536000 1300
65344691 galim665 B Nov. 19, 2019, 12:11 p.m. OK Python 3 TESTS 95 186 1740800 1300
53948176 Gargulia B May 10, 2019, 8:01 a.m. OK Python 3 TESTS 95 186 1740800 1300
53682533 wofka72 B May 2, 2019, 8:22 p.m. OK Python 3 TESTS 95 186 1740800 1300
53948285 Gargulia B May 10, 2019, 8:05 a.m. OK Python 3 TESTS 95 186 2560000 1300
66057497 ddanield B Nov. 30, 2019, 7:14 p.m. OK Python 3 TESTS 95 187 1638400 1300
55196747 sabbaka B June 6, 2019, 8:49 a.m. OK Python 3 TESTS 95 187 1638400 1300
55127039 sabbaka B June 5, 2019, 1:19 p.m. OK Python 3 TESTS 95 187 2560000 1300
55466633 seongmin.kim B June 11, 2019, 4:43 p.m. OK Rust TESTS 95 31 512000 1300
59414173 matijap B Aug. 24, 2019, 5:18 p.m. OK Rust TESTS 95 31 1945600 1300
60204504 tpoeiras B Sept. 7, 2019, 7:33 a.m. OK Rust TESTS 95 46 716800 1300

remove filters

Back to search problems