Технокубок 2017 - Финал (только для онсайт-финалистов)

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
780 Технокубок 2017 - Финал (только для онсайт-финалистов) FINISHED False 10800 243117899 March 5, 2017, 9:15 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 9150 ) C Andryusha and Colored Balloons PROGRAMMING dfs and similar graphs greedy trees 1500

B"Andryusha goes through a park each day. The squares and paths between them look boring to Andryusha, so he decided to decorate them. The park consists of n squares connected with (n xe2 x80 x89- xe2 x80 x891) bidirectional paths in such a way that any square is reachable from any other using these paths. Andryusha decided to hang a colored balloon at each of the squares. The baloons' colors are described by positive integers, starting from 1. In order to make the park varicolored, Andryusha wants to choose the colors in a special way. More precisely, he wants to use such colors that if a, b and c are distinct squares that a and b have a direct path between them, and b and c have a direct path between them, then balloon colors on these three squares are distinct. Andryusha wants to use as little different colors as possible. Help him to choose the colors! The first line contains single integer n (3 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892 xc2 xb7105) -- the number of squares in the park. Each of the next (n xe2 x80 x89- xe2 x80 x891) lines contains two integers x and y (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89x, xe2 x80 x89y xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n) -- the indices of two squares directly connected by a path. It is guaranteed that any square is reachable from any other using the paths. In the first line print single integer k -- the minimum number of colors Andryusha has to use. In the second line print n integers, the i-th of them should be equal to the balloon color on the i-th square. Each of these numbers should be within range from 1 to k. In the first sample the park consists of three squares: 1 xe2 x80 x89 xe2 x86 x92 xe2 x80 x893 xe2 x80 x89 xe2 x86 x92 xe2 x80 x892. Thus, the balloon colors have to be distinct. In the second example there are following triples of consequently connected squares: In the third example there are following triples: "...

Tutorials

Technocup 2017 Finals and Codeforces Round #403 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
59615649 vjudge1 C Aug. 28, 2019, 12:35 p.m. OK Clang++17 Diagnostics TESTS 73 811 74444800 1500
25239951 Holidin C March 5, 2017, 10:01 a.m. OK Delphi TESTS 71 108 39936000 1500
26081608 luckystars C April 2, 2017, 4:02 p.m. OK FPC TESTS 73 421 11264000 1500
25240190 ice_tea C March 5, 2017, 10:08 a.m. OK FPC TESTS 71 561 32460800 1500
25825214 rstk1 C March 26, 2017, 5:58 p.m. OK GNU C TESTS 73 109 17100800 1500
35184871 alexey.orlov C Feb. 12, 2018, 5:13 p.m. OK GNU C TESTS 73 124 20275200 1500
25787684 JoeBlow C March 25, 2017, 4:44 a.m. OK GNU C TESTS 73 155 23040000 1500
27442875 Junkesh C May 30, 2017, 8:10 a.m. OK GNU C TESTS 73 187 24985600 1500
40982109 ReaLNero1 C July 30, 2018, 6:16 p.m. OK GNU C++ TESTS 73 62 19251200 1500
40361186 WD_louchenhao C July 15, 2018, 1:36 a.m. OK GNU C++ TESTS 73 77 7168000 1500
40363010 hovny C July 15, 2018, 3:13 a.m. OK GNU C++ TESTS 73 77 18432000 1500
27715731 vjudge2 C June 11, 2017, 6:02 a.m. OK GNU C++ TESTS 73 78 9420800 1500
25456749 limuyang01 C March 13, 2017, 3:07 p.m. OK GNU C++ TESTS 73 78 11571200 1500
40365517 luogu_bot1 C July 15, 2018, 5:32 a.m. OK GNU C++ TESTS 73 93 18432000 1500
40363540 luogu_bot4 C July 15, 2018, 3:37 a.m. OK GNU C++ TESTS 73 93 18432000 1500
40363057 hovny C July 15, 2018, 3:15 a.m. OK GNU C++ TESTS 73 93 18432000 1500
34504286 vjudge2 C Jan. 24, 2018, 5:56 a.m. OK GNU C++ TESTS 73 109 10956800 1500
25562914 Twinkiepudding C March 17, 2017, 2:35 a.m. OK GNU C++ TESTS 73 109 16486400 1500
25730040 Pranay_36 C March 23, 2017, 10 a.m. OK GNU C11 TESTS 73 951 18636800 1500
64746509 wyy2004 C Nov. 12, 2019, 1:44 p.m. OK GNU C++11 TESTS 73 46 8806400 1500
58102038 chhokmah C Aug. 1, 2019, 1:42 a.m. OK GNU C++11 TESTS 73 46 11980800 1500
57439217 lukelin C July 21, 2019, 6:11 a.m. OK GNU C++11 TESTS 73 46 34201600 1500
41204743 vjudge5 C Aug. 4, 2018, 7:15 a.m. OK GNU C++11 TESTS 73 62 7065600 1500
44389343 luogu_bot5 C Oct. 16, 2018, 7:41 a.m. OK GNU C++11 TESTS 73 62 11161600 1500
54734696 DennyQi C May 28, 2019, 4 a.m. OK GNU C++11 TESTS 73 62 14233600 1500
68341289 z7z_Eta C Jan. 7, 2020, 3:52 a.m. OK GNU C++11 TESTS 73 62 14950400 1500
57963673 Zed_knight C July 30, 2019, 1:24 a.m. OK GNU C++11 TESTS 73 62 17612800 1500
57440430 hulean C July 21, 2019, 6:34 a.m. OK GNU C++11 TESTS 73 77 7270400 1500
57174290 luogu_bot1 C July 17, 2019, 4:50 a.m. OK GNU C++11 TESTS 73 77 15155200 1500
69961034 vjudge1 C Feb. 1, 2020, 11:28 a.m. OK GNU C++14 TESTS 73 61 34406400 1500
27005605 HeyByeSummerTime C May 11, 2017, 3:29 a.m. OK GNU C++14 TESTS 73 124 14438400 1500
48781939 vjudge1 C Jan. 23, 2019, 7:11 a.m. OK GNU C++14 TESTS 73 124 15155200 1500
34581905 PhantoM__ C Jan. 26, 2018, 4:31 p.m. OK GNU C++14 TESTS 73 139 9318400 1500
25555360 calla212 C March 16, 2017, 4:42 p.m. OK GNU C++14 TESTS 73 140 8601600 1500
25492205 benyyh C March 15, 2017, 7:42 a.m. OK GNU C++14 TESTS 73 140 18329600 1500
35111044 vjudge4 C Feb. 10, 2018, 4:20 a.m. OK GNU C++14 TESTS 73 140 21708800 1500
59603566 vjudge5 C Aug. 28, 2019, 7:37 a.m. OK GNU C++14 TESTS 73 155 15155200 1500
49842269 __AvadaKedavra C Feb. 12, 2019, 7:07 p.m. OK GNU C++14 TESTS 73 155 16179200 1500
35170145 vjudge3 C Feb. 12, 2018, 6:21 a.m. OK GNU C++14 TESTS 73 155 16281600 1500
68746014 vjudge4 C Jan. 14, 2020, 4:37 a.m. OK GNU C++17 TESTS 73 124 15155200 1500
48987805 vjudge3 C Jan. 26, 2019, 1:06 p.m. OK GNU C++17 TESTS 73 139 7680000 1500
57503756 yingzifan C July 22, 2019, 11:17 a.m. OK GNU C++17 TESTS 73 139 14438400 1500
48826018 vjudge4 C Jan. 23, 2019, 3:19 p.m. OK GNU C++17 TESTS 73 140 15462400 1500
42015274 Dillonh_ C Aug. 24, 2018, 5:54 a.m. OK GNU C++17 TESTS 73 140 17305600 1500
42015278 vjudge1 C Aug. 24, 2018, 5:55 a.m. OK GNU C++17 TESTS 73 140 17612800 1500
48657102 vjudge2 C Jan. 21, 2019, 3:30 a.m. OK GNU C++17 TESTS 73 140 19456000 1500
44687025 vjudge3 C Oct. 22, 2018, 10:09 a.m. OK GNU C++17 TESTS 73 140 44851200 1500
68300541 shiraha C Jan. 6, 2020, 6:17 a.m. OK GNU C++17 TESTS 73 155 16793600 1500
48207963 misir C Jan. 11, 2019, 10:01 a.m. OK GNU C++17 TESTS 73 156 9932800 1500
65445785 shubh_jha98 C Nov. 20, 2019, 3:55 p.m. OK Java 11 TESTS 73 1154 42803200 1500
68833554 zhanyi_xiaolu C Jan. 15, 2020, 1:12 a.m. OK Java 11 TESTS 73 1200 73216000 1500
65600552 edwin.ansari C Nov. 23, 2019, 5:49 p.m. OK Java 11 TESTS 73 1325 112332800 1500
54845308 Seco_seco C May 30, 2019, 1:35 p.m. OK Java 8 TESTS 73 374 84172800 1500
54328001 caoash C May 18, 2019, 4:06 a.m. OK Java 8 TESTS 73 436 41062400 1500
51821319 MaxHeap C March 25, 2019, 12:10 p.m. OK Java 8 TESTS 73 436 66764800 1500
33465508 atarw C Dec. 20, 2017, 8:12 p.m. OK Java 8 TESTS 73 483 118272000 1500
64487026 sakt_coder C Nov. 7, 2019, 6:11 p.m. OK Java 8 TESTS 73 498 47923200 1500
53374532 prem_cse C April 26, 2019, 7:10 p.m. OK Java 8 TESTS 73 498 53043200 1500
59854037 lansergecs C Sept. 1, 2019, 12:47 p.m. OK Java 8 TESTS 73 498 56115200 1500
26803440 vjudge2 C May 2, 2017, 1:34 p.m. OK Java 8 TESTS 73 499 127795200 1500
50286623 vjudge2 C Feb. 21, 2019, 3:11 p.m. OK Java 8 TESTS 73 514 42291200 1500
64670109 HappyEveryday C Nov. 11, 2019, 5:22 a.m. OK Java 8 TESTS 73 514 51302400 1500
61344992 Ahmadjon C Sept. 27, 2019, 3:56 a.m. OK Kotlin TESTS 73 1450 90931200 1500
51314290 nemars C March 14, 2019, 9:59 p.m. OK Mono C# TESTS 73 499 36352000 1500
25713567 erfre C March 22, 2017, 2:04 p.m. OK MS C# TESTS 73 420 45568000 1500
25712225 erfre C March 22, 2017, 1:12 p.m. OK MS C# TESTS 73 780 45977600 1500
25713081 erfre C March 22, 2017, 1:45 p.m. OK MS C# TESTS 73 810 45568000 1500
25240597 basfor2022 C March 5, 2017, 10:21 a.m. OK MS C# TESTS 71 811 36249600 1500
25483371 tiancai C March 14, 2017, 6:01 p.m. OK MS C# TESTS 73 826 48025600 1500
26381630 YakovPolykovsky C April 15, 2017, 2:33 p.m. OK MS C# TESTS 73 888 35123200 1500
25710554 erfre C March 22, 2017, 12:12 p.m. OK MS C# TESTS 73 904 45772800 1500
25713044 erfre C March 22, 2017, 1:44 p.m. OK MS C# TESTS 73 1092 43212800 1500
25713011 erfre C March 22, 2017, 1:43 p.m. OK MS C# TESTS 73 1138 43212800 1500
27717751 vjudge2 C June 11, 2017, 8:44 a.m. OK MS C++ TESTS 73 109 8806400 1500
68748695 vjudge4 C Jan. 14, 2020, 5:52 a.m. OK MS C++ TESTS 73 109 11161600 1500
53595783 vjudge4 C May 1, 2019, 4:17 a.m. OK MS C++ TESTS 73 109 11366400 1500
48665384 vjudge5 C Jan. 21, 2019, 7:55 a.m. OK MS C++ TESTS 73 124 7987200 1500
27896194 scorpiowf C June 19, 2017, 5:24 a.m. OK MS C++ TESTS 73 124 11571200 1500
25465763 a510756230 C March 14, 2017, 4:35 a.m. OK MS C++ TESTS 73 124 12492800 1500
48668964 vjudge3 C Jan. 21, 2019, 9:35 a.m. OK MS C++ TESTS 73 140 9932800 1500
50475006 vjudge4 C Feb. 25, 2019, 5:16 a.m. OK MS C++ TESTS 73 140 12800000 1500
48679309 vjudge2 C Jan. 21, 2019, 12:39 p.m. OK MS C++ TESTS 73 171 8294400 1500
53850640 vjudge2 C May 7, 2019, 1:17 p.m. OK MS C++ TESTS 73 171 12902400 1500
66225081 TianPingXing C Dec. 3, 2019, 12:17 p.m. OK MS C++ 2017 TESTS 73 234 10444800 1500
59126076 pmitkov C Aug. 20, 2019, 9:11 a.m. OK MS C++ 2017 TESTS 73 234 13619200 1500
54623418 Dragostan C May 25, 2019, 1:23 p.m. OK MS C++ 2017 TESTS 73 451 11161600 1500
65300640 vjudge1 C Nov. 18, 2019, 1:07 p.m. OK MS C++ 2017 TESTS 73 498 14438400 1500
64783930 yuanyuan2048 C Nov. 13, 2019, 8:25 a.m. OK MS C++ 2017 TESTS 73 514 14438400 1500
64019342 CtrlAlt C Nov. 1, 2019, 3:33 p.m. OK MS C++ 2017 TESTS 73 530 13619200 1500
55577138 buyolitsez C June 15, 2019, 2:39 a.m. OK MS C++ 2017 TESTS 73 577 39321600 1500
25471804 lifted C March 14, 2017, 11:42 a.m. OK Ocaml TESTS 73 264 33484800 1500
25730176 s_p C March 23, 2017, 10:09 a.m. OK Perl TESTS 73 1341 116224000 1500
65411751 jansons C Nov. 20, 2019, 4:42 a.m. OK PyPy 3 TESTS 73 1981 43929600 1500
63191757 vjudge2 C Oct. 22, 2019, 5:24 p.m. OK PyPy 3 TESTS 73 1996 39526400 1500
65411092 jansons C Nov. 20, 2019, 4:15 a.m. OK PyPy 3 TESTS 73 1996 44236800 1500
51332115 ashok123 C March 15, 2019, 12:35 p.m. OK Python 2 TESTS 73 1076 37888000 1500
40548533 jooj C July 19, 2018, 1:04 p.m. OK Python 2 TESTS 73 1170 32563200 1500
55923051 anshuman16423 C June 22, 2019, 8:13 a.m. OK Python 2 TESTS 73 1653 33484800 1500
49535603 toysheeyeyraku C Feb. 6, 2019, 3:49 p.m. OK Python 3 TESTS 73 686 39321600 1500
42880261 orailly C Sept. 15, 2018, 6:17 a.m. OK Python 3 TESTS 73 889 38912000 1500
49536035 toysheeyeyraku C Feb. 6, 2019, 4:01 p.m. OK Python 3 TESTS 73 919 39219200 1500
42880072 orailly C Sept. 15, 2018, 6:07 a.m. OK Python 3 TESTS 73 935 44544000 1500
38904768 mohammad-aa C June 2, 2018, 10:41 p.m. OK Python 3 TESTS 73 1201 40755200 1500
25475153 Gribon C March 14, 2017, 2:20 p.m. OK Python 3 TESTS 73 1278 40038400 1500
66239394 _KameHameha_ C Dec. 3, 2019, 5:28 p.m. OK Python 3 TESTS 73 1356 32153600 1500
25823759 LordVoldebug C March 26, 2017, 4:34 p.m. OK Python 3 TESTS 73 1388 40345600 1500
42141211 Mk_Python_v1 C Aug. 27, 2018, 5:37 a.m. OK Python 3 TESTS 73 1856 53145600 1500

remove filters

Back to search problems