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 |
---|---|---|---|---|---|---|
1338 | Codeforces Round 633 (Div. 1) | FINISHED | False | 7200 | 145122899 | April 12, 2020, 2:05 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 245 ) | E | JYPnation | PROGRAMMING | graphs |
B"Due to the success of TWICE, JYP Entertainment has earned countless money and emerged as the biggest entertainment firm by market capitalization. Therefore, the boss, JYP, has decided to create a new nation and has appointed you to provide a design diagram. The new nation consists of n cities and some roads between them. JYP has given some restrictions: JYP has given criteria for your diagram. For two cities A , B , let dis(A,B) be the smallest number of roads you have to go through to get from A to B . If it is not possible to walk from A to B , dis(A,B) = 614n . Then, the efficiency value is defined to be the sum of dis(A,B) for all ordered pairs of distinct cities (A,B) . Note that dis(A,B) doesn't have to be equal to dis(B,A) . You have drawn a design diagram that satisfies JYP's restrictions. Find the sum of dis(A,B) over all ordered pairs of cities (A,B) with A neq B . Note that the input is given in compressed form. But even though it is compressed, you'd better use fast input. The first line contains a single integer n ( 4 <= n <= 8000 , n equiv 0 pmod{4} ) -- the number of cities. A binary matrix is encrypted in the following format. Each of n next lines contains frac{n}{4} one-digit hexadecimal numbers (that is, these numbers can be represented either as digits from 0 to 9 or as uppercase Latin letters from A to F ). Binary representation of each of these numbers denotes next 4 elements of the matrix in the corresponding row. For example, if the number B is given, then the corresponding elements are 1011 , and if the number is 5 , then the corresponding elements are 0101 . After you obtain the decrypted binary matrix, the j -th character of the i -th row is 1 if the one-directional road between cities i and j is directed from i to j , and"... |
Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
76437437 | yhx-12243 | E | April 13, 2020, 12:08 a.m. | OK | GNU C++14 | TESTS | 18 | 1154 | 529715200 | ||
76428090 | tanuj.johal_cs17 | E | April 12, 2020, 8:27 p.m. | OK | GNU C++14 | TESTS | 18 | 1981 | 8499200 | ||
76443869 | AlexanderL | E | April 13, 2020, 3:02 a.m. | OK | GNU C++17 | TESTS | 18 | 327 | 8192000 | ||
76434774 | emma | E | April 12, 2020, 10:49 p.m. | OK | GNU C++17 | TESTS | 18 | 670 | 64512000 | ||
76397300 | tourist | E | April 12, 2020, 3:51 p.m. | OK | GNU C++17 | TESTS | 18 | 811 | 9523200 | ||
76419686 | aid | E | April 12, 2020, 6:41 p.m. | OK | GNU C++17 | TESTS | 18 | 1777 | 8396800 | ||
76414214 | arpit4427 | E | April 12, 2020, 5:49 p.m. | OK | GNU C++17 | TESTS | 18 | 1793 | 8704000 | ||
76433509 | P___ | E | April 12, 2020, 10:15 p.m. | OK | GNU C++17 | TESTS | 18 | 1809 | 8704000 | ||
76403815 | Radewoosh | E | April 12, 2020, 4:04 p.m. | OK | GNU C++17 | TESTS | 18 | 1825 | 8806400 | ||
76406789 | Maripium | E | April 12, 2020, 4:55 p.m. | OK | GNU C++17 | TESTS | 18 | 1871 | 128409600 | ||
76434479 | ecnerwala | E | April 12, 2020, 10:40 p.m. | OK | GNU C++17 (64) | TESTS | 18 | 327 | 8806400 | ||
76434529 | ecnerwala | E | April 12, 2020, 10:42 p.m. | OK | GNU C++17 (64) | TESTS | 18 | 343 | 8806400 | ||
76434133 | ecnerwala | E | April 12, 2020, 10:32 p.m. | OK | GNU C++17 (64) | TESTS | 18 | 389 | 8806400 | ||
76432715 | scott_wu | E | April 12, 2020, 9:55 p.m. | OK | GNU C++17 (64) | TESTS | 18 | 404 | 65945600 | ||
76433003 | scott_wu | E | April 12, 2020, 10:02 p.m. | OK | GNU C++17 (64) | TESTS | 18 | 405 | 65945600 | ||
76413511 | Ari | E | April 12, 2020, 5:43 p.m. | OK | GNU C++17 (64) | TESTS | 18 | 561 | 8294400 | ||
76434078 | ecnerwala | E | April 12, 2020, 10:30 p.m. | OK | GNU C++17 (64) | TESTS | 18 | 702 | 64307200 | ||
76433749 | ecnerwala | E | April 12, 2020, 10:22 p.m. | OK | GNU C++17 (64) | TESTS | 18 | 841 | 8601600 | ||
76416304 | Benq | E | April 12, 2020, 6:07 p.m. | OK | GNU C++17 (64) | TESTS | 18 | 842 | 8294400 | ||
76433920 | ecnerwala | E | April 12, 2020, 10:26 p.m. | OK | GNU C++17 (64) | TESTS | 18 | 857 | 8601600 |
Back to search problems