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 |
---|---|---|---|---|---|---|
379 | Good Bye 2013 | FINISHED | False | 7200 | 343405799 | Dec. 30, 2013, 3:30 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1565 ) | D | New Year Letter | PROGRAMMING | bitmasks brute force dp | 2000 |
B'Many countries have such a New Year or Christmas tradition as writing a letter to Santa including a wish list for presents. Vasya is an ordinary programmer boy. Like all ordinary boys, he is going to write the letter to Santa on the New Year Eve (we Russians actually expect Santa for the New Year, not for Christmas). Vasya has come up with an algorithm he will follow while writing a letter. First he chooses two strings, s1 anf s2, consisting of uppercase English letters. Then the boy makes string sk, using a recurrent equation sn xe2 x80 x89= xe2 x80 x89sn xe2 x80 x89- xe2 x80 x892 xe2 x80 x89+ xe2 x80 x89sn xe2 x80 x89- xe2 x80 x891, operation '+ ' means a concatenation (that is, the sequential record) of strings in the given order. Then Vasya writes down string sk on a piece of paper, puts it in the envelope and sends in to Santa. Vasya is absolutely sure that Santa will bring him the best present if the resulting string sk has exactly x occurrences of substring AC (the short-cut reminds him xd0 xbef accepted problems). Besides, Vasya decided that string s1 should have length n, and string s2 should have length m. Vasya hasn 't decided anything else. At the moment Vasya 's got urgent New Year business, so he asks you to choose two strings for him, s1 and s2 in the required manner. Help Vasya. The first line contains four integers k, xe2 x80 x89x, xe2 x80 x89n, xe2 x80 x89m (3 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8950; 0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89x xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109; 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100). In the first line print string s1, consisting of n uppercase English letters. In the second line print string s2, consisting of m uppercase English letters. If there are multiple valid strings, print any of them. If the required pair of strings doesn 't exist, print "Happy new year!" without the quotes.'... |
Tutorial Good Bye 2013 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
27935080 | vjudge4 | D | June 21, 2017, 1:51 a.m. | OK | FPC | TESTS | 46 | 15 | 1638400 | 2000 | |
27936537 | vjudge2 | D | June 21, 2017, 3:48 a.m. | OK | FPC | TESTS | 46 | 30 | 1638400 | 2000 | |
27935101 | vjudge1 | D | June 21, 2017, 1:53 a.m. | OK | FPC | TESTS | 46 | 31 | 1638400 | 2000 | |
23984873 | Gray_58 | D | Jan. 20, 2017, 9:27 a.m. | OK | FPC | TESTS | 46 | 187 | 1638400 | 2000 | |
20990788 | vjudge3 | D | Sept. 29, 2016, 11:50 a.m. | OK | GNU C++ | TESTS | 46 | 15 | 0 | 2000 | |
19603339 | vjudge1 | D | Aug. 3, 2016, 6:05 p.m. | OK | GNU C++ | TESTS | 46 | 15 | 0 | 2000 | |
19420250 | amsen | D | July 26, 2016, 10:06 a.m. | OK | GNU C++ | TESTS | 46 | 15 | 0 | 2000 | |
19189674 | monster | D | July 17, 2016, noon | OK | GNU C++ | TESTS | 46 | 15 | 0 | 2000 | |
15457669 | kishu96 | D | Jan. 20, 2016, 6:19 p.m. | OK | GNU C++ | TESTS | 46 | 15 | 0 | 2000 | |
15437094 | sauravjha221 | D | Jan. 19, 2016, 8:23 a.m. | OK | GNU C++ | TESTS | 46 | 15 | 0 | 2000 | |
15088151 | pflueger | D | Dec. 29, 2015, 5:22 p.m. | OK | GNU C++ | TESTS | 46 | 15 | 0 | 2000 | |
15071970 | gvaibhav22 | D | Dec. 28, 2015, 2:09 p.m. | OK | GNU C++ | TESTS | 46 | 15 | 0 | 2000 | |
14035232 | 130705009 | D | Nov. 2, 2015, 11:48 p.m. | OK | GNU C++ | TESTS | 46 | 15 | 0 | 2000 | |
31950254 | GoForIt | D | Nov. 1, 2017, 12:50 p.m. | OK | GNU C++ | TESTS | 46 | 15 | 0 | 2000 | |
10293059 | bbugaev Androik | D | March 15, 2015, 6:38 p.m. | OK | GNU C++0x | TESTS | 46 | 31 | 0 | 2000 | |
58406936 | rainboy | D | Aug. 6, 2019, 9:25 p.m. | OK | GNU C11 | TESTS | 46 | 31 | 0 | 2000 | |
22528811 | .tx | D | Nov. 27, 2016, 2:56 p.m. | OK | GNU C++11 | TESTS | 46 | 15 | 0 | 2000 | |
29955032 | georgerapeanu | D | Aug. 31, 2017, 4:39 p.m. | OK | GNU C++11 | TESTS | 46 | 15 | 0 | 2000 | |
27685674 | AWCXV | D | June 9, 2017, 8:55 a.m. | OK | GNU C++11 | TESTS | 46 | 15 | 0 | 2000 | |
27685665 | vjudge1 | D | June 9, 2017, 8:55 a.m. | OK | GNU C++11 | TESTS | 46 | 15 | 0 | 2000 | |
20870685 | ShyngyS | D | Sept. 23, 2016, 5:41 p.m. | OK | GNU C++11 | TESTS | 46 | 15 | 0 | 2000 | |
20627047 | Matrix.code | D | Sept. 14, 2016, 8:24 p.m. | OK | GNU C++11 | TESTS | 46 | 15 | 0 | 2000 | |
19472418 | vjudge5 | D | July 29, 2016, 4:59 a.m. | OK | GNU C++11 | TESTS | 46 | 15 | 0 | 2000 | |
19472413 | PedramAghazadeh | D | July 29, 2016, 4:59 a.m. | OK | GNU C++11 | TESTS | 46 | 15 | 0 | 2000 | |
19321629 | vjudge1 | D | July 22, 2016, 10:25 a.m. | OK | GNU C++11 | TESTS | 46 | 15 | 0 | 2000 | |
19321607 | saliii | D | July 22, 2016, 10:24 a.m. | OK | GNU C++11 | TESTS | 46 | 15 | 0 | 2000 | |
51962692 | luogu_bot5 | D | March 29, 2019, 7:59 a.m. | OK | GNU C++14 | TESTS | 46 | 15 | 0 | 2000 | |
62568029 | swapnil07 | D | Oct. 14, 2019, 1:43 p.m. | OK | GNU C++14 | TESTS | 46 | 15 | 0 | 2000 | |
31146495 | Minnakhmetov | D | Oct. 8, 2017, 2:15 p.m. | OK | GNU C++14 | TESTS | 46 | 15 | 0 | 2000 | |
29583198 | AMnu | D | Aug. 18, 2017, 11:14 p.m. | OK | GNU C++14 | TESTS | 46 | 15 | 0 | 2000 | |
27510995 | Momentaiii | D | June 1, 2017, 9:23 p.m. | OK | GNU C++14 | TESTS | 46 | 15 | 0 | 2000 | |
27290813 | PORONGON | D | May 22, 2017, 8:17 p.m. | OK | GNU C++14 | TESTS | 46 | 15 | 0 | 2000 | |
22724677 | ngochai94 | D | Dec. 6, 2016, 7:10 a.m. | OK | GNU C++14 | TESTS | 46 | 15 | 0 | 2000 | |
20911626 | Sun_For_Life | D | Sept. 25, 2016, 4:23 p.m. | OK | GNU C++14 | TESTS | 46 | 15 | 0 | 2000 | |
32221539 | Big_black_jujube | D | Nov. 11, 2017, 2:04 p.m. | OK | GNU C++14 | TESTS | 46 | 15 | 102400 | 2000 | |
31210920 | Hydrangeas | D | Oct. 11, 2017, 8:23 a.m. | OK | GNU C++14 | TESTS | 46 | 15 | 102400 | 2000 | |
49929323 | vjudge1 | D | Feb. 15, 2019, 3:02 a.m. | OK | GNU C++17 | TESTS | 46 | 15 | 0 | 2000 | |
68161602 | viajero | D | Jan. 4, 2020, 11:06 a.m. | OK | GNU C++17 | TESTS | 46 | 30 | 0 | 2000 | |
49937075 | vjudge1 | D | Feb. 15, 2019, 7:48 a.m. | OK | GNU C++17 | TESTS | 46 | 30 | 0 | 2000 | |
68317699 | Phortox | D | Jan. 6, 2020, 1:48 p.m. | OK | GNU C++17 | TESTS | 46 | 31 | 0 | 2000 | |
67751365 | pashka | D | Dec. 27, 2019, 5:56 p.m. | OK | GNU C++17 | TESTS | 46 | 31 | 0 | 2000 | |
67743742 | pashka | D | Dec. 27, 2019, 4:33 p.m. | OK | GNU C++17 | TESTS | 46 | 31 | 0 | 2000 | |
67415014 | racoon | D | Dec. 22, 2019, 9:35 a.m. | OK | GNU C++17 | TESTS | 46 | 31 | 0 | 2000 | |
64793371 | Npthang | D | Nov. 13, 2019, 12:01 p.m. | OK | GNU C++17 | TESTS | 46 | 31 | 0 | 2000 | |
58123870 | SBOne | D | Aug. 1, 2019, 11:52 a.m. | OK | GNU C++17 | TESTS | 46 | 31 | 0 | 2000 | |
65483956 | JBer | D | Nov. 21, 2019, 12:37 p.m. | OK | GNU C++17 | TESTS | 46 | 31 | 0 | 2000 | |
13220654 | Martynas | D | Sept. 25, 2015, 2:56 p.m. | OK | Go | TESTS | 46 | 15 | 0 | 2000 | |
11090304 | Sumeet.Varma | D | May 13, 2015, 3:18 p.m. | OK | Java 7 | TESTS | 46 | 77 | 0 | 2000 | |
67844768 | polyakoff | D | Dec. 28, 2019, 8:57 p.m. | OK | Java 8 | TESTS | 46 | 124 | 0 | 2000 | |
15833305 | RestlessAnchoret | D | Feb. 5, 2016, 9:02 p.m. | OK | Java 8 | TESTS | 46 | 124 | 0 | 2000 | |
30126158 | Nesrin | D | Sept. 6, 2017, 8:28 a.m. | OK | Java 8 | TESTS | 46 | 140 | 0 | 2000 | |
11167683 | lydxlx | D | May 19, 2015, 7:35 p.m. | OK | Java 8 | TESTS | 46 | 140 | 0 | 2000 | |
11115920 | PTNK13091996 | D | May 16, 2015, 10:10 a.m. | OK | Java 8 | TESTS | 46 | 140 | 0 | 2000 | |
58406937 | Dukkha | D | Aug. 6, 2019, 9:25 p.m. | OK | Java 8 | TESTS | 46 | 155 | 0 | 2000 | |
26164922 | donli | D | April 6, 2017, 8:27 a.m. | OK | Java 8 | TESTS | 46 | 202 | 20582400 | 2000 | |
16337749 | antonkov | D | Feb. 25, 2016, 9:04 p.m. | OK | Java 8 | TESTS | 46 | 217 | 0 | 2000 | |
10964098 | azukun | D | May 1, 2015, 12:43 p.m. | OK | MS C# | TESTS | 46 | 62 | 11980800 | 2000 | |
11096643 | polequoll | D | May 14, 2015, 9:18 a.m. | OK | MS C++ | TESTS | 46 | 15 | 0 | 2000 | |
13135249 | yangxinthu | D | Sept. 22, 2015, 4:55 a.m. | OK | MS C++ | TESTS | 46 | 30 | 0 | 2000 | |
63922397 | TianJianXing | D | Oct. 31, 2019, 12:06 p.m. | OK | MS C++ | TESTS | 46 | 31 | 0 | 2000 | |
11321970 | PolyProgrammist | D | May 27, 2015, 3:27 p.m. | OK | MS C++ | TESTS | 46 | 31 | 0 | 2000 | |
11167784 | Ikki | D | May 19, 2015, 7:41 p.m. | OK | MS C++ | TESTS | 46 | 31 | 0 | 2000 | |
49611977 | HYPERHYPERHYPERCUBELOVER | D | Feb. 8, 2019, 2:29 a.m. | OK | PyPy 3 | TESTS | 46 | 171 | 1843200 | 2000 | |
60592999 | LeiviniaBirdway | D | Sept. 15, 2019, 3:33 a.m. | OK | PyPy 3 | TESTS | 46 | 326 | 2560000 | 2000 | |
67817562 | dimkakorolevic | D | Dec. 28, 2019, 5:48 p.m. | OK | PyPy 3 | TESTS | 46 | 327 | 2560000 | 2000 | |
32605501 | collares | D | Nov. 23, 2017, 9:35 p.m. | OK | Python 3 | TESTS | 46 | 62 | 5529600 | 2000 | |
32605454 | marcospaulo | D | Nov. 23, 2017, 9:32 p.m. | OK | Python 3 | TESTS | 46 | 62 | 5529600 | 2000 | |
35863014 | ______u______ | D | March 2, 2018, 10:37 p.m. | OK | Python 3 | TESTS | 46 | 951 | 5632000 | 2000 | |
35862810 | ______n______ | D | March 2, 2018, 10:32 p.m. | OK | Python 3 | TESTS | 46 | 951 | 5632000 | 2000 | |
35862369 | _____i_____ | D | March 2, 2018, 10:23 p.m. | OK | Python 3 | TESTS | 46 | 951 | 5632000 | 2000 | |
35862296 | _____k_____ | D | March 2, 2018, 10:22 p.m. | OK | Python 3 | TESTS | 46 | 951 | 5632000 | 2000 | |
35859297 | ______k______ | D | March 2, 2018, 9:17 p.m. | OK | Python 3 | TESTS | 46 | 951 | 5632000 | 2000 | |
35859288 | ______h______ | D | March 2, 2018, 9:17 p.m. | OK | Python 3 | TESTS | 46 | 951 | 5632000 | 2000 | |
35858739 | ______i______ | D | March 2, 2018, 9:05 p.m. | OK | Python 3 | TESTS | 46 | 951 | 5632000 | 2000 | |
35857001 | ______M______ | D | March 2, 2018, 8:32 p.m. | OK | Python 3 | TESTS | 46 | 951 | 5632000 | 2000 |
Back to search problems