Codeforces Round 240 (Div. 1)

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
414 Codeforces Round 240 (Div. 1) FINISHED False 7200 340899597 April 6, 2014, 3:40 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 200 ) E Mashmokh's Designed Problem PROGRAMMING data structures 3100

B'After a lot of trying, Mashmokh designed a problem and it 's your job to solve it. You have a tree T with n vertices. Each vertex has a unique index from 1 to n. The root of T has index 1. For each vertex of this tree v, you are given a list of its children in a specific order. You must perform three types of query on this tree: The pseudo-code of function dfs(v): The first line of input contains two space-separated integers n, xe2 x80 x89m (2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105; 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105), the number of vertices of T and number of queries to perform. The i-th of the following n lines contains an integer li (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89li xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n), number of i-th vertex 's children. Then li space-separated integers follow, the j-th of them is the index of j-th child of i-th vertex. Note that the order of these vertices is important. Each of the following m lines has one of the following format: "1 v u", "2 v h", or "3 k". The first number in the line is the type of query to perform according to the problem statement. The next numbers are description of the query. It 's guaranteed that all the queries are correct. For example, in the second-type query h is at least 2 and at most distance of v from root. Also in the third-type query there is at least one vertex with distance k from the root at the time the query is given. For each query of the first or third type output one line containing the result of the query.'...

Tutorials

Codeforces Round #240 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
11312186 ShinriiTin E May 27, 2015, 3:36 a.m. OK GNU C++ TESTS 79 218 19046400 3100
38816859 xuqijie E June 1, 2018, 3:02 a.m. OK GNU C++ TESTS 79 280 17920000 3100
32795057 KirinBill E Nov. 30, 2017, 4:23 a.m. OK GNU C++ TESTS 79 280 19660800 3100
25121081 lichang E March 1, 2017, 10:56 a.m. OK GNU C++ TESTS 79 295 18124800 3100
11337586 Amr_Hassan E May 28, 2015, 7:11 p.m. OK GNU C++ TESTS 79 312 33484800 3100
7725481 Stilwell E Sept. 9, 2014, 4:31 a.m. OK GNU C++ TESTS 79 312 33587200 3100
6304637 bool_kzf E April 9, 2014, 10:12 a.m. OK GNU C++ TESTS 79 342 16179200 3100
14018581 130705009 E Nov. 2, 2015, 6:33 a.m. OK GNU C++ TESTS 79 343 15974400 3100
6323233 hza E April 11, 2014, 3:22 p.m. OK GNU C++ TESTS 79 343 16179200 3100
25124272 Hermera E March 1, 2017, 1:21 p.m. OK GNU C++ TESTS 79 343 18124800 3100
6663966 wakaka E May 20, 2014, 7:17 p.m. OK GNU C++0x TESTS 79 327 14540800 3100
7442797 Los_Angelos_Laycurse E Aug. 13, 2014, 1:21 p.m. OK GNU C++0x TESTS 79 1185 26112000 3100
7442863 Los_Angelos_Laycurse E Aug. 13, 2014, 1:29 p.m. OK GNU C++0x TESTS 79 1232 26112000 3100
62895908 luogu_bot1 E Oct. 18, 2019, 11:55 p.m. OK GNU C++11 TESTS 79 171 27443200 3100
58529976 TiwAirOAO E Aug. 10, 2019, 9:01 a.m. OK GNU C++11 TESTS 79 217 27443200 3100
60701766 sunnuozhou E Sept. 17, 2019, 1:20 a.m. OK GNU C++11 TESTS 79 218 24166400 3100
48452662 sxd666 E Jan. 16, 2019, 11:21 a.m. OK GNU C++11 TESTS 79 233 18022400 3100
40988814 ReaLNero1 E July 30, 2018, 10:22 p.m. OK GNU C++11 TESTS 79 234 30412800 3100
36117015 DZYO E March 9, 2018, 12:57 p.m. OK GNU C++11 TESTS 79 234 32460800 3100
60159386 zxyoi E Sept. 6, 2019, 8:20 a.m. OK GNU C++11 TESTS 79 249 22630400 3100
57890830 lopare E July 28, 2019, 11:46 a.m. OK GNU C++11 TESTS 79 327 17612800 3100
27471622 754986421653 E May 31, 2017, 5:04 p.m. OK GNU C++11 TESTS 79 327 17612800 3100
66589734 huhaoo E Dec. 10, 2019, 12:33 p.m. OK GNU C++11 TESTS 79 343 16793600 3100
23656880 Ali.Pi E Jan. 8, 2017, 9:15 p.m. OK GNU C++14 TESTS 79 421 18124800 3100
59339700 idxcalcal E Aug. 23, 2019, 6:57 a.m. OK GNU C++14 TESTS 79 514 15667200 3100
52231800 hychyc E April 2, 2019, 12:10 p.m. OK GNU C++14 TESTS 79 561 22220800 3100
52231761 hychyc E April 2, 2019, 12:10 p.m. OK GNU C++14 TESTS 79 577 22220800 3100
56729915 Scut82 E July 9, 2019, midnight OK GNU C++14 TESTS 79 826 18636800 3100
56729907 Scut82 E July 8, 2019, 11:59 p.m. OK GNU C++14 TESTS 79 842 18636800 3100
32568378 AChen142857 E Nov. 23, 2017, 7:19 a.m. OK GNU C++14 TESTS 79 904 17817600 3100
68592906 jambow E Jan. 11, 2020, 1:11 p.m. OK GNU C++14 TESTS 79 1153 22016000 3100
25121879 Steven_Wu E March 1, 2017, 11:35 a.m. OK GNU C++14 TESTS 79 1840 14643200 3100
25121982 Steven_Wu E March 1, 2017, 11:39 a.m. OK GNU C++14 TESTS 79 1887 14643200 3100
61396083 ruo E Sept. 28, 2019, 2:19 a.m. OK GNU C++17 TESTS 79 592 16998400 3100
58530170 vjudge1 E Aug. 10, 2019, 9:06 a.m. OK MS C++ TESTS 79 264 23859200 3100
58530667 vjudge3 E Aug. 10, 2019, 9:21 a.m. OK MS C++ TESTS 79 280 23859200 3100
6304165 yangff E April 9, 2014, 8:15 a.m. OK MS C++ TESTS 79 514 51609600 3100
7442868 Los_Angelos_Laycurse E Aug. 13, 2014, 1:29 p.m. OK MS C++ TESTS 79 1512 25804800 3100

remove filters

Back to search problems