Codeforces Beta Round 66

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
73 Codeforces Beta Round 66 FINISHED False 9000 429400799 April 10, 2011, 8 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2125 ) C LionAge II PROGRAMMING dp 1800

B"Vasya plays the LionAge II. He was bored of playing with a stupid computer, so he installed this popular MMORPG, to fight with his friends. Vasya came up with the name of his character -- non-empty string s, consisting of a lowercase Latin letters. However, in order not to put up a front of friends, Vasya has decided to change no more than k letters of the character name so that the new name sounded as good as possible. Euphony of the line is defined as follows: for each pair of adjacent letters x and y (x immediately precedes y) the bonus c(x, xe2 x80 x89y) is added to the result. Your task is to determine what the greatest Euphony can be obtained by changing at most k letters in the name of the Vasya's character. The first line contains character's name s and an integer number k (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100). The length of the nonempty string s does not exceed 100. The second line contains an integer number n (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89676) -- amount of pairs of letters, giving bonus to the euphony. The next n lines contain description of these pairs xc2 xabx y c xc2 xbb, which means that sequence xy gives bonus c (x, xe2 x80 x89y -- lowercase Latin letters, xe2 x80 x89- xe2 x80 x891000 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89c xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891000). It is guaranteed that no pair x y mentioned twice in the input data. Output the only number -- maximum possible euphony xd0 xbef the new character's name. In the first example the most euphony name will be looser. It is easy to calculate that its euphony is 36."...

Tutorials

Codeforces Beta Round #66 editorial: Problems D, E, F

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
56852446 Alphagocc C July 11, 2019, 4:25 p.m. OK Clang++17 Diagnostics TESTS 53 624 7475200 1800
50596480 muhammedaly C Feb. 28, 2019, 10:35 a.m. OK Clang++17 Diagnostics TESTS 53 810 53452800 1800
55736170 rr_ C June 19, 2019, 4:11 a.m. OK D TESTS 53 312 22835200 1800
373389 ant.ermilov C April 10, 2011, 8:27 a.m. OK Delphi TESTS 53 50 2252800 1800
1075331 ruban C Jan. 18, 2012, 12:30 p.m. OK Delphi TESTS 53 60 80793600 1800
432591 maxim_polt C May 5, 2011, 4:56 a.m. OK Delphi TESTS 53 90 2560000 1800
373031 tourist C April 10, 2011, 8:15 a.m. OK Delphi TESTS 53 90 2662400 1800
373862 sankear C April 10, 2011, 8:44 a.m. OK Delphi TESTS 53 90 4096000 1800
2903092 AleksanderBalobanov C Jan. 10, 2013, 5:22 p.m. OK Delphi TESTS 53 109 1126400 1800
382715 ruxbit C April 13, 2011, 1:02 p.m. OK Delphi TESTS 53 110 2252800 1800
376406 Goofy57 C April 10, 2011, 11:39 a.m. OK Delphi TESTS 53 130 3891200 1800
1766258 NGiUp C June 5, 2012, 4:29 p.m. OK FPC TESTS 53 50 2252800 1800
887631 memphis0603 C Nov. 23, 2011, 12:57 p.m. OK FPC TESTS 53 60 2355200 1800
471985 vlad107 C May 29, 2011, 7:59 a.m. OK FPC TESTS 53 60 2355200 1800
374392 xujie C April 10, 2011, 9:05 a.m. OK FPC TESTS 53 60 2457600 1800
14700087 hdt C Dec. 8, 2015, 3:17 p.m. OK FPC TESTS 53 62 1331200 1800
12796748 HappyPerson C Sept. 1, 2015, 3:57 a.m. OK FPC TESTS 53 62 1433600 1800
2225210 25122008 C Sept. 21, 2012, 3:41 a.m. OK FPC TESTS 53 62 2252800 1800
531172 vilcheuski C July 8, 2011, 5:48 a.m. OK FPC TESTS 53 80 2048000 1800
377131 Mark_tven C April 10, 2011, 3:35 p.m. OK FPC TESTS 53 80 2048000 1800
373923 coolinging C April 10, 2011, 8:47 a.m. OK FPC TESTS 53 80 2048000 1800
708105 kawatea C Sept. 19, 2011, 12:34 a.m. OK GNU C TESTS 53 50 2457600 1800
693695 scottai1 C Sept. 14, 2011, 2:33 a.m. OK GNU C TESTS 53 50 2457600 1800
693688 zpl1 C Sept. 14, 2011, 2:24 a.m. OK GNU C TESTS 53 50 7270400 1800
376557 LayCurse C April 10, 2011, noon OK GNU C TESTS 53 60 2662400 1800
1125503 mage C Jan. 29, 2012, 1:02 p.m. OK GNU C TESTS 53 60 11673600 1800
3760186 longmenwaideyu C May 23, 2013, 10:47 a.m. OK GNU C++ TESTS 53 15 1331200 1800
7746189 win_ay39 C Sept. 11, 2014, 5:44 p.m. OK GNU C++ TESTS 53 30 1024000 1800
19508934 vjudge2 C July 30, 2016, 4:40 a.m. OK GNU C++ TESTS 53 30 1228800 1800
13912417 vjudge5 C Oct. 28, 2015, 10:31 a.m. OK GNU C++ TESTS 53 30 1228800 1800
7431365 GENGJUN C Aug. 12, 2014, 1:15 a.m. OK GNU C++ TESTS 53 30 1228800 1800
5965885 pikapika C March 9, 2014, 1:57 a.m. OK GNU C++ TESTS 53 30 1228800 1800
11037024 anhhung4u C May 8, 2015, 12:56 a.m. OK GNU C++ TESTS 53 30 1331200 1800
9780401 vjudge1 C Feb. 9, 2015, 1:42 p.m. OK GNU C++ TESTS 53 30 1331200 1800
7738944 GENGJUN C Sept. 11, 2014, 4:41 a.m. OK GNU C++ TESTS 53 30 1331200 1800
5962462 vjudge1 C March 8, 2014, noon OK GNU C++ TESTS 53 30 1331200 1800
3394862 UESTC_ElemeNtLz C March 23, 2013, 1:39 p.m. OK GNU C++0x TESTS 53 15 1331200 1800
6414452 vjudge2 C April 19, 2014, 2:31 a.m. OK GNU C++0x TESTS 53 30 1433600 1800
624978 Archon.JK C Aug. 21, 2011, 6:21 p.m. OK GNU C++0x TESTS 53 30 2969600 1800
2979884 bonism C Jan. 21, 2013, 3:13 p.m. OK GNU C++0x TESTS 53 31 1228800 1800
6370889 wanbo C April 16, 2014, 1:14 a.m. OK GNU C++0x TESTS 53 60 1331200 1800
6451309 JayYe C April 23, 2014, 6:51 a.m. OK GNU C++0x TESTS 53 60 1433600 1800
9916351 CchOOlak C Feb. 18, 2015, 3:45 p.m. OK GNU C++0x TESTS 53 62 1228800 1800
6162144 passick C March 27, 2014, 2:30 p.m. OK GNU C++0x TESTS 53 62 1536000 1800
9021192 sdya C Dec. 8, 2014, 6:30 p.m. OK GNU C++0x TESTS 53 62 5529600 1800
9422735 JackieWilshere C Jan. 13, 2015, 10:25 a.m. OK GNU C++0x TESTS 53 92 1536000 1800
14043727 cq_phqg C Nov. 3, 2015, 3:13 p.m. OK GNU C++11 TESTS 53 30 0 1800
20815455 freeguy C Sept. 22, 2016, 11:18 a.m. OK GNU C++11 TESTS 53 30 1126400 1800
19516147 vjudge2 C July 30, 2016, 11:55 a.m. OK GNU C++11 TESTS 53 30 1331200 1800
16663727 fengsuiyan C March 12, 2016, 2:21 a.m. OK GNU C++11 TESTS 53 30 1433600 1800
12133517 sidchelseafan C July 20, 2015, 5:36 p.m. OK GNU C++11 TESTS 53 30 1638400 1800
18177227 Y_UME C June 1, 2016, 5:22 a.m. OK GNU C++11 TESTS 53 30 3276800 1800
16972515 Eran C March 27, 2016, 2:42 p.m. OK GNU C++11 TESTS 53 30 3379200 1800
14959234 tenshi_kanade C Dec. 23, 2015, 7:25 p.m. OK GNU C++11 TESTS 53 30 11571200 1800
19508890 vjudge4 C July 30, 2016, 4:38 a.m. OK GNU C++11 TESTS 53 60 0 1800
19508790 vjudge1 C July 30, 2016, 4:31 a.m. OK GNU C++11 TESTS 53 60 0 1800
30689621 nuttsteltizer C Sept. 24, 2017, 7:56 p.m. OK GNU C++14 TESTS 53 30 1126400 1800
28658325 aneesh2312 C July 18, 2017, 6:27 a.m. OK GNU C++14 TESTS 53 30 2969600 1800
25565885 joyfun C March 17, 2017, 7:11 a.m. OK GNU C++14 TESTS 53 30 3072000 1800
29320339 srinu37 C Aug. 10, 2017, 7:34 a.m. OK GNU C++14 TESTS 53 30 3174400 1800
35081593 ngw C Feb. 9, 2018, 7:30 a.m. OK GNU C++14 TESTS 53 30 3379200 1800
33485301 Flyce C Dec. 21, 2017, 4:07 p.m. OK GNU C++14 TESTS 53 60 2969600 1800
23793213 masonsbro C Jan. 13, 2017, 8:13 p.m. OK GNU C++14 TESTS 53 60 2969600 1800
33510458 apoorv_kulsh C Dec. 22, 2017, 2:22 p.m. OK GNU C++14 TESTS 53 60 3276800 1800
25463671 MahmoudAli C March 13, 2017, 11:51 p.m. OK GNU C++14 TESTS 53 60 3276800 1800
33082267 DATVN C Dec. 10, 2017, 4:37 p.m. OK GNU C++14 TESTS 53 60 3686400 1800
45310302 cocktail C Nov. 5, 2018, 3:18 a.m. OK GNU C++17 TESTS 53 60 4710400 1800
56851944 shurongwang C July 11, 2019, 4:11 p.m. OK GNU C++17 TESTS 53 62 102400 1800
67176078 Fortin C Dec. 18, 2019, 7:19 p.m. OK GNU C++17 TESTS 53 62 1024000 1800
61724698 mihmih C Oct. 2, 2019, 3:01 p.m. OK GNU C++17 TESTS 53 62 1024000 1800
58557544 paris2007 C Aug. 11, 2019, 3:20 a.m. OK GNU C++17 TESTS 53 62 1126400 1800
57335041 applemelon C July 19, 2019, 3:44 p.m. OK GNU C++17 TESTS 53 62 1126400 1800
38583439 suhail.loya C May 24, 2018, 10:46 a.m. OK GNU C++17 TESTS 53 62 1126400 1800
63225927 Bloody_Yulii C Oct. 23, 2019, 9:19 a.m. OK GNU C++17 TESTS 53 62 1228800 1800
58557939 shenqihao C Aug. 11, 2019, 3:38 a.m. OK GNU C++17 TESTS 53 62 1228800 1800
56850669 shurongwang C July 11, 2019, 3:34 p.m. OK GNU C++17 TESTS 53 62 1228800 1800
376342 bjin C April 10, 2011, 11:32 a.m. OK Haskell TESTS 53 360 3174400 1800
377394 Petr C April 10, 2011, 6:49 p.m. OK Java 6 TESTS 53 110 43417600 1800
376469 S.Yesipenko C April 10, 2011, 11:45 a.m. OK Java 6 TESTS 53 110 43417600 1800
376359 dmitry.uvarov C April 10, 2011, 11:34 a.m. OK Java 6 TESTS 53 110 43417600 1800
3785939 DiegoAE C May 28, 2013, 3:06 a.m. OK Java 6 TESTS 53 125 2252800 1800
566588 mostafa_fahim C July 26, 2011, 7:51 p.m. OK Java 6 TESTS 53 130 43008000 1800
382529 rajatag12 C April 13, 2011, 9:57 a.m. OK Java 6 TESTS 53 130 43315200 1800
376658 ivan.popelyshev C April 10, 2011, 12:20 p.m. OK Java 6 TESTS 53 130 43417600 1800
374879 ahmed.abdrabo C April 10, 2011, 9:27 a.m. OK Java 6 TESTS 53 130 43417600 1800
373871 pyshnograev C April 10, 2011, 8:45 a.m. OK Java 6 TESTS 53 130 43417600 1800
382866 ArtemKadeev C April 13, 2011, 2:59 p.m. OK Java 6 TESTS 53 130 43622400 1800
3785905 santjuan C May 28, 2013, 2:39 a.m. OK Java 7 TESTS 53 140 0 1800
5172157 Mostafa.Gabriel C Nov. 20, 2013, 7:14 a.m. OK Java 7 TESTS 53 186 0 1800
4412503 DoublePointer C Sept. 5, 2013, 8:24 p.m. OK Java 7 TESTS 53 186 0 1800
7911457 manoprenko C Sept. 22, 2014, 2:54 p.m. OK Java 7 TESTS 53 218 0 1800
4203680 trunghieu11 C July 30, 2013, 10:19 a.m. OK Java 7 TESTS 53 248 0 1800
4358051 Navigabimus C Aug. 27, 2013, 4:37 p.m. OK Java 7 TESTS 53 248 102400 1800
14631479 alibaba C Dec. 3, 2015, 9:25 a.m. OK Java 7 TESTS 53 340 9625600 1800
1567721 peking2 C April 17, 2012, 8:19 p.m. OK Java 7 TESTS 53 410 44953600 1800
69631750 saurabhs1206 C Jan. 27, 2020, 5:23 p.m. OK Java 8 TESTS 53 248 0 1800
12886212 hama-du C Sept. 7, 2015, 3:10 p.m. OK Java 8 TESTS 53 248 0 1800
53499822 jst_forfun C April 29, 2019, 1:41 p.m. OK Java 8 TESTS 53 278 0 1800
50073018 Andres1 C Feb. 17, 2019, 7 p.m. OK Java 8 TESTS 53 278 0 1800
60842278 Jarik C Sept. 19, 2019, 11:24 a.m. OK Java 8 TESTS 53 280 0 1800
54819825 mennafadali C May 30, 2019, 1:04 a.m. OK Java 8 TESTS 53 280 0 1800
11266835 poikniok C May 25, 2015, 3:13 p.m. OK Java 8 TESTS 53 280 0 1800
68673123 madfrost C Jan. 12, 2020, 5:30 p.m. OK Java 8 TESTS 53 310 0 1800
55810141 nullptr2 C June 20, 2019, 3:06 a.m. OK Java 8 TESTS 53 310 0 1800
55810120 nullptr2 C June 20, 2019, 3:05 a.m. OK Java 8 TESTS 53 310 0 1800
376928 NKolotey C April 10, 2011, 1:49 p.m. OK Mono C# TESTS 53 250 7475200 1800
376006 tanzaku C April 10, 2011, 10:23 a.m. OK Mono C# TESTS 53 330 7475200 1800
7802463 scanhex C Sept. 15, 2014, 3:31 p.m. OK MS C# TESTS 53 184 3481600 1800
1202696 Coder C Feb. 19, 2012, 2:09 a.m. OK MS C++ TESTS 53 30 2457600 1800
377943 abc235153452 C April 11, 2011, 1:11 p.m. OK MS C++ TESTS 53 30 2560000 1800
373524 natalia C April 10, 2011, 8:32 a.m. OK MS C++ TESTS 53 30 2560000 1800
2051395 bnuvjudge C Aug. 27, 2012, 5:41 a.m. OK MS C++ TESTS 53 30 2764800 1800
377002 zgw C April 10, 2011, 2:24 p.m. OK MS C++ TESTS 53 30 2764800 1800
470352 beyondxgb C May 26, 2011, 11:08 a.m. OK MS C++ TESTS 53 30 6041600 1800
3036627 Timur_Sitdikov C Jan. 30, 2013, 11:37 a.m. OK MS C++ TESTS 53 31 34713600 1800
4130660 tomas.svab C July 21, 2013, 5:47 p.m. OK MS C++ TESTS 53 46 1126400 1800
375402 Borisp C April 10, 2011, 9:53 a.m. OK MS C++ TESTS 53 50 1638400 1800
584298 Deamon C Aug. 4, 2011, 7:54 a.m. OK MS C++ TESTS 53 50 2457600 1800
55193648 codeshaker C June 6, 2019, 7:32 a.m. OK MS C++ 2017 TESTS 53 92 1331200 1800
68356337 CygneNoir C Jan. 7, 2020, 12:15 p.m. OK MS C++ 2017 TESTS 53 92 1331200 1800
68355852 CygneNoir C Jan. 7, 2020, 12:03 p.m. OK MS C++ 2017 TESTS 53 92 1331200 1800
56852447 Alphagocc C July 11, 2019, 4:25 p.m. OK MS C++ 2017 TESTS 53 92 6246400 1800
56460321 homoeconomicus C July 3, 2019, 6:30 a.m. OK PyPy 3 TESTS 53 778 10240000 1800
14436857 Eeyore C Nov. 24, 2015, 8:57 a.m. OK PyPy 3 TESTS 53 966 8396800 1800
377005 -dp- C April 10, 2011, 2:26 p.m. OK Python 2 TESTS 53 1410 6144000 1800
376994 -dp- C April 10, 2011, 2:18 p.m. OK Python 2 TESTS 53 1440 6144000 1800

remove filters

Back to search problems