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 |
---|---|---|---|---|---|---|
888 | Educational Codeforces Round 32 | FINISHED | False | 7200 | 227285723 | Nov. 9, 2017, 3:05 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 880 ) | F | Connecting Vertices | PROGRAMMING | dp graphs | 2500 |
B'There are n points marked on the plane. The points are situated in such a way that they form a regular polygon (marked points are its vertices, and they are numbered in counter-clockwise order). You can draw n xe2 x80 x89- xe2 x80 x891 segments, each connecting any two marked points, in such a way that all points have to be connected with each other (directly or indirectly). But there are some restrictions. Firstly, some pairs of points cannot be connected directly and have to be connected undirectly. Secondly, the segments you draw must not intersect in any point apart from the marked points (that is, if any two segments intersect and their intersection is not a marked point, then the picture you have drawn is invalid). How many ways are there to connect all vertices with n xe2 x80 x89- xe2 x80 x891 segments? Two ways are considered different iff there exist some pair of points such that a segment is drawn between them in the first way of connection, but it is not drawn between these points in the second one. Since the answer might be large, output it modulo 109 xe2 x80 x89+ xe2 x80 x897. The first line contains one number n (3 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89500) -- the number of marked points. Then n lines follow, each containing n elements. ai, xe2 x80 x89j (j-th element of line i) is equal to 1 iff you can connect points i and j directly (otherwise ai, xe2 x80 x89j xe2 x80 x89= xe2 x80 x890). It is guaranteed that for any pair of points ai, xe2 x80 x89j xe2 x80 x89= xe2 x80 x89aj, xe2 x80 x89i, and for any point ai, xe2 x80 x89i xe2 x80 x89= xe2 x80 x890. Print the number of ways to connect points modulo 109 xe2 x80 x89+ xe2 x80 x897. '... |
Educational Codeforces Round 32 - Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
32273469 | nanae1914 | F | Nov. 12, 2017, 11:11 p.m. | OK | D | TESTS | 33 | 2574 | 22732800 | 2500 | |
32221580 | cyand1317 | F | Nov. 11, 2017, 2:06 p.m. | OK | FPC | TESTS | 33 | 935 | 7168000 | 2500 | |
32528259 | FoolPerson | F | Nov. 21, 2017, 2:33 p.m. | OK | GNU C++ | TESTS | 33 | 467 | 5017600 | 2500 | |
40702616 | qianzhengjie | F | July 24, 2018, 11:49 a.m. | OK | GNU C++ | TESTS | 33 | 483 | 2867200 | 2500 | |
40695060 | luhaoqi | F | July 24, 2018, 7:38 a.m. | OK | GNU C++ | TESTS | 33 | 483 | 3072000 | 2500 | |
40400933 | vjudge1 | F | July 16, 2018, 7:36 a.m. | OK | GNU C++ | TESTS | 33 | 530 | 5324800 | 2500 | |
32539230 | vjudge4 | F | Nov. 22, 2017, 3:17 a.m. | OK | GNU C++ | TESTS | 33 | 546 | 3276800 | 2500 | |
32349573 | Cacoa | F | Nov. 16, 2017, 7:51 a.m. | OK | GNU C++ | TESTS | 33 | 592 | 4403200 | 2500 | |
32539263 | vjudge4 | F | Nov. 22, 2017, 3:20 a.m. | OK | GNU C++ | TESTS | 33 | 607 | 3276800 | 2500 | |
32197367 | wonrzrzeczny | F | Nov. 10, 2017, 2:12 p.m. | OK | GNU C++ | TESTS | 33 | 607 | 6144000 | 2500 | |
35548104 | hamlet | F | Feb. 21, 2018, 1:07 p.m. | OK | GNU C++ | TESTS | 33 | 639 | 4505600 | 2500 | |
32203785 | KrK | F | Nov. 10, 2017, 6:56 p.m. | OK | GNU C++ | TESTS | 33 | 717 | 3072000 | 2500 | |
68202635 | rainboy | F | Jan. 4, 2020, 4:29 p.m. | OK | GNU C11 | TESTS | 33 | 452 | 2969600 | 2500 | |
46683610 | luogu_bot5 | F | Dec. 6, 2018, 1:05 p.m. | OK | GNU C++11 | TESTS | 33 | 296 | 2867200 | 2500 | |
63240573 | zhoufangyuanPT | F | Oct. 23, 2019, 1:21 p.m. | OK | GNU C++11 | TESTS | 33 | 358 | 2969600 | 2500 | |
61317469 | MoRanSky | F | Sept. 26, 2019, 11:34 a.m. | OK | GNU C++11 | TESTS | 33 | 358 | 3072000 | 2500 | |
61317497 | MoRanSky | F | Sept. 26, 2019, 11:34 a.m. | OK | GNU C++11 | TESTS | 33 | 374 | 3072000 | 2500 | |
34216947 | FoolMike | F | Jan. 16, 2018, 8:50 a.m. | OK | GNU C++11 | TESTS | 33 | 374 | 5222400 | 2500 | |
64655086 | ffffxk | F | Nov. 10, 2019, 7 p.m. | OK | GNU C++11 | TESTS | 33 | 390 | 3174400 | 2500 | |
56601018 | tyler178 | F | July 6, 2019, 12:17 a.m. | OK | GNU C++11 | TESTS | 33 | 390 | 5120000 | 2500 | |
43811594 | SylvanasS | F | Oct. 5, 2018, 1:22 a.m. | OK | GNU C++11 | TESTS | 33 | 405 | 3174400 | 2500 | |
64631795 | ffffxk | F | Nov. 10, 2019, 10:23 a.m. | OK | GNU C++11 | TESTS | 33 | 405 | 3174400 | 2500 | |
44931732 | luogu_bot3 | F | Oct. 27, 2018, 2:20 a.m. | OK | GNU C++11 | TESTS | 33 | 405 | 5222400 | 2500 | |
59697469 | 1114057228 | F | Aug. 30, 2019, 9:10 a.m. | OK | GNU C++14 | TESTS | 33 | 296 | 3072000 | 2500 | |
53846618 | NotNight | F | May 7, 2019, 11:21 a.m. | OK | GNU C++14 | TESTS | 33 | 312 | 3072000 | 2500 | |
59697503 | 1114057228 | F | Aug. 30, 2019, 9:11 a.m. | OK | GNU C++14 | TESTS | 33 | 312 | 3072000 | 2500 | |
47322848 | LODB---D | F | Dec. 21, 2018, 8:45 a.m. | OK | GNU C++14 | TESTS | 33 | 358 | 2252800 | 2500 | |
32244353 | xxxcxxx | F | Nov. 12, 2017, 1:14 p.m. | OK | GNU C++14 | TESTS | 33 | 373 | 2764800 | 2500 | |
55607366 | bjn | F | June 16, 2019, 2:05 a.m. | OK | GNU C++14 | TESTS | 33 | 373 | 3072000 | 2500 | |
39793325 | Jester | F | June 30, 2018, 9:32 a.m. | OK | GNU C++14 | TESTS | 33 | 374 | 2048000 | 2500 | |
40979166 | ReaLNero1 | F | July 30, 2018, 4:58 p.m. | OK | GNU C++14 | TESTS | 33 | 390 | 2764800 | 2500 | |
32890798 | SureYeaah | F | Dec. 3, 2017, 5:17 a.m. | OK | GNU C++14 | TESTS | 33 | 405 | 5017600 | 2500 | |
32212472 | GuluTheFish | F | Nov. 11, 2017, 6:51 a.m. | OK | GNU C++14 | TESTS | 33 | 405 | 5120000 | 2500 | |
64641431 | Siyuan | F | Nov. 10, 2019, 1:18 p.m. | OK | GNU C++17 | TESTS | 33 | 327 | 3072000 | 2500 | |
53486910 | Kmcode | F | April 29, 2019, 5 a.m. | OK | GNU C++17 | TESTS | 33 | 358 | 5836800 | 2500 | |
53486895 | Kmcode | F | April 29, 2019, 4:59 a.m. | OK | GNU C++17 | TESTS | 33 | 373 | 5836800 | 2500 | |
53486906 | Kmcode | F | April 29, 2019, 4:59 a.m. | OK | GNU C++17 | TESTS | 33 | 374 | 5836800 | 2500 | |
53486898 | Kmcode | F | April 29, 2019, 4:59 a.m. | OK | GNU C++17 | TESTS | 33 | 374 | 5836800 | 2500 | |
43812517 | Rose_max | F | Oct. 5, 2018, 2:16 a.m. | OK | GNU C++17 | TESTS | 33 | 389 | 3072000 | 2500 | |
51436758 | idxcalccalc | F | March 18, 2019, 7 a.m. | OK | GNU C++17 | TESTS | 33 | 421 | 3379200 | 2500 | |
67616206 | Pankin | F | Dec. 25, 2019, 5:19 p.m. | OK | GNU C++17 | TESTS | 33 | 452 | 2048000 | 2500 | |
65488767 | justfocusplease | F | Nov. 21, 2019, 1:48 p.m. | OK | GNU C++17 | TESTS | 33 | 546 | 6041600 | 2500 | |
57928891 | interestingLSY | F | July 29, 2019, 8:03 a.m. | OK | GNU C++17 | TESTS | 33 | 577 | 20275200 | 2500 | |
68202634 | Dukkha | F | Jan. 4, 2020, 4:29 p.m. | OK | Java 11 | TESTS | 33 | 1107 | 0 | 2500 | |
32168850 | uwi | F | Nov. 9, 2017, 3:56 p.m. | OK | Java 8 | TESTS | 33 | 1060 | 0 | 2500 | |
34929674 | svilen | F | Feb. 4, 2018, 7:17 p.m. | OK | Java 8 | TESTS | 33 | 1778 | 20684800 | 2500 | |
35954897 | iamavalon | F | March 5, 2018, 2:53 a.m. | OK | Java 8 | TESTS | 33 | 1980 | 27033600 | 2500 | |
32353705 | vjudge3 | F | Nov. 16, 2017, 11:42 a.m. | OK | MS C++ | TESTS | 33 | 1669 | 6041600 | 2500 |
Back to search problems