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 |
|---|---|---|---|---|---|---|
| 1193 | CEOI 2019 day 2 online mirror (unrated, IOI format) | FINISHED | False | 18000 | 212104523 | July 28, 2019, 8:05 a.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 460 ) | A | Amusement Park | PROGRAMMING | *special dp math |
You have been hired to supervise the project of a new amusement park. The park will have a special gimmick: directed slides that can get customers from one attraction to another quickly and in an entertaining way. The park owner has given you the current project: a list of planned attractions and a list of slides that should be built between them. However, him being a businessman, he casually envisioned the impossible: among other things, he projected a slide coming from the Haunted Castle to the Roller Coaster, another from the Roller Coaster to the Drop Tower, and a third from the Drop Tower to the Haunted Castle. As the slides can only go downhill, it is evident why this is a problem. You don't have the luxury of ignoring the laws of physics when building the park, so you have to request changes in the project. Maybe he would accept reversing the slide between the Drop Tower and the Haunted Castle? Formally: The project is a list of attractions and a list of directed slides. Each slide starts at one attraction and ends at another attraction. A proposal is obtained from the project by reversing the directions of some slides (possibly none or all of them). A proposal is legal if there is a way to assign an elevation to each attraction in such a way that every slide goes downhill. The cost of a proposal is the number of slides whose directions were reversed. For a given project, find and report the sum of costs all legal proposals. Since this number may be large, output it modulo (998,244,353). The first line contains two space-separated integers (n), (m) ((1 \leq n \leq 18), (0 \leq m \leq n(n-1)/2)) – the number of attractions and the number of slides, respectively. The attractions are numbered (1) through (n). Then, (m) lines follow. The (i)-th of these lines contains two space-separated integers (a_i), (b_i) ((1 \leq a_i, b_i \leq n)) denoting a slide from (a_i) to (b_i). You may assume that: Ther |
| T |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 64467190 | foreverlasting | A | Nov. 7, 2019, 12:03 p.m. | OK | GNU C++11 | TESTS | 169 | 421 | 41984000 | ||
| 58210424 | Rose_max | A | Aug. 3, 2019, 8:35 a.m. | OK | GNU C++11 | TESTS | 169 | 436 | 41881600 | ||
| 66544028 | ffffxk | A | Dec. 9, 2019, 12:35 p.m. | OK | GNU C++11 | TESTS | 169 | 529 | 39936000 | ||
| 57884336 | TLE | A | July 28, 2019, 9:10 a.m. | OK | GNU C++11 | TESTS | 169 | 624 | 41984000 | ||
| 61845841 | wbs501 | A | Oct. 4, 2019, 11:18 a.m. | OK | GNU C++11 | TESTS | 169 | 732 | 2457600 | ||
| 58081158 | Bodo | A | July 31, 2019, 1:57 p.m. | OK | GNU C++11 | TESTS | 169 | 795 | 2355200 | ||
| 57942039 | czjxyz | A | July 29, 2019, 12:55 p.m. | OK | GNU C++11 | TESTS | 169 | 842 | 3174400 | ||
| 57918202 | Loging | A | July 29, 2019, 2:54 a.m. | OK | GNU C++11 | TESTS | 169 | 889 | 9318400 | ||
| 57935718 | GyojunYoun | A | July 29, 2019, 10:36 a.m. | OK | GNU C++11 | TESTS | 169 | 1185 | 2150400 | ||
| 70159560 | luogu_bot5 | A | Feb. 3, 2020, 2:53 p.m. | OK | GNU C++11 | TESTS | 169 | 1248 | 348160000 | ||
| 64494922 | Minamoto | A | Nov. 7, 2019, 10:42 p.m. | OK | GNU C++14 | TESTS | 169 | 327 | 55705600 | ||
| 64464856 | Minamoto | A | Nov. 7, 2019, 11:27 a.m. | OK | GNU C++14 | TESTS | 169 | 343 | 55705600 | ||
| 61125728 | Paulliant | A | Sept. 23, 2019, 2:13 p.m. | OK | GNU C++14 | TESTS | 169 | 389 | 43110400 | ||
| 61123926 | Paulliant | A | Sept. 23, 2019, 2:11 p.m. | OK | GNU C++14 | TESTS | 169 | 389 | 43110400 | ||
| 57968197 | wakaka | A | July 30, 2019, 4:07 a.m. | OK | GNU C++14 | TESTS | 169 | 483 | 82124800 | ||
| 58124510 | zsyzsy | A | Aug. 1, 2019, 12:06 p.m. | OK | GNU C++14 | TESTS | 169 | 561 | 84070400 | ||
| 57975472 | tmwilliamlin168 | A | July 30, 2019, 7:33 a.m. | OK | GNU C++14 | TESTS | 169 | 795 | 36966400 | ||
| 58033765 | MrDecomposition | A | July 30, 2019, 5:10 p.m. | OK | GNU C++14 | TESTS | 169 | 873 | 9625600 | ||
| 57889900 | Paulliant | A | July 28, 2019, 11:25 a.m. | OK | GNU C++14 | TESTS | 169 | 951 | 2355200 | ||
| 57916473 | Paulliant | A | July 29, 2019, 1:43 a.m. | OK | GNU C++14 | TESTS | 169 | 1013 | 2355200 | ||
| 58214319 | Elegia | A | Aug. 3, 2019, 10:04 a.m. | OK | GNU C++17 | TESTS | 169 | 312 | 184934400 | ||
| 57913781 | Benq | A | July 28, 2019, 10:53 p.m. | OK | GNU C++17 | TESTS | 169 | 420 | 20992000 | ||
| 64463938 | Minamoto foreverlasting | A | Nov. 7, 2019, 11:13 a.m. | OK | GNU C++17 | TESTS | 169 | 529 | 42086400 | ||
| 58569895 | codeurway_codeforces | A | Aug. 11, 2019, 9:38 a.m. | OK | GNU C++17 | TESTS | 169 | 560 | 42086400 | ||
| 58527107 | Holland_Pig | A | Aug. 10, 2019, 7:40 a.m. | OK | GNU C++17 | TESTS | 169 | 560 | 42086400 | ||
| 58107646 | dragonslayerintraining | A | Aug. 1, 2019, 5:22 a.m. | OK | GNU C++17 | TESTS | 169 | 561 | 80896000 | ||
| 58052466 | YangDavid | A | July 31, 2019, 3:13 a.m. | OK | GNU C++17 | TESTS | 169 | 607 | 65536000 | ||
| 57900508 | Benq | A | July 28, 2019, 3:28 p.m. | OK | GNU C++17 | TESTS | 169 | 733 | 35840000 | ||
| 58089502 | krijgertje | A | July 31, 2019, 4:58 p.m. | OK | GNU C++17 | TESTS | 169 | 935 | 44339200 | ||
| 58184354 | mango_lassi | A | Aug. 2, 2019, 4:30 p.m. | OK | GNU C++17 | TESTS | 169 | 951 | 3174400 | ||
| 58673173 | EmilConst | A | Aug. 12, 2019, 3:16 p.m. | OK | MS C++ 2017 | TESTS | 169 | 2043 | 4198400 | ||
| 57897175 | TOXait | A | July 28, 2019, 2:05 p.m. | OK | MS C++ 2017 | TESTS | 169 | 2542 | 4198400 | ||
| 57897064 | TOXait | A | July 28, 2019, 2:02 p.m. | OK | MS C++ 2017 | TESTS | 169 | 2542 | 4198400 |
Back to search problems