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 |
---|---|---|---|---|---|---|
1192 | CEOI 2019 day 1 online mirror (unrated, IOI format) | FINISHED | False | 18000 | 173116463 | July 25, 2019, 2:05 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 338 ) | C | Cubeword | PROGRAMMING | *special brute force dp meet-in-the-middle |
B"A cubeword is a special type of a crossword. When building a cubeword, you start by choosing a positive integer a : the side length of the cube. Then, you build a big cube consisting of a x a x a unit cubes. This big cube has 12 edges. Then, you discard all unit cubes that do not touch the edges of the big cube. The figure below shows the object you will get for a=6 . Finally, you assign a letter to each of the unit cubes in the object. You must get a meaningful word along each edge of the big cube. Each edge can be read in either direction, and it is sufficient if one of the two directions of reading gives a meaningful word. The figure below shows the object for a=6 in which some unit cubes already have assigned letters. You can already read the words 'SUBMIT', 'ACCEPT' and 'TURING' along three edges of the big cube. You are given a list of valid words. Each word from the wordlist may appear on arbitrarily many edges of a valid cubeword. Find and report the number of different cubewords that can be constructed, modulo 998,244,353 . If one cubeword can be obtained from another by rotation or mirroring, they are considered distinct. The first line contains a single integer n ( 1 <= q n <= q 100,000 ) xe2 x80 x93 the number of words. Then, n lines follow. Each of these lines contains one word that can appear on the edges of the big cube. The length of each word is between 3 and 10, inclusive. It is guaranteed that all words are different. Output a single integer, the number of distinct cubewords for the given list of valid words modulo 998,244,353 . Subtask 1 (21 points): the words consist only of letters 'a' - 'f' (lowercase) Subtask 2 (29 points): the words consist only of letters 'a' - 'p' (lowercase) Subtask 3 (34 points): the words consist of letters 'a' - 'p' (lowercase) and 'A' - 'P' (uppercase) Subtask 4 (16 points): the words consist of letters 'a' - 'z' (lowercase), 'A' - 'Z' (uppercase) and digits "... |
E |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
57953130 | eriksuenderhauf | C | July 29, 2019, 5:24 p.m. | OK | GNU C++11 | TESTS | 90 | 389 | 11673600 | ||
58147586 | PaoloB | C | Aug. 1, 2019, 11:20 p.m. | OK | GNU C++11 | TESTS | 90 | 389 | 139264000 | ||
58048215 | MudCoal | C | July 31, 2019, 1:23 a.m. | OK | GNU C++11 | TESTS | 90 | 389 | 280064000 | ||
57765238 | LJC00118 | C | July 25, 2019, 7:57 p.m. | OK | GNU C++11 | TESTS | 90 | 499 | 9011200 | ||
58962022 | LJC00118 | C | Aug. 17, 2019, 3:45 p.m. | OK | GNU C++11 | TESTS | 90 | 514 | 9011200 | ||
64467158 | foreverlasting | C | Nov. 7, 2019, 12:03 p.m. | OK | GNU C++11 | TESTS | 90 | 530 | 545792000 | ||
57807715 | Tiberiu | C | July 26, 2019, 3:51 p.m. | OK | GNU C++11 | TESTS | 90 | 545 | 10649600 | ||
57948130 | Bodo | C | July 29, 2019, 3:11 p.m. | OK | GNU C++11 | TESTS | 90 | 545 | 59289600 | ||
57758068 | .ckodser. | C | July 25, 2019, 4:58 p.m. | OK | GNU C++11 | TESTS | 90 | 546 | 10342400 | ||
57913902 | lopare | C | July 28, 2019, 11:02 p.m. | OK | GNU C++11 | TESTS | 90 | 546 | 11878400 | ||
57823338 | liouzhou_101 | C | July 27, 2019, 1:21 a.m. | OK | GNU C++14 | TESTS | 90 | 280 | 10752000 | ||
57823290 | liouzhou_101 | C | July 27, 2019, 1:18 a.m. | OK | GNU C++14 | TESTS | 90 | 280 | 10752000 | ||
57807526 | liouzhou_101 | C | July 26, 2019, 3:46 p.m. | OK | GNU C++14 | TESTS | 90 | 296 | 10752000 | ||
57763758 | nhho | C | July 25, 2019, 7:04 p.m. | OK | GNU C++14 | TESTS | 90 | 327 | 22528000 | ||
57764339 | nhho | C | July 25, 2019, 7:27 p.m. | OK | GNU C++14 | TESTS | 90 | 374 | 22528000 | ||
57829107 | shdut | C | July 27, 2019, 5:17 a.m. | OK | GNU C++14 | TESTS | 90 | 405 | 11776000 | ||
57754948 | atoiz | C | July 25, 2019, 3:58 p.m. | OK | GNU C++14 | TESTS | 90 | 421 | 6963200 | ||
57825726 | NoLongerRed | C | July 27, 2019, 2:57 a.m. | OK | GNU C++14 | TESTS | 90 | 467 | 11571200 | ||
57787782 | popovicirobert | C | July 26, 2019, 8:25 a.m. | OK | GNU C++14 | TESTS | 90 | 468 | 10649600 | ||
57752239 | I_love_chickpea | C | July 25, 2019, 3:10 p.m. | OK | GNU C++14 | TESTS | 90 | 483 | 7065600 | ||
58646424 | ArshiaDadras | C | Aug. 12, 2019, 5:58 a.m. | OK | GNU C++17 | TESTS | 90 | 327 | 7372800 | ||
57757209 | Jatana | C | July 25, 2019, 4:41 p.m. | OK | GNU C++17 | TESTS | 90 | 358 | 12390400 | ||
57778420 | IgorI | C | July 26, 2019, 4:53 a.m. | OK | GNU C++17 | TESTS | 90 | 358 | 59392000 | ||
57808533 | VEGAnn | C | July 26, 2019, 4:12 p.m. | OK | GNU C++17 | TESTS | 90 | 390 | 12800000 | ||
57808390 | VEGAnn | C | July 26, 2019, 4:07 p.m. | OK | GNU C++17 | TESTS | 90 | 390 | 12800000 | ||
57756265 | anpans | C | July 25, 2019, 4:24 p.m. | OK | GNU C++17 | TESTS | 90 | 420 | 7782400 | ||
58035926 | zimpha | C | July 30, 2019, 6:03 p.m. | OK | GNU C++17 | TESTS | 90 | 421 | 11161600 | ||
70836990 | Mlxa | C | Feb. 12, 2020, 10:33 a.m. | OK | GNU C++17 | TESTS | 90 | 421 | 13414400 | ||
58520112 | Elegia | C | Aug. 10, 2019, 3:56 a.m. | OK | GNU C++17 | TESTS | 90 | 436 | 12390400 | ||
57986144 | dorijanlendvaj | C | July 30, 2019, 11:28 a.m. | OK | GNU C++17 | TESTS | 90 | 436 | 25292800 | ||
57765901 | queueue | C | July 25, 2019, 8:24 p.m. | OK | Java 8 | TESTS | 90 | 1294 | 6963200 | ||
57896826 | TOXait | C | July 28, 2019, 1:56 p.m. | OK | MS C++ 2017 | TESTS | 90 | 717 | 11673600 |
Back to search problems