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 |
---|---|---|---|---|---|---|
140 | Codeforces Round 100 | FINISHED | False | 7200 | 406133999 | Jan. 4, 2012, 3 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 948 ) | E | New Year Garland | PROGRAMMING | combinatorics dp | 2600 |
B"As Gerald, Alexander, Sergey and Gennady are already busy with the usual New Year chores, Edward hastily decorates the New Year Tree. And any decent New Year Tree must be decorated with a good garland. Edward has lamps of m colors and he wants to make a garland from them. That garland should represent a sequence whose length equals L. Edward's tree is n layers high and Edward plans to hang the garland so as to decorate the first layer with the first l1 lamps, the second layer -- with the next l2 lamps and so on. The last n-th layer should be decorated with the last ln lamps, Edward adores all sorts of math puzzles, so he suddenly wondered: how many different ways to assemble the garland are there given that the both following two conditions are met: Help Edward find the answer to this nagging problem or else he won't manage to decorate the Tree by New Year. You may consider that Edward has an unlimited number of lamps of each of m colors and it is not obligatory to use all m colors. The garlands are considered different if they differ in at least one position when represented as sequences. Calculate the answer modulo p. The first line contains three integers n, m and p (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89106, 2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89p xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) which are the number of the tree's layers, the number of the lamps' colors and module correspondingly. The next line contains n integers li (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89li xe2 x80 x89 xe2 x89 xa4 xe2 x80 x895000, ). Print the only integer -- the number of garlands modulo p. In the first sample the following variants are possible: 121|1|12, 121|1|21, 121|2|12, 121|2|21, 212|1|12, 212|1|21, 212|2|12, 212|2|21. In the second sample the following variants are possible: 12|13, 12|23, 12|31, 12|32 and so on. "... |
Codeforces Round #100: problem analysis |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
1005484 | tourist | E | Jan. 4, 2012, 4:12 p.m. | OK | FPC | TESTS | 33 | 2020 | 127385600 | 2600 | |
1013243 | coolinging | E | Jan. 5, 2012, 3:24 p.m. | OK | FPC | TESTS | 33 | 2390 | 218931200 | 2600 | |
1012794 | zanoes | E | Jan. 5, 2012, 12:10 p.m. | OK | FPC | TESTS | 33 | 2450 | 210432000 | 2600 | |
1293287 | object022 | E | March 6, 2012, 8 a.m. | OK | FPC | TESTS | 33 | 2630 | 233676800 | 2600 | |
1313926 | sillycross | E | March 9, 2012, 12:15 a.m. | OK | FPC | TESTS | 33 | 2700 | 101683200 | 2600 | |
1042205 | waterkid | E | Jan. 13, 2012, 3:54 a.m. | OK | FPC | TESTS | 33 | 2970 | 205619200 | 2600 | |
1015413 | mage | E | Jan. 6, 2012, 7:22 p.m. | OK | GNU C | TESTS | 33 | 1190 | 206028800 | 2600 | |
1010467 | eduardische | E | Jan. 4, 2012, 6:42 p.m. | OK | GNU C | TESTS | 33 | 1910 | 113868800 | 2600 | |
1010451 | eduardische | E | Jan. 4, 2012, 6:40 p.m. | OK | GNU C | TESTS | 33 | 2110 | 113868800 | 2600 | |
19722789 | Andy_21 | E | Aug. 8, 2016, 7:40 a.m. | OK | GNU C | TESTS | 33 | 2184 | 110387200 | 2600 | |
1383597 | moreD | E | March 21, 2012, 8:37 a.m. | OK | GNU C++ | TESTS | 33 | 920 | 106086400 | 2600 | |
3672055 | dnk | E | May 5, 2013, 9:34 a.m. | OK | GNU C++ | TESTS | 33 | 937 | 104345600 | 2600 | |
1122040 | grsiy | E | Jan. 28, 2012, 5:13 a.m. | OK | GNU C++ | TESTS | 33 | 950 | 150118400 | 2600 | |
1574470 | point3251 | E | April 19, 2012, 3:58 a.m. | OK | GNU C++ | TESTS | 33 | 970 | 206745600 | 2600 | |
1383589 | moreD | E | March 21, 2012, 8:34 a.m. | OK | GNU C++ | TESTS | 33 | 970 | 206745600 | 2600 | |
2384459 | Nomad | E | Oct. 18, 2012, 3:15 p.m. | OK | GNU C++ | TESTS | 33 | 1000 | 104550400 | 2600 | |
40992002 | ReaLNero1 | E | July 31, 2018, 1 a.m. | OK | GNU C++ | TESTS | 33 | 1028 | 104550400 | 2600 | |
14639243 | u33how | E | Dec. 3, 2015, 7:41 p.m. | OK | GNU C++ | TESTS | 33 | 1058 | 104345600 | 2600 | |
10993152 | 1150076053 | E | May 4, 2015, 6:54 a.m. | OK | GNU C++ | TESTS | 33 | 1060 | 104448000 | 2600 | |
1075226 | tomekkulczynski | E | Jan. 18, 2012, 11:29 a.m. | OK | GNU C++ | TESTS | 33 | 1080 | 118784000 | 2600 | |
1045908 | Archon.JK | E | Jan. 15, 2012, 1:20 a.m. | OK | GNU C++0x | TESTS | 33 | 1140 | 105779200 | 2600 | |
7149149 | FancyCoder | E | July 18, 2014, 1:05 p.m. | OK | GNU C++0x | TESTS | 33 | 1340 | 205414400 | 2600 | |
7680995 | HandIeNeeded | E | Sept. 4, 2014, 10:41 a.m. | OK | GNU C++0x | TESTS | 33 | 1590 | 205004800 | 2600 | |
9713394 | hzwer | E | Feb. 4, 2015, 11:59 a.m. | OK | GNU C++0x | TESTS | 33 | 1808 | 216985600 | 2600 | |
9704489 | 737363395 | E | Feb. 3, 2015, 5:31 p.m. | OK | GNU C++0x | TESTS | 33 | 2246 | 200396800 | 2600 | |
1045898 | Archon.JK | E | Jan. 15, 2012, 1:05 a.m. | OK | GNU C++0x | TESTS | 33 | 3920 | 101683200 | 2600 | |
53946168 | Miracle_2001 | E | May 10, 2019, 6:48 a.m. | OK | GNU C++11 | TESTS | 33 | 778 | 108544000 | 2600 | |
31477650 | zhangzy | E | Oct. 18, 2017, 11:15 a.m. | OK | GNU C++11 | TESTS | 33 | 840 | 104652800 | 2600 | |
48057832 | cxcxccx | E | Jan. 7, 2019, 1:22 p.m. | OK | GNU C++11 | TESTS | 33 | 842 | 104448000 | 2600 | |
52252598 | comld | E | April 3, 2019, 2:21 a.m. | OK | GNU C++11 | TESTS | 33 | 904 | 120627200 | 2600 | |
62174680 | cyf32768 | E | Oct. 9, 2019, 3:24 a.m. | OK | GNU C++11 | TESTS | 33 | 996 | 192512000 | 2600 | |
44769200 | Elegia | E | Oct. 24, 2018, 11:33 a.m. | OK | GNU C++11 | TESTS | 33 | 998 | 104550400 | 2600 | |
35839115 | ______n______ | E | March 2, 2018, 1:46 p.m. | OK | GNU C++11 | TESTS | 33 | 998 | 106188800 | 2600 | |
35839110 | ______u______ | E | March 2, 2018, 1:46 p.m. | OK | GNU C++11 | TESTS | 33 | 998 | 106188800 | 2600 | |
35839012 | _____k_____ | E | March 2, 2018, 1:44 p.m. | OK | GNU C++11 | TESTS | 33 | 998 | 106188800 | 2600 | |
35839010 | _____i_____ | E | March 2, 2018, 1:44 p.m. | OK | GNU C++11 | TESTS | 33 | 998 | 106188800 | 2600 | |
25267268 | ntopia | E | March 5, 2017, 4:09 p.m. | OK | GNU C++14 | TESTS | 33 | 1184 | 106291200 | 2600 | |
68853169 | MakeSPGreatAgain | E | Jan. 15, 2020, 9:44 a.m. | OK | GNU C++14 | TESTS | 33 | 1248 | 104652800 | 2600 | |
69845969 | yan-zp | E | Jan. 30, 2020, 2:21 p.m. | OK | GNU C++14 | TESTS | 33 | 1276 | 101171200 | 2600 | |
33880902 | DraZxlNDdt | E | Jan. 3, 2018, 8:43 a.m. | OK | GNU C++14 | TESTS | 33 | 1310 | 206745600 | 2600 | |
28598103 | LetItGo | E | July 16, 2017, 2:17 p.m. | OK | GNU C++14 | TESTS | 33 | 1310 | 206745600 | 2600 | |
50871185 | bestFy | E | March 6, 2019, 1:51 a.m. | OK | GNU C++14 | TESTS | 33 | 1340 | 108339200 | 2600 | |
68839923 | RyoPham | E | Jan. 15, 2020, 5:22 a.m. | OK | GNU C++14 | TESTS | 33 | 1340 | 176844800 | 2600 | |
33636944 | Toxel | E | Dec. 26, 2017, 5:48 a.m. | OK | GNU C++14 | TESTS | 33 | 1370 | 207155200 | 2600 | |
50870212 | qiqi20021026 | E | March 6, 2019, 12:38 a.m. | OK | GNU C++14 | TESTS | 33 | 1370 | 224972800 | 2600 | |
23670833 | Ali.Pi | E | Jan. 9, 2017, 8:39 p.m. | OK | GNU C++14 | TESTS | 33 | 1404 | 102195200 | 2600 | |
68850544 | vipghn2003 | E | Jan. 15, 2020, 8:49 a.m. | OK | GNU C++17 | TESTS | 33 | 1028 | 104550400 | 2600 | |
62050710 | hjk1030 | E | Oct. 7, 2019, 9:20 a.m. | OK | GNU C++17 | TESTS | 33 | 1060 | 104652800 | 2600 | |
69626275 | user060804 | E | Jan. 27, 2020, 3:54 p.m. | OK | GNU C++17 | TESTS | 33 | 1060 | 208998400 | 2600 | |
68851301 | HoaPhat1 | E | Jan. 15, 2020, 9:02 a.m. | OK | GNU C++17 | TESTS | 33 | 1122 | 104550400 | 2600 | |
49985103 | Mandir_Wahi_Banayenge | E | Feb. 16, 2019, 10:12 a.m. | OK | GNU C++17 | TESTS | 33 | 1184 | 201216000 | 2600 | |
68217337 | Gnoud__ | E | Jan. 5, 2020, 1:18 a.m. | OK | GNU C++17 | TESTS | 33 | 1184 | 217395200 | 2600 | |
48664510 | vjudge4 | E | Jan. 21, 2019, 7:29 a.m. | OK | GNU C++17 | TESTS | 33 | 1340 | 205414400 | 2600 | |
48661329 | Asagami | E | Jan. 21, 2019, 6:09 a.m. | OK | GNU C++17 | TESTS | 33 | 1402 | 205414400 | 2600 | |
42327574 | ruo | E | Sept. 1, 2018, 7:13 a.m. | OK | GNU C++17 | TESTS | 33 | 1528 | 201216000 | 2600 | |
47287237 | vjudge2 | E | Dec. 20, 2018, 6:58 a.m. | OK | GNU C++17 | TESTS | 33 | 1558 | 108748800 | 2600 | |
1027872 | uwi | E | Jan. 10, 2012, 9:53 a.m. | OK | Java 6 | TESTS | 33 | 1360 | 195481600 | 2600 | |
1009015 | Petr | E | Jan. 4, 2012, 4:57 p.m. | OK | Java 6 | TESTS | 33 | 1410 | 226406400 | 2600 | |
1007213 | cerealguy | E | Jan. 4, 2012, 4:34 p.m. | OK | Java 6 | TESTS | 33 | 1560 | 101478400 | 2600 | |
4505018 | uwi | E | Sept. 19, 2013, 4:40 p.m. | OK | Java 6 | TESTS | 33 | 1590 | 152268800 | 2600 | |
1007254 | Egor | E | Jan. 4, 2012, 4:35 p.m. | OK | Java 6 | TESTS | 33 | 1660 | 189235200 | 2600 | |
1012628 | OgieKako | E | Jan. 5, 2012, 11:03 a.m. | OK | Java 6 | TESTS | 33 | 2110 | 189132800 | 2600 | |
4505003 | uwi | E | Sept. 19, 2013, 4:38 p.m. | OK | Java 6 | TESTS | 33 | 2120 | 150835200 | 2600 | |
1012238 | YuukaKazami | E | Jan. 5, 2012, 7:53 a.m. | OK | Java 6 | TESTS | 33 | 2310 | 168652800 | 2600 | |
1014319 | Di735 | E | Jan. 6, 2012, 6:43 a.m. | OK | Java 6 | TESTS | 33 | 2520 | 167321600 | 2600 | |
4504976 | uwi | E | Sept. 19, 2013, 4:35 p.m. | OK | Java 6 | TESTS | 33 | 2526 | 152268800 | 2600 | |
2299870 | trunghieu11 | E | Oct. 4, 2012, 3:46 p.m. | OK | Java 7 | TESTS | 33 | 1656 | 143974400 | 2600 | |
4503194 | hama-du | E | Sept. 19, 2013, 11:49 a.m. | OK | Java 7 | TESTS | 33 | 3244 | 150937600 | 2600 | |
1528133 | Fefer_Ivan | E | April 13, 2012, 11:51 a.m. | OK | MS C++ | TESTS | 33 | 1420 | 206745600 | 2600 | |
1010895 | Fdg | E | Jan. 4, 2012, 8:07 p.m. | OK | MS C++ | TESTS | 33 | 1590 | 129843200 | 2600 | |
1010901 | Fdg | E | Jan. 4, 2012, 8:08 p.m. | OK | MS C++ | TESTS | 33 | 1630 | 105676800 | 2600 | |
52764550 | vjudge4 | E | April 15, 2019, 1:29 a.m. | OK | MS C++ | TESTS | 33 | 1652 | 104448000 | 2600 | |
1010106 | Shef | E | Jan. 4, 2012, 6:14 p.m. | OK | MS C++ | TESTS | 33 | 1700 | 215756800 | 2600 | |
1009722 | Kenny_HORROR | E | Jan. 4, 2012, 5:48 p.m. | OK | MS C++ | TESTS | 33 | 2030 | 206336000 | 2600 | |
7491522 | dkflfkdeh | E | Aug. 17, 2014, 10:09 a.m. | OK | MS C++ | TESTS | 33 | 2088 | 205004800 | 2600 | |
1443702 | Sigmar | E | March 30, 2012, 2:19 p.m. | OK | MS C++ | TESTS | 33 | 2220 | 206643200 | 2600 | |
20652191 | siscon_org | E | Sept. 16, 2016, 4:09 a.m. | OK | MS C++ | TESTS | 33 | 2244 | 222208000 | 2600 | |
1014684 | zjut_DD | E | Jan. 6, 2012, 11:04 a.m. | OK | MS C++ | TESTS | 33 | 2970 | 160460800 | 2600 |
Back to search problems