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 |
|---|---|---|---|---|---|---|
| 1387 | Baltic Olympiad in Informatics 2020, Day 2 (IOI, Unofficial Mirror Contest, Unrated) | FINISHED | False | 19800 | 180903323 | July 23, 2020, 11:05 a.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 202 ) | C | Viruses | PROGRAMMING | *special |
The Committee for Research on Binary Viruses discovered a method of replication for a large family of viruses whose genetic codes are sequences of zeros and ones. Each virus originates from a single gene; for simplicity genes are denoted by integers from (0) to (G - 1). At each moment in time a virus is a sequence of genes. When mutation occurs, one of the genes from the sequence is replaced by a certain sequence of genes, according to the mutation table. The virus stops mutating when it consists only of genes (0) and (1). For instance, for the following mutation table: () 2 \to \langle 0\ 1 \rangle \\ 3 \to \langle 2\ 0\ 0\rangle\\ 3 \to \langle 1\ 3\rangle\\ 4 \to \langle 0\ 3\ 1\ 2\rangle\\ 5 \to \langle 2\ 1\rangle\\ 5 \to \langle 5\rangle () a virus that initially consisted of a single gene (4), could have mutated as follows: () \langle 4 \rangle \to \langle \underline{0\ 3\ 1\ 2} \rangle \to \langle 0\ \underline{2\ 0\ 0}\ 1\ 2 \rangle \to \langle 0\ \underline{0\ 1}\ 0\ 0\ 1\ 2 \rangle \to \langle 0\ 0\ 1\ 0\ 0\ 1\ \underline{0\ 1} \rangle () or in another way: () \langle 4 \rangle \to \langle \underline{0\ 3\ 1\ 2} \rangle \to \langle 0\ \underline{1\ 3}\ 1\ 2 \rangle \to \langle 0\ 1\ 3\ 1\ \underline{0\ 1} \rangle \to \langle 0\ 1\ \underline{2\ 0\ 0}\ 1\ 0\ 1 \rangle \to \langle 0\ 1\ \underline{0\ 1}\ 0\ 0\ 1\ 0\ 1 \rangle () Viruses are detected by antibodies that identify the presence of specific continuous fragments of zeros and ones in the viruses' codes. For example, an antibody reacting to a fragment (\langle 0\ 0\ 1\ 0\ 0 \rangle) will detect a virus (\langle 0\ 0\ 1\ 0\ 0\ 1\ 0\ 1 \rangle), but it will not detect a virus (\langle 0\ 1\ 0\ 1\ 0\ 0\ 1\ 0\ 1 \rangle). For each gene from (2) to (G-1), the scientists are wondering whether a given set of antibodies is enough to detect all viruses that can emerge through mutations from this gene. If not, they want to know the leng |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 91092170 | duality | C | Aug. 26, 2020, 9:40 p.m. | OK | GNU C++11 | TESTS | 107 | 77 | 6860800 | ||
| 91092271 | duality | C | Aug. 26, 2020, 9:44 p.m. | OK | GNU C++11 | TESTS | 107 | 78 | 6860800 | ||
| 88681049 | atoiz | C | Aug. 1, 2020, 4:33 p.m. | OK | GNU C++11 | TESTS | 107 | 109 | 6348800 | ||
| 91635997 | Asriel_Dreemurr | C | Sept. 2, 2020, 11:32 a.m. | OK | GNU C++11 | TESTS | 107 | 109 | 73932800 | ||
| 87933876 | fagu | C | July 24, 2020, 6:24 p.m. | OK | GNU C++11 | TESTS | 107 | 187 | 12902400 | ||
| 91092040 | duality | C | Aug. 26, 2020, 9:36 p.m. | OK | GNU C++11 | TESTS | 107 | 623 | 39936000 | ||
| 91091507 | duality | C | Aug. 26, 2020, 9:19 p.m. | OK | GNU C++11 | TESTS | 107 | 624 | 39936000 | ||
| 91091117 | duality | C | Aug. 26, 2020, 9:06 p.m. | OK | GNU C++11 | TESTS | 107 | 639 | 39936000 | ||
| 91092060 | duality | C | Aug. 26, 2020, 9:37 p.m. | OK | GNU C++11 | TESTS | 107 | 655 | 39936000 | ||
| 87781698 | duality | C | July 23, 2020, 2:14 p.m. | OK | GNU C++11 | TESTS | 107 | 733 | 6144000 | ||
| 89186599 | Maripium | C | Aug. 7, 2020, 8:10 a.m. | OK | GNU C++14 | TESTS | 107 | 62 | 7168000 | ||
| 87861742 | rama_pang | C | July 24, 2020, 12:41 p.m. | OK | GNU C++14 | TESTS | 107 | 139 | 9728000 | ||
| 87796128 | KMAASZRAA | C | July 23, 2020, 5:02 p.m. | OK | GNU C++14 | TESTS | 107 | 576 | 6553600 | ||
| 88827620 | krijgertje | C | Aug. 3, 2020, 8:22 p.m. | OK | GNU C++14 | TESTS | 107 | 623 | 43827200 | ||
| 88413772 | cz_xuyixuan | C | July 30, 2020, 7:40 a.m. | OK | GNU C++14 | TESTS | 107 | 670 | 6451200 | ||
| 87784699 | yasugongshang | C | July 23, 2020, 2:42 p.m. | OK | GNU C++14 | TESTS | 107 | 702 | 6451200 | ||
| 89625826 | babu__bhaiya | C | Aug. 12, 2020, 6:15 a.m. | OK | GNU C++17 | TESTS | 107 | 62 | 13004800 | ||
| 88563710 | jiangly | C | July 31, 2020, 6:36 a.m. | OK | GNU C++17 | TESTS | 107 | 77 | 6963200 | ||
| 88386073 | Egor.Lifar | C | July 29, 2020, 8:47 p.m. | OK | GNU C++17 | TESTS | 107 | 78 | 14745600 | ||
| 91604640 | gongsuidashen | C | Sept. 2, 2020, 1:08 a.m. | OK | GNU C++17 | TESTS | 107 | 109 | 2662400 | ||
| 87784381 | Amoo_Safar | C | July 23, 2020, 2:39 p.m. | OK | GNU C++17 | TESTS | 107 | 109 | 13824000 | ||
| 87791479 | Shayan.P | C | July 23, 2020, 4:07 p.m. | OK | GNU C++17 | TESTS | 107 | 109 | 13926400 | ||
| 89304566 | luogu_bot3 | C | Aug. 8, 2020, 4:38 a.m. | OK | GNU C++17 | TESTS | 107 | 155 | 25804800 | ||
| 87775258 | 2qbingxuan | C | July 23, 2020, 1:13 p.m. | OK | GNU C++17 | TESTS | 107 | 171 | 14745600 | ||
| 88945548 | minakami_yuki | C | Aug. 5, 2020, 12:30 p.m. | OK | GNU C++17 | TESTS | 107 | 312 | 6348800 | ||
| 87789624 | mango_lassi | C | July 23, 2020, 3:48 p.m. | OK | GNU C++17 | TESTS | 107 | 358 | 6348800 | ||
| 89187071 | Maripium | C | Aug. 7, 2020, 8:16 a.m. | OK | GNU C++17 (64) | TESTS | 107 | 46 | 8192000 | ||
| 87776530 | jiangly | C | July 23, 2020, 1:25 p.m. | OK | GNU C++17 (64) | TESTS | 107 | 61 | 8089600 | ||
| 87793448 | Benq | C | July 23, 2020, 4:28 p.m. | OK | GNU C++17 (64) | TESTS | 107 | 62 | 9216000 | ||
| 87768748 | cookiedoth | C | July 23, 2020, 12:09 p.m. | OK | GNU C++17 (64) | TESTS | 107 | 62 | 14028800 | ||
| 88161124 | MarcoMeijer | C | July 27, 2020, 10:36 p.m. | OK | GNU C++17 (64) | TESTS | 107 | 62 | 228864000 | ||
| 88616021 | Lucina | C | July 31, 2020, 6:22 p.m. | OK | GNU C++17 (64) | TESTS | 107 | 77 | 105472000 | ||
| 91440814 | rqi | C | Aug. 30, 2020, 9:28 p.m. | OK | GNU C++17 (64) | TESTS | 107 | 78 | 11161600 | ||
| 88615796 | Lucina | C | July 31, 2020, 6:18 p.m. | OK | GNU C++17 (64) | TESTS | 107 | 93 | 105472000 | ||
| 87786530 | ainta | C | July 23, 2020, 3:10 p.m. | OK | GNU C++17 (64) | TESTS | 107 | 140 | 15564800 | ||
| 87784383 | wucstdio | C | July 23, 2020, 2:39 p.m. | OK | GNU C++17 (64) | TESTS | 107 | 421 | 9318400 |
Back to search problems