Educational Codeforces Round 15

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
702 Educational Codeforces Round 15 FINISHED False 7200 262018799 July 29, 2016, 3 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2613 ) E Analysis of Pathes in Functional Graph PROGRAMMING data structures graphs 2100

B'You are given a functional graph. It is a directed graph, in which from each vertex goes exactly one arc. The vertices are numerated from 0 to n xe2 x80 x89- xe2 x80 x891. Graph is given as the array f0, xe2 x80 x89f1, xe2 x80 x89..., xe2 x80 x89fn xe2 x80 x89- xe2 x80 x891, where fi -- the number of vertex to which goes the only arc from the vertex i. Besides you are given array with weights of the arcs w0, xe2 x80 x89w1, xe2 x80 x89..., xe2 x80 x89wn xe2 x80 x89- xe2 x80 x891, where wi -- the arc weight from i to fi. Also you are given the integer k (the length of the path) and you need to find for each vertex two numbers si and mi, where: The length of the path is the number of arcs on this path. The first line contains two integers n, xe2 x80 x89k (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105, xe2 x80 x891 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891010). The second line contains the sequence f0, xe2 x80 x89f1, xe2 x80 x89..., xe2 x80 x89fn xe2 x80 x89- xe2 x80 x891 (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89fi xe2 x80 x89< xe2 x80 x89n) and the third -- the sequence w0, xe2 x80 x89w1, xe2 x80 x89..., xe2 x80 x89wn xe2 x80 x89- xe2 x80 x891 (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89wi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89108). Print n lines, the pair of integers si, mi in each line.'...

Tutorials

46324

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
19885747 lkmcfj E Aug. 15, 2016, 10:35 a.m. OK FPC TESTS 51 327 8806400 2100
19746989 Gray_58 E Aug. 9, 2016, 12:24 p.m. OK FPC TESTS 51 935 207155200 2100
36554309 rainboy E March 23, 2018, 7:50 p.m. OK GNU C TESTS 51 561 67481600 2100
36554280 rainboy E March 23, 2018, 7:48 p.m. OK GNU C TESTS 51 639 67481600 2100
19598863 aayushkapadia E Aug. 3, 2016, 1:43 p.m. OK GNU C++ TESTS 51 109 3993600 2100
22589984 Figthlighting E Nov. 29, 2016, 2:39 a.m. OK GNU C++ TESTS 51 124 6451200 2100
19595135 LincHpin E Aug. 3, 2016, 9:48 a.m. OK GNU C++ TESTS 51 156 4915200 2100
19981403 AmberFrame E Aug. 20, 2016, 12:04 p.m. OK GNU C++ TESTS 51 156 8499200 2100
19601286 msohcw E Aug. 3, 2016, 4:02 p.m. OK GNU C++ TESTS 51 171 7270400 2100
41919379 dgklr E Aug. 21, 2018, 2:28 a.m. OK GNU C++ TESTS 51 171 135782400 2100
19667542 yutaka1999 E Aug. 6, 2016, 10 a.m. OK GNU C++ TESTS 51 202 58880000 2100
19667670 Vlad_kv E Aug. 6, 2016, 10:07 a.m. OK GNU C++ TESTS 51 249 18636800 2100
19611983 LIN452 E Aug. 4, 2016, 8:46 a.m. OK GNU C++ TESTS 51 249 41676800 2100
19612073 LIN452 E Aug. 4, 2016, 8:54 a.m. OK GNU C++ TESTS 51 265 41676800 2100
40983959 ReaLNero1 E July 30, 2018, 7:07 p.m. OK GNU C++11 TESTS 51 109 4710400 2100
20282510 WFang E Aug. 30, 2016, 2:32 p.m. OK GNU C++11 TESTS 51 124 4812800 2100
43905446 Umi E Oct. 6, 2018, 1:55 p.m. OK GNU C++11 TESTS 51 124 44134400 2100
20381456 BugBuster E Sept. 4, 2016, 11:50 a.m. OK GNU C++11 TESTS 51 139 3993600 2100
41923793 Sooke E Aug. 21, 2018, 6:21 a.m. OK GNU C++11 TESTS 51 140 30924800 2100
20477265 Grzmot E Sept. 9, 2016, 11:42 a.m. OK GNU C++11 TESTS 51 155 6041600 2100
19675334 Luqman E Aug. 6, 2016, 6:38 p.m. OK GNU C++11 TESTS 51 155 9318400 2100
63224537 luogu_bot4 E Oct. 23, 2019, 8:53 a.m. OK GNU C++11 TESTS 51 171 255897600 2100
63224762 luogu_bot4 E Oct. 23, 2019, 8:57 a.m. OK GNU C++11 TESTS 51 186 255897600 2100
20432320 anta E Sept. 7, 2016, 9:23 a.m. OK GNU C++11 TESTS 51 187 8089600 2100
27449113 nir123 E May 30, 2017, 1:30 p.m. OK GNU C++14 TESTS 51 155 59289600 2100
26038073 arnabsamanta E March 31, 2017, 11 p.m. OK GNU C++14 TESTS 51 155 133427200 2100
69574862 Zandew E Jan. 26, 2020, 3:13 p.m. OK GNU C++14 TESTS 51 187 55296000 2100
32849419 int3xcc E Dec. 2, 2017, 6:14 a.m. OK GNU C++14 TESTS 51 187 120934400 2100
53801766 bhargav_0085 E May 5, 2019, 7:21 p.m. OK GNU C++14 TESTS 51 217 71372800 2100
31170826 srinu37 E Oct. 9, 2017, 3:02 p.m. OK GNU C++14 TESTS 51 218 102604800 2100
38901912 pushkar12 E June 2, 2018, 7:29 p.m. OK GNU C++14 TESTS 51 234 88268800 2100
23556219 keshav E Jan. 5, 2017, 2:06 p.m. OK GNU C++14 TESTS 51 248 11571200 2100
55512436 dakuhosu E June 13, 2019, 1:14 a.m. OK GNU C++14 TESTS 51 264 70758400 2100
47009506 ParagonX97 E Dec. 14, 2018, 3:42 p.m. OK GNU C++14 TESTS 51 280 54784000 2100
48430160 ShJ E Jan. 15, 2019, 4:57 p.m. OK GNU C++17 TESTS 51 170 58368000 2100
56256033 roll_no_1 E June 29, 2019, 6:09 a.m. OK GNU C++17 TESTS 51 171 6451200 2100
55269442 rsk0315 E June 7, 2019, 3:48 p.m. OK GNU C++17 TESTS 51 186 5632000 2100
43374816 crathva E Sept. 24, 2018, 4:04 p.m. OK GNU C++17 TESTS 51 186 7270400 2100
55237090 rsk0315 E June 7, 2019, 8:59 a.m. OK GNU C++17 TESTS 51 202 46899200 2100
57950295 Phortox E July 29, 2019, 4:08 p.m. OK GNU C++17 TESTS 51 233 58982400 2100
55679617 AM. E June 17, 2019, 12:20 p.m. OK GNU C++17 TESTS 51 248 29900800 2100
58045593 BigPolandBro E July 30, 2019, 11 p.m. OK GNU C++17 TESTS 51 264 325120000 2100
54237762 gyz_gyz E May 16, 2019, 11:34 a.m. OK GNU C++17 TESTS 51 296 112230400 2100
58078165 BigPolandBro E July 31, 2019, 1:03 p.m. OK GNU C++17 TESTS 51 327 31232000 2100
19723344 Delfad0r E Aug. 8, 2016, 8:09 a.m. OK Haskell TESTS 51 1014 142745600 2100
19723115 Delfad0r E Aug. 8, 2016, 7:57 a.m. OK Haskell TESTS 51 1075 142745600 2100
19730351 Delfad0r E Aug. 8, 2016, 2:18 p.m. OK Haskell TESTS 51 1232 159539200 2100
20804843 codeonwort E Sept. 21, 2016, 7:28 p.m. OK Haskell TESTS 51 1825 253440000 2100
20805671 codeonwort E Sept. 21, 2016, 8:24 p.m. OK Haskell TESTS 51 1840 254464000 2100
20805218 codeonwort E Sept. 21, 2016, 7:51 p.m. OK Haskell TESTS 51 1871 254464000 2100
20804781 codeonwort E Sept. 21, 2016, 7:24 p.m. OK Haskell TESTS 51 1886 254464000 2100
20804817 codeonwort E Sept. 21, 2016, 7:26 p.m. OK Haskell TESTS 51 1918 254464000 2100
20804806 codeonwort E Sept. 21, 2016, 7:25 p.m. OK Haskell TESTS 51 1918 254464000 2100
19579264 Plan E Aug. 2, 2016, 12:32 p.m. OK Java 7 TESTS 51 1138 512000 2100
63414249 derrick20 E Oct. 26, 2019, 3:05 a.m. OK Java 8 TESTS 51 436 69836800 2100
20630248 Dukkha E Sept. 15, 2016, 2:20 a.m. OK Java 8 TESTS 51 499 67993600 2100
19604593 alibaba E Aug. 3, 2016, 7:40 p.m. OK Java 8 TESTS 51 529 98611200 2100
19613843 dhrumil140396 E Aug. 4, 2016, 11:10 a.m. OK Java 8 TESTS 51 546 123392000 2100
23379137 Ali.Pi E Dec. 28, 2016, 1:47 p.m. OK Java 8 TESTS 51 576 154726400 2100
19583832 JialinOuyang E Aug. 2, 2016, 5:06 p.m. OK Java 8 TESTS 51 670 0 2100
19739086 supachawal E Aug. 9, 2016, 2:38 a.m. OK Java 8 TESTS 51 764 89600000 2100
19739817 supachawal E Aug. 9, 2016, 3:39 a.m. OK Java 8 TESTS 51 779 89600000 2100
19739798 supachawal E Aug. 9, 2016, 3:36 a.m. OK Java 8 TESTS 51 779 89600000 2100
19738990 supachawal E Aug. 9, 2016, 2:30 a.m. OK Java 8 TESTS 51 795 89600000 2100
19601166 AnatolyTolstobrov E Aug. 3, 2016, 3:54 p.m. OK MS C# TESTS 51 186 19046400 2100
19600951 AnatolyTolstobrov E Aug. 3, 2016, 3:41 p.m. OK MS C# TESTS 51 498 73318400 2100
19595959 rechmae E Aug. 3, 2016, 10:52 a.m. OK MS C++ TESTS 51 139 4915200 2100
19578264 besher E Aug. 2, 2016, 11:37 a.m. OK MS C++ TESTS 51 529 56115200 2100
19748891 francois_24 E Aug. 9, 2016, 2:22 p.m. OK MS C++ TESTS 51 639 56627200 2100
19778351 Sweety_Girl E Aug. 11, 2016, 6:41 a.m. OK MS C++ TESTS 51 904 115814400 2100
19598179 youcheng.ben E Aug. 3, 2016, 1:07 p.m. OK MS C++ TESTS 51 1138 56115200 2100

remove filters

Back to search problems