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 |
---|---|---|---|---|---|---|
1019 | Codeforces Round 503 (by SIS, Div. 1) | FINISHED | False | 7200 | 197828699 | Aug. 11, 2018, 1:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 340 ) | E | Raining season | PROGRAMMING | data structures divide and conquer trees | 3200 |
B'By the year 3018, Summer Informatics School has greatly grown. Hotel xc2 xabBerendeetronik xc2 xbb has been chosen as a location of the school. The camp consists of n houses with n-1 pathways between them. It is possible to reach every house from each other using the pathways. Everything had been perfect until the rains started. The weather forecast promises that rains will continue for m days. A special squad of teachers was able to measure that the i -th pathway, connecting houses u_i and v_i , before the rain could be passed in b_i seconds. Unfortunately, the rain erodes the roads, so with every day the time to pass the road will increase by a_i seconds. In other words, on the t -th (from zero) day after the start of the rain, it will take a_i cdot t + b_i seconds to pass through this road. Unfortunately, despite all the efforts of teachers, even in the year 3018 not all the students are in their houses by midnight. As by midnight all students have to go to bed, it is important to find the maximal time between all the pairs of houses for each day, so every student would know the time when he has to run to his house. Find all the maximal times of paths between every pairs of houses after t=0 , t=1 , ..., t=m-1 days. In the first line you are given two integers n and m -- the number of houses in the camp and the number of raining days ( 1 <= n <= 100 ,000 ; 1 <= m <= 1 ,000 ,000 ). In the next n-1 lines you are given the integers u_i , v_i , a_i , b_i -- description of pathways ( 1 <= u_i, v_i <= n ; 0 <= a_i <= 10^5 ; 0 <= b_i <= 10^9 ). i -th pathway connects houses u_i and v_i , and in day t requires a_i cdot t + b_i seconds to pass through. It is guaranteed that every two houses are connected by a sequence of pathways. Print m integers -- the lengths of the longest path in the c'... |
61161 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
41966248 | vincent163 | E | Aug. 22, 2018, 12:28 p.m. | OK | GNU C++ | TESTS | 59 | 1138 | 84992000 | 3200 | |
41526384 | samjia2000 | E | Aug. 12, 2018, 12:09 p.m. | OK | GNU C++ | TESTS | 59 | 1169 | 90112000 | 3200 | |
68888775 | Samcompu | E | Jan. 16, 2020, 12:36 a.m. | OK | GNU C++11 | TESTS | 59 | 530 | 136294400 | 3200 | |
62030592 | songpengyu | E | Oct. 7, 2019, 12:10 a.m. | OK | GNU C++11 | TESTS | 59 | 623 | 161382400 | 3200 | |
50870736 | luogu_bot2 | E | March 6, 2019, 1:17 a.m. | OK | GNU C++11 | TESTS | 59 | 701 | 119705600 | 3200 | |
53113095 | alonefight | E | April 22, 2019, 5:39 a.m. | OK | GNU C++11 | TESTS | 59 | 701 | 189542400 | 3200 | |
55226268 | Miracle_2001 | E | June 7, 2019, 1:44 a.m. | OK | GNU C++11 | TESTS | 59 | 717 | 103526400 | 3200 | |
55226250 | Miracle_2001 | E | June 7, 2019, 1:43 a.m. | OK | GNU C++11 | TESTS | 59 | 717 | 103526400 | 3200 | |
50870507 | 207M | E | March 6, 2019, 1:02 a.m. | OK | GNU C++11 | TESTS | 59 | 717 | 119705600 | 3200 | |
57869003 | lopare | E | July 27, 2019, 11:50 p.m. | OK | GNU C++11 | TESTS | 59 | 717 | 189542400 | 3200 | |
54876601 | luogu_bot2 | E | May 31, 2019, 12:06 p.m. | OK | GNU C++11 | TESTS | 59 | 717 | 189542400 | 3200 | |
43085866 | anduturacila6 | E | Sept. 19, 2018, 4:03 p.m. | OK | GNU C++11 | TESTS | 59 | 717 | 197632000 | 3200 | |
51250483 | zjB_shadow | E | March 13, 2019, 8:22 a.m. | OK | GNU C++14 | TESTS | 59 | 561 | 125440000 | 3200 | |
54876679 | luogu_bot2 | E | May 31, 2019, 12:09 p.m. | OK | GNU C++14 | TESTS | 59 | 717 | 189542400 | 3200 | |
41562060 | DEMOPON | E | Aug. 13, 2018, 2:54 p.m. | OK | GNU C++14 | TESTS | 59 | 810 | 35020800 | 3200 | |
48205518 | mayaohua2003 | E | Jan. 11, 2019, 8:32 a.m. | OK | GNU C++14 | TESTS | 59 | 810 | 87142400 | 3200 | |
41533475 | consecutivelimit | E | Aug. 12, 2018, 3:59 p.m. | OK | GNU C++14 | TESTS | 59 | 826 | 34918400 | 3200 | |
53902997 | lyx_cjz | E | May 9, 2019, 11:20 a.m. | OK | GNU C++14 | TESTS | 59 | 888 | 87552000 | 3200 | |
53902766 | lyx_cjz | E | May 9, 2019, 11:13 a.m. | OK | GNU C++14 | TESTS | 59 | 888 | 87654400 | 3200 | |
42072578 | imeimi | E | Aug. 25, 2018, 2:09 a.m. | OK | GNU C++14 | TESTS | 59 | 904 | 83968000 | 3200 | |
49156897 | not_tfue | E | Jan. 29, 2019, 2:03 p.m. | OK | GNU C++14 | TESTS | 59 | 904 | 143872000 | 3200 | |
41850498 | georgerapeanu | E | Aug. 19, 2018, 2:35 p.m. | OK | GNU C++14 | TESTS | 59 | 920 | 97996800 | 3200 | |
65273553 | neal | E | Nov. 17, 2019, 9:42 p.m. | OK | GNU C++17 | TESTS | 59 | 592 | 80486400 | 3200 | |
65273751 | neal | E | Nov. 17, 2019, 9:51 p.m. | OK | GNU C++17 | TESTS | 59 | 638 | 83660800 | 3200 | |
48185132 | PhoenixGS | E | Jan. 10, 2019, 2:35 p.m. | OK | GNU C++17 | TESTS | 59 | 732 | 63692800 | 3200 | |
65272982 | neal | E | Nov. 17, 2019, 9:10 p.m. | OK | GNU C++17 | TESTS | 59 | 732 | 80486400 | 3200 | |
48185889 | PhoenixGS | E | Jan. 10, 2019, 3:01 p.m. | OK | GNU C++17 | TESTS | 59 | 732 | 117555200 | 3200 | |
56844461 | LangZijian | E | July 11, 2019, 1 p.m. | OK | GNU C++17 | TESTS | 59 | 748 | 35020800 | 3200 | |
48185902 | PhoenixGS | E | Jan. 10, 2019, 3:01 p.m. | OK | GNU C++17 | TESTS | 59 | 748 | 95539200 | 3200 | |
41642953 | tkj | E | Aug. 16, 2018, 6:53 a.m. | OK | GNU C++17 | TESTS | 59 | 889 | 40755200 | 3200 | |
49764935 | HIR180 | E | Feb. 11, 2019, 11:12 a.m. | OK | GNU C++17 | TESTS | 59 | 920 | 47616000 | 3200 | |
48387542 | __JuRuo | E | Jan. 14, 2019, 1:48 p.m. | OK | GNU C++17 | TESTS | 59 | 935 | 86425600 | 3200 | |
67450232 | Harpae | E | Dec. 23, 2019, 3:31 a.m. | OK | Java 8 | TESTS | 59 | 2745 | 84684800 | 3200 | |
67450771 | Harpae | E | Dec. 23, 2019, 4:01 a.m. | OK | Java 8 | TESTS | 59 | 2745 | 87961600 | 3200 | |
67450949 | Harpae | E | Dec. 23, 2019, 4:10 a.m. | OK | Java 8 | TESTS | 59 | 2760 | 84582400 | 3200 | |
67451012 | Harpae | E | Dec. 23, 2019, 4:13 a.m. | OK | Java 8 | TESTS | 59 | 2760 | 87961600 | 3200 | |
67449113 | Harpae | E | Dec. 23, 2019, 2:11 a.m. | OK | Java 8 | TESTS | 59 | 2776 | 84582400 | 3200 | |
67450698 | Harpae | E | Dec. 23, 2019, 3:57 a.m. | OK | Java 8 | TESTS | 59 | 2776 | 87961600 | 3200 | |
67450853 | Harpae | E | Dec. 23, 2019, 4:05 a.m. | OK | Java 8 | TESTS | 59 | 2792 | 84582400 | 3200 | |
67450173 | Harpae | E | Dec. 23, 2019, 3:27 a.m. | OK | Java 8 | TESTS | 59 | 2807 | 84582400 | 3200 | |
67451081 | Harpae | E | Dec. 23, 2019, 4:16 a.m. | OK | Java 8 | TESTS | 59 | 2807 | 84684800 | 3200 | |
67449316 | Harpae | E | Dec. 23, 2019, 2:26 a.m. | OK | Java 8 | TESTS | 59 | 2838 | 84684800 | 3200 |
Back to search problems