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 |
---|---|---|---|---|---|---|
472 | Codeforces Round 270 | FINISHED | False | 9000 | 325693504 | Sept. 28, 2014, 3:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 5572 ) | D | Design Tutorial: Inverse the Problem | PROGRAMMING | dfs and similar ds shortest paths trees | 1900 |
B'There is an easy way to obtain a new task from an old one called "Inverse the problem": we give an output of the original task, and ask to generate an input, such that solution to the original problem will produce the output we provided. The hard task of Topcoder Open 2014 Round 2C, InverseRMQ, is a good example. Now let 's create a task this way. We will use the task: you are given a tree, please calculate the distance between any pair of its nodes. Yes, it is very easy, but the inverse version is a bit harder: you are given an n xe2 x80 x89 xc3 x97 xe2 x80 x89n distance matrix. Determine if it is the distance matrix of a weighted tree (all weights must be positive integers). The first line contains an integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892000) -- the number of nodes in that graph. Then next n lines each contains n integers di, xe2 x80 x89j (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89di, xe2 x80 x89j xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) -- the distance between node i and node j. If there exists such a tree, output "YES", otherwise output "NO". In the first example, the required tree exists. It has one edge between nodes 1 and 2 with weight 2, another edge between nodes 1 and 3 with weight 7. In the second example, it is impossible because d1, xe2 x80 x891 should be 0, but it is 1. In the third example, it is impossible because d1, xe2 x80 x892 should equal d2, xe2 x80 x891.'... |
Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
19558177 | StarScreamOwl | D | Aug. 1, 2016, 10:48 a.m. | OK | Delphi | TESTS | 47 | 733 | 176640000 | 1900 | |
15611274 | kosa_98 | D | Jan. 27, 2016, 12:26 p.m. | OK | FPC | TESTS | 47 | 436 | 16076800 | 1900 | |
14410838 | quang_proltt | D | Nov. 22, 2015, 8:30 a.m. | OK | FPC | TESTS | 47 | 530 | 208896000 | 1900 | |
9812830 | Glaceon08 | D | Feb. 13, 2015, 2:19 a.m. | OK | FPC | TESTS | 47 | 654 | 40550400 | 1900 | |
10052155 | Valerich | D | Feb. 27, 2015, 1:18 p.m. | OK | FPC | TESTS | 47 | 654 | 128307200 | 1900 | |
11509075 | igdor99 | D | June 9, 2015, 11:27 a.m. | OK | FPC | TESTS | 47 | 701 | 113356800 | 1900 | |
19301561 | ice_tea | D | July 21, 2016, 12:10 p.m. | OK | FPC | TESTS | 47 | 779 | 112332800 | 1900 | |
10399753 | magieNoire | D | March 22, 2015, 12:39 p.m. | OK | GNU C | TESTS | 47 | 639 | 16179200 | 1900 | |
40379852 | tanass | D | July 15, 2018, 1:22 p.m. | OK | GNU C | TESTS | 47 | 655 | 16076800 | 1900 | |
40987853 | ReaLNero1 | D | July 30, 2018, 9:32 p.m. | OK | GNU C++ | TESTS | 47 | 155 | 16179200 | 1900 | |
16141747 | vjtest | D | Feb. 18, 2016, 1:04 p.m. | OK | GNU C++ | TESTS | 47 | 155 | 32358400 | 1900 | |
16135651 | x_s_j | D | Feb. 18, 2016, 3:40 a.m. | OK | GNU C++ | TESTS | 47 | 155 | 32358400 | 1900 | |
18876324 | SoiMae | D | July 4, 2016, 4:16 a.m. | OK | GNU C++ | TESTS | 47 | 155 | 39731200 | 1900 | |
11496768 | enot110 | D | June 8, 2015, 11:04 a.m. | OK | GNU C++ | TESTS | 47 | 156 | 16076800 | 1900 | |
16134803 | vjtest | D | Feb. 18, 2016, 1:54 a.m. | OK | GNU C++ | TESTS | 47 | 156 | 32358400 | 1900 | |
18876356 | SoiMae | D | July 4, 2016, 4:19 a.m. | OK | GNU C++ | TESTS | 47 | 156 | 61132800 | 1900 | |
16134819 | __debug | D | Feb. 18, 2016, 1:56 a.m. | OK | GNU C++ | TESTS | 47 | 171 | 32358400 | 1900 | |
18876365 | SoiMae | D | July 4, 2016, 4:20 a.m. | OK | GNU C++ | TESTS | 47 | 171 | 61132800 | 1900 | |
15968496 | GEOTCBRL | D | Feb. 12, 2016, 9:22 a.m. | OK | GNU C++ | TESTS | 47 | 186 | 16281600 | 1900 | |
9450864 | sokian | D | Jan. 17, 2015, 2:38 p.m. | OK | GNU C++0x | TESTS | 47 | 280 | 31948800 | 1900 | |
9815732 | cr.rusucosmin | D | Feb. 13, 2015, 12:10 p.m. | OK | GNU C++0x | TESTS | 47 | 607 | 92876800 | 1900 | |
9724320 | noor148 | D | Feb. 5, 2015, 7:21 a.m. | OK | GNU C++0x | TESTS | 47 | 623 | 16076800 | 1900 | |
9744762 | illarionovam_onu | D | Feb. 7, 2015, 12:56 p.m. | OK | GNU C++0x | TESTS | 47 | 624 | 15974400 | 1900 | |
9772069 | ONU_cat_POWER | D | Feb. 8, 2015, 2:12 p.m. | OK | GNU C++0x | TESTS | 47 | 639 | 16281600 | 1900 | |
9238398 | dic_phuc | D | Dec. 24, 2014, 6:41 a.m. | OK | GNU C++0x | TESTS | 47 | 670 | 49152000 | 1900 | |
9238541 | dic_phuc | D | Dec. 24, 2014, 7:11 a.m. | OK | GNU C++0x | TESTS | 47 | 670 | 53862400 | 1900 | |
9509707 | Xellos | D | Jan. 23, 2015, 9:12 a.m. | OK | GNU C++0x | TESTS | 47 | 732 | 34201600 | 1900 | |
9349435 | ranasaha | D | Jan. 3, 2015, 12:24 a.m. | OK | GNU C++0x | TESTS | 47 | 733 | 80486400 | 1900 | |
9353586 | determinism | D | Jan. 3, 2015, 2:36 p.m. | OK | GNU C++0x | TESTS | 47 | 748 | 70144000 | 1900 | |
57866507 | rainboy | D | July 27, 2019, 9:25 p.m. | OK | GNU C11 | TESTS | 47 | 576 | 16179200 | 1900 | |
64195106 | luogu_bot2 | D | Nov. 4, 2019, 9:21 a.m. | OK | GNU C++11 | TESTS | 47 | 124 | 32256000 | 1900 | |
45374575 | luogu_bot3 | D | Nov. 6, 2018, 11:41 a.m. | OK | GNU C++11 | TESTS | 47 | 155 | 16486400 | 1900 | |
37989785 | arg_53 | D | May 7, 2018, 9:30 a.m. | OK | GNU C++11 | TESTS | 47 | 156 | 19865600 | 1900 | |
45347820 | luogu_bot1 | D | Nov. 6, 2018, 5:10 a.m. | OK | GNU C++11 | TESTS | 47 | 156 | 51609600 | 1900 | |
19291010 | ZWY | D | July 21, 2016, 2:23 a.m. | OK | GNU C++11 | TESTS | 47 | 171 | 16179200 | 1900 | |
45374639 | luogu_bot1 | D | Nov. 6, 2018, 11:43 a.m. | OK | GNU C++11 | TESTS | 47 | 171 | 16486400 | 1900 | |
35501782 | imilki | D | Feb. 19, 2018, 6:40 p.m. | OK | GNU C++11 | TESTS | 47 | 171 | 18329600 | 1900 | |
14678311 | yarak | D | Dec. 6, 2015, 5:02 p.m. | OK | GNU C++11 | TESTS | 47 | 171 | 32665600 | 1900 | |
44820601 | 207M | D | Oct. 25, 2018, 1:57 a.m. | OK | GNU C++11 | TESTS | 47 | 249 | 64614400 | 1900 | |
44820618 | luogu_bot4 | D | Oct. 25, 2018, 1:58 a.m. | OK | GNU C++11 | TESTS | 47 | 265 | 64614400 | 1900 | |
35056752 | fanache99 | D | Feb. 8, 2018, 11:57 a.m. | OK | GNU C++14 | TESTS | 47 | 280 | 55910400 | 1900 | |
49133449 | wleung_bvg | D | Jan. 29, 2019, 6:15 a.m. | OK | GNU C++14 | TESTS | 47 | 499 | 133529600 | 1900 | |
24021350 | vjudge5 | D | Jan. 22, 2017, 1:40 a.m. | OK | GNU C++14 | TESTS | 47 | 701 | 50892800 | 1900 | |
39277144 | vjudge3 | D | June 16, 2018, 1:39 a.m. | OK | GNU C++14 | TESTS | 47 | 717 | 17203200 | 1900 | |
67183374 | BugsBunny | D | Dec. 19, 2019, 2:17 a.m. | OK | GNU C++14 | TESTS | 47 | 764 | 16281600 | 1900 | |
52480522 | dark__knight | D | April 8, 2019, 5:03 a.m. | OK | GNU C++14 | TESTS | 47 | 780 | 32256000 | 1900 | |
46662994 | Sofokles | D | Dec. 5, 2018, 9:05 p.m. | OK | GNU C++14 | TESTS | 47 | 780 | 98816000 | 1900 | |
58598405 | the_compiler | D | Aug. 11, 2019, 1:25 p.m. | OK | GNU C++14 | TESTS | 47 | 795 | 16076800 | 1900 | |
22207573 | wrg0ababd | D | Nov. 14, 2016, 12:55 p.m. | OK | GNU C++14 | TESTS | 47 | 795 | 59801600 | 1900 | |
61736538 | amirack003 | D | Oct. 2, 2019, 6:25 p.m. | OK | GNU C++14 | TESTS | 47 | 811 | 32256000 | 1900 | |
56417822 | AOTime | D | July 2, 2019, 5:47 a.m. | OK | GNU C++17 | TESTS | 47 | 795 | 16076800 | 1900 | |
51826848 | jakab922 | D | March 25, 2019, 2:20 p.m. | OK | GNU C++17 | TESTS | 47 | 795 | 55910400 | 1900 | |
46663044 | pit4h | D | Dec. 5, 2018, 9:08 p.m. | OK | GNU C++17 | TESTS | 47 | 795 | 98816000 | 1900 | |
45311805 | vjudge1 | D | Nov. 5, 2018, 4:53 a.m. | OK | GNU C++17 | TESTS | 47 | 810 | 16281600 | 1900 | |
51826755 | jakab922 | D | March 25, 2019, 2:18 p.m. | OK | GNU C++17 | TESTS | 47 | 810 | 55910400 | 1900 | |
60480573 | ruo | D | Sept. 13, 2019, 10:13 a.m. | OK | GNU C++17 | TESTS | 47 | 826 | 39936000 | 1900 | |
45311504 | vjudge5 | D | Nov. 5, 2018, 4:31 a.m. | OK | GNU C++17 | TESTS | 47 | 826 | 81203200 | 1900 | |
47452142 | vjudge2 | D | Dec. 24, 2018, 10:28 a.m. | OK | GNU C++17 | TESTS | 47 | 842 | 16179200 | 1900 | |
54388073 | vjudge1 | D | May 19, 2019, 2:31 p.m. | OK | GNU C++17 | TESTS | 47 | 842 | 17715200 | 1900 | |
48849802 | heptathlon123 | D | Jan. 23, 2019, 4:52 p.m. | OK | GNU C++17 | TESTS | 47 | 842 | 97280000 | 1900 | |
63269328 | synapse | D | Oct. 24, 2019, 2:55 a.m. | OK | Go | TESTS | 47 | 327 | 14233600 | 1900 | |
13115079 | Martynas | D | Sept. 20, 2015, 1:48 p.m. | OK | Go | TESTS | 47 | 561 | 39424000 | 1900 | |
69440695 | TheSawan | D | Jan. 23, 2020, 9:22 p.m. | OK | Java 11 | TESTS | 47 | 1232 | 140902400 | 1900 | |
9349670 | xiaowuc1 | D | Jan. 3, 2015, 2:54 a.m. | OK | Java 6 | TESTS | 47 | 1964 | 169779200 | 1900 | |
14327620 | DukeOfYork | D | Nov. 18, 2015, 2:27 p.m. | OK | Java 7 | TESTS | 47 | 327 | 14233600 | 1900 | |
9369945 | I_love_Malika | D | Jan. 6, 2015, 6:12 a.m. | OK | Java 7 | TESTS | 47 | 1028 | 40243200 | 1900 | |
16035677 | Nirmit | D | Feb. 15, 2016, 3:34 p.m. | OK | Java 7 | TESTS | 47 | 1060 | 53145600 | 1900 | |
9369986 | I_love_Malika | D | Jan. 6, 2015, 6:23 a.m. | OK | Java 7 | TESTS | 47 | 1091 | 40140800 | 1900 | |
13120042 | vjudge5 | D | Sept. 20, 2015, 10:06 p.m. | OK | Java 7 | TESTS | 47 | 1169 | 141516800 | 1900 | |
14327275 | DukeOfYork | D | Nov. 18, 2015, 2:02 p.m. | OK | Java 7 | TESTS | 47 | 1434 | 119193600 | 1900 | |
18693565 | Ron_M | D | June 24, 2016, 4:25 a.m. | OK | Java 7 | TESTS | 47 | 1543 | 185241600 | 1900 | |
10193518 | Badry | D | March 7, 2015, 4:33 p.m. | OK | Java 7 | TESTS | 47 | 1731 | 239411200 | 1900 | |
10630751 | Sumeet.Varma | D | April 8, 2015, 1:30 p.m. | OK | Java 7 | TESTS | 47 | 1746 | 129843200 | 1900 | |
13915807 | FabianConP | D | Oct. 28, 2015, 1:44 p.m. | OK | Java 7 | TESTS | 47 | 1778 | 114278400 | 1900 | |
57866563 | Dukkha | D | July 27, 2019, 9:27 p.m. | OK | Java 8 | TESTS | 47 | 218 | 16896000 | 1900 | |
47616233 | SevenDeadlySins | D | Dec. 28, 2018, 10:37 a.m. | OK | Java 8 | TESTS | 47 | 654 | 23961600 | 1900 | |
18386273 | osama.alb96 | D | June 12, 2016, 8:04 a.m. | OK | Java 8 | TESTS | 47 | 686 | 39936000 | 1900 | |
12423609 | DeJw | D | Aug. 9, 2015, 8:56 a.m. | OK | Java 8 | TESTS | 47 | 717 | 10752000 | 1900 | |
50572023 | Solo_Player. | D | Feb. 27, 2019, 3:56 p.m. | OK | Java 8 | TESTS | 47 | 764 | 38604800 | 1900 | |
43619579 | KulikAlex | D | Sept. 30, 2018, 6:22 p.m. | OK | Java 8 | TESTS | 47 | 779 | 16998400 | 1900 | |
67998981 | manish_98 | D | Dec. 31, 2019, 9:46 a.m. | OK | Java 8 | TESTS | 47 | 794 | 38092800 | 1900 | |
13603433 | alibaba | D | Oct. 14, 2015, 7:55 a.m. | OK | Java 8 | TESTS | 47 | 795 | 48947200 | 1900 | |
58680601 | Vaibhav96 | D | Aug. 12, 2019, 6:44 p.m. | OK | Java 8 | TESTS | 47 | 858 | 136396800 | 1900 | |
11204713 | tomdmitriev | D | May 22, 2015, 4:10 p.m. | OK | Java 8 | TESTS | 47 | 919 | 11264000 | 1900 | |
69076193 | mban259 | D | Jan. 19, 2020, 3:20 a.m. | OK | Mono C# | TESTS | 47 | 1575 | 61952000 | 1900 | |
13669802 | Ahmed_Mostafa | D | Oct. 16, 2015, 5:58 p.m. | OK | MS C++ | TESTS | 47 | 576 | 16179200 | 1900 | |
12396194 | Sunyuchen | D | Aug. 7, 2015, 3:01 a.m. | OK | MS C++ | TESTS | 47 | 577 | 16076800 | 1900 | |
11115505 | Irkutsk_ISRU | D | May 16, 2015, 9:28 a.m. | OK | MS C++ | TESTS | 47 | 592 | 36761600 | 1900 | |
59521109 | vjudge5 | D | Aug. 26, 2019, 11:54 a.m. | OK | MS C++ | TESTS | 47 | 592 | 64921600 | 1900 | |
13100046 | yangxinthu | D | Sept. 19, 2015, 10:41 a.m. | OK | MS C++ | TESTS | 47 | 607 | 16076800 | 1900 | |
16018911 | xieofxie | D | Feb. 14, 2016, 2:04 p.m. | OK | MS C++ | TESTS | 47 | 639 | 16179200 | 1900 | |
9605428 | F.H.N.98 | D | Jan. 28, 2015, 4:29 p.m. | OK | MS C++ | TESTS | 47 | 716 | 64102400 | 1900 | |
10347752 | vjudge5 | D | March 19, 2015, 11:02 a.m. | OK | MS C++ | TESTS | 47 | 748 | 16281600 | 1900 | |
10347904 | shaonianguai | D | March 19, 2015, 11:20 a.m. | OK | MS C++ | TESTS | 47 | 779 | 16281600 | 1900 | |
12725851 | oi111 | D | Aug. 28, 2015, 12:41 a.m. | OK | MS C++ | TESTS | 47 | 795 | 44339200 | 1900 | |
60511463 | CtrlAlt | D | Sept. 14, 2019, 3:19 a.m. | OK | MS C++ 2017 | TESTS | 47 | 1138 | 80588800 | 1900 |
Back to search problems