Helvetic Coding Contest 2016 online mirror (teams, unrated)

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
690 Helvetic Coding Contest 2016 online mirror (teams, unrated) FINISHED False 16200 263685599 July 10, 2016, 8 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2172 ) F1 Tree of Life (easy) PROGRAMMING 1400

B'Heidi has finally found the mythical Tree of Life xe2 x80 x93 a legendary combinatorial structure which is said to contain a prophecy crucially needed to defeat the undead armies. On the surface, the Tree of Life is just a regular undirected tree well-known from computer science. This means that it is a collection of n points (called vertices), some of which are connected using n xe2 x80 x89- xe2 x80 x891 line segments (edges) so that each pair of vertices is connected by a path (a sequence of one or more edges). To decipher the prophecy, Heidi needs to perform a number of steps. The first is counting the number of lifelines in the tree xe2 x80 x93 these are paths of length 2, i.e., consisting of two edges. Help her! The first line of the input contains a single integer n xe2 x80 x93 the number of vertices in the tree (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x8910000). The vertices are labeled with the numbers from 1 to n. Then n xe2 x80 x89- xe2 x80 x891 lines follow, each describing one edge using two space-separated numbers a xe2 x80 x82b xe2 x80 x93 the labels of the vertices connected by the edge (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89a xe2 x80 x89< xe2 x80 x89b xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n). It is guaranteed that the input represents a tree. Print one integer xe2 x80 x93 the number of lifelines in the tree. In the second sample, there are four lifelines: paths between vertices 1 and 3, 2 and 4, 2 and 5, and 4 and 5. '...

Tutorials

Tutotial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
19007891 PAG F1 July 10, 2016, 11:48 a.m. OK Delphi TESTS 19 15 0 1400
19054733 StarScreamOwl F1 July 12, 2016, 4:21 p.m. OK Delphi TESTS 19 15 102400 1400
19011957 ruban F1 July 10, 2016, 3:01 p.m. OK Delphi TESTS 19 31 50483200 1400
18999230 llgyc ceerRep aspi F1 July 10, 2016, 8:22 a.m. OK FPC TESTS 19 15 0 1400
19020159 Shirone F1 July 11, 2016, 4:24 a.m. OK FPC TESTS 19 15 0 1400
26965348 VladProg F1 May 8, 2017, 10:43 p.m. OK FPC TESTS 19 15 0 1400
22108971 WalkingDeade F1 Nov. 8, 2016, 9:15 a.m. OK FPC TESTS 19 15 0 1400
19062644 k2nt F1 July 13, 2016, 4:57 a.m. OK FPC TESTS 19 15 102400 1400
19003005 programmer228 Wind_Eagle F1 July 10, 2016, 9:28 a.m. OK FPC TESTS 19 15 102400 1400
19004851 chanhanh3101 JonathanT F1 July 10, 2016, 10:19 a.m. OK FPC TESTS 19 15 204800 1400
19001963 lkmcfj mostcleverboy F1 July 10, 2016, 9:06 a.m. OK FPC TESTS 19 15 409600 1400
22892544 mitomchieu2 F1 Dec. 11, 2016, 7:18 p.m. OK FPC TESTS 19 15 512000 1400
19001500 dmlocdmloc F1 July 10, 2016, 8:56 a.m. OK FPC TESTS 19 15 716800 1400
19072705 Yllmc F1 July 13, 2016, 12:27 p.m. OK GNU C TESTS 19 15 102400 1400
19075011 mock F1 July 13, 2016, 2:25 p.m. OK GNU C TESTS 19 15 512000 1400
19029384 double301 F1 July 11, 2016, 11:59 a.m. OK GNU C TESTS 19 15 1024000 1400
19004592 Plyfe chult bearpigx F1 July 10, 2016, 10:11 a.m. OK GNU C TESTS 19 30 0 1400
40110451 Eat12 F1 July 9, 2018, 11:25 a.m. OK GNU C TESTS 19 31 819200 1400
19105407 codemart786 F1 July 14, 2016, 10:33 a.m. OK GNU C TESTS 19 46 100044800 1400
27419826 aakashk_iitg F1 May 28, 2017, 9:05 p.m. OK GNU C TESTS 19 93 102400 1400
19004803 toufiqul97 Taran106 Abrar535 F1 July 10, 2016, 10:17 a.m. OK GNU C TESTS 19 93 102400 1400
19028747 wallwpcab F1 July 11, 2016, 11:28 a.m. OK GNU C TESTS 19 108 102400 1400
20349276 CurtizJ F1 Sept. 2, 2016, 10:03 p.m. OK GNU C++ TESTS 19 15 0 1400
27399968 abcdef6199 F1 May 28, 2017, 3:24 a.m. OK GNU C++ TESTS 19 15 0 1400
19159841 MonsterCat2593 F1 July 15, 2016, 6:31 p.m. OK GNU C++ TESTS 19 15 0 1400
19101813 nlgxh8 F1 July 14, 2016, 6:41 a.m. OK GNU C++ TESTS 19 15 0 1400
19045268 IvanTeacup F1 July 12, 2016, 7:54 a.m. OK GNU C++ TESTS 19 15 0 1400
19044822 a_little_black F1 July 12, 2016, 7:37 a.m. OK GNU C++ TESTS 19 15 0 1400
19010973 Hachiikung F1 July 10, 2016, 1:53 p.m. OK GNU C++ TESTS 19 15 0 1400
19007803 sosusosu F1 July 10, 2016, 11:45 a.m. OK GNU C++ TESTS 19 15 0 1400
19007661 zou F1 July 10, 2016, 11:41 a.m. OK GNU C++ TESTS 19 15 0 1400
19007583 ABlackCat F1 July 10, 2016, 11:39 a.m. OK GNU C++ TESTS 19 15 0 1400
57383999 NetravatPendsey F1 July 20, 2019, 3:17 p.m. OK GNU C11 TESTS 19 31 204800 1400
20638552 mruczek F1 Sept. 15, 2016, 11:37 a.m. OK GNU C++11 TESTS 19 15 0 1400
20351460 dingjiansw101 F1 Sept. 3, 2016, 2:35 a.m. OK GNU C++11 TESTS 19 15 0 1400
19417743 Kurisu_ F1 July 26, 2016, 7:49 a.m. OK GNU C++11 TESTS 19 15 0 1400
19411579 firesh F1 July 25, 2016, 11:32 p.m. OK GNU C++11 TESTS 19 15 0 1400
19403904 devilplus F1 July 25, 2016, 12:58 p.m. OK GNU C++11 TESTS 19 15 0 1400
19307970 luizbarros tyronedamasceno F1 July 21, 2016, 6:44 p.m. OK GNU C++11 TESTS 19 15 0 1400
19291816 Talon_F F1 July 21, 2016, 3:31 a.m. OK GNU C++11 TESTS 19 15 0 1400
19284008 savinov F1 July 20, 2016, 4:18 p.m. OK GNU C++11 TESTS 19 15 0 1400
19189885 maximumSHOT F1 July 17, 2016, 12:15 p.m. OK GNU C++11 TESTS 19 15 0 1400
27883851 Dalgerok F1 June 18, 2017, 11:51 a.m. OK GNU C++11 TESTS 19 15 0 1400
22612508 xiaowuc1 F1 Nov. 30, 2016, 1:18 a.m. OK GNU C++14 TESTS 19 15 0 1400
27456164 _HossamYehia_ F1 May 30, 2017, 9:49 p.m. OK GNU C++14 TESTS 19 15 0 1400
27922023 Nikolay2001 aalekseev ddddanil F1 June 20, 2017, 9:52 a.m. OK GNU C++14 TESTS 19 15 102400 1400
53718172 dwai009 F1 May 3, 2019, 8:14 p.m. OK GNU C++14 TESTS 19 15 614400 1400
29681844 lukomskiy F1 Aug. 22, 2017, 11:59 a.m. OK GNU C++14 TESTS 19 15 819200 1400
30799467 aextactlya F1 Sept. 28, 2017, 8:54 a.m. OK GNU C++14 TESTS 19 15 921600 1400
27401796 gaporf F1 May 28, 2017, 6:18 a.m. OK GNU C++14 TESTS 19 15 1024000 1400
30187326 _AjReme_ F1 Sept. 7, 2017, 5:30 p.m. OK GNU C++14 TESTS 19 15 1024000 1400
54469387 racsosabe F1 May 22, 2019, 3:57 a.m. OK GNU C++14 TESTS 19 15 1228800 1400
33914154 dionysios F1 Jan. 5, 2018, 2:21 a.m. OK GNU C++14 TESTS 19 15 1945600 1400
58686122 Louhc F1 Aug. 12, 2019, 11:25 p.m. OK GNU C++17 TESTS 19 15 2764800 1400
68850588 ivan100sic F1 Jan. 15, 2020, 8:50 a.m. OK GNU C++17 TESTS 19 30 0 1400
54810234 ILgeRiT F1 May 29, 2019, 4:25 p.m. OK GNU C++17 TESTS 19 30 512000 1400
50491615 ayisn_timur F1 Feb. 25, 2019, 1:32 p.m. OK GNU C++17 TESTS 19 30 512000 1400
67624448 vijyant27 F1 Dec. 25, 2019, 8:39 p.m. OK GNU C++17 TESTS 19 30 512000 1400
56727769 Andros_ F1 July 8, 2019, 9:10 p.m. OK GNU C++17 TESTS 19 30 2969600 1400
62345234 Mohammad.firoozi F1 Oct. 11, 2019, 7:10 a.m. OK GNU C++17 TESTS 19 31 0 1400
52629531 nvmdava F1 April 12, 2019, 6:12 a.m. OK GNU C++17 TESTS 19 31 0 1400
56641595 dewa251202 F1 July 7, 2019, 2:19 a.m. OK GNU C++17 TESTS 19 31 102400 1400
63767590 vjudge1 F1 Oct. 30, 2019, 6:47 a.m. OK GNU C++17 TESTS 19 31 512000 1400
19745733 stejaax F1 Aug. 9, 2016, 10:59 a.m. OK Haskell TESTS 19 109 56524800 1400
19028051 MazzForces F1 July 11, 2016, 10:51 a.m. OK Java 7 TESTS 19 124 0 1400
19135015 squiggle F1 July 14, 2016, 7:57 p.m. OK Java 7 TESTS 19 155 0 1400
19045451 aleksey.otrubennikov F1 July 12, 2016, 8 a.m. OK Java 7 TESTS 19 155 0 1400
19022567 jeff_ffej2002 F1 July 11, 2016, 6:36 a.m. OK Java 7 TESTS 19 327 0 1400
19188946 vinodkurmi F1 July 17, 2016, 11:09 a.m. OK Java 7 TESTS 19 343 0 1400
22614867 Lewin F1 Nov. 30, 2016, 6:05 a.m. OK Java 8 TESTS 19 109 0 1400
19148974 Sumeet.Varma F1 July 15, 2016, 9:12 a.m. OK Java 8 TESTS 19 109 0 1400
22614873 Lewin F1 Nov. 30, 2016, 6:06 a.m. OK Java 8 TESTS 19 124 0 1400
22614761 Lewin F1 Nov. 30, 2016, 5:56 a.m. OK Java 8 TESTS 19 124 0 1400
19307402 alibaba F1 July 21, 2016, 6:08 p.m. OK Java 8 TESTS 19 124 0 1400
19002294 eatmore F1 July 10, 2016, 9:13 a.m. OK Java 8 TESTS 19 124 0 1400
18999913 joney_000 F1 July 10, 2016, 8:31 a.m. OK Java 8 TESTS 19 124 0 1400
18999478 liyangliyang F1 July 10, 2016, 8:26 a.m. OK Java 8 TESTS 19 124 0 1400
18998269 poikniok F1 July 10, 2016, 8:10 a.m. OK Java 8 TESTS 19 124 0 1400
20107244 kafy83 F1 Aug. 24, 2016, 2:20 p.m. OK Java 8 TESTS 19 139 20480000 1400
27457613 as12 F1 May 31, 2017, 1:14 a.m. OK JavaScript TESTS 19 46 1433600 1400
18998506 azukun F1 July 10, 2016, 8:14 a.m. OK MS C# TESTS 19 46 2867200 1400
23802060 og.kostya F1 Jan. 14, 2017, 9 a.m. OK MS C# TESTS 19 46 9011200 1400
19676815 Shining888 F1 Aug. 6, 2016, 8:47 p.m. OK MS C# TESTS 19 62 10956800 1400
19008646 14310120133 F1 July 10, 2016, 12:09 p.m. OK MS C++ TESTS 19 15 0 1400
22940087 scorpiowf F1 Dec. 14, 2016, 1:15 a.m. OK MS C++ TESTS 19 15 307200 1400
18998144 SlavaSSU Naduxa DimonK F1 July 10, 2016, 8:08 a.m. OK MS C++ TESTS 19 15 307200 1400
18998131 Taube F1 July 10, 2016, 8:08 a.m. OK MS C++ TESTS 19 15 307200 1400
19002307 rkm0959 F1 July 10, 2016, 9:13 a.m. OK MS C++ TESTS 19 15 409600 1400
18999028 TonySnark F1 July 10, 2016, 8:20 a.m. OK MS C++ TESTS 19 15 409600 1400
19060286 afatperson F1 July 13, 2016, 1:42 a.m. OK MS C++ TESTS 19 15 512000 1400
19050819 nevergiveup F1 July 12, 2016, 12:26 p.m. OK MS C++ TESTS 19 15 614400 1400
18999996 13048047792 F1 July 10, 2016, 8:33 a.m. OK MS C++ TESTS 19 15 1536000 1400
19436761 vjudge5 F1 July 27, 2016, 8:24 a.m. OK MS C++ TESTS 19 30 102400 1400
64727737 Mad112233 F1 Nov. 12, 2019, 7:08 a.m. OK MS C++ 2017 TESTS 19 46 512000 1400
19030844 s_p F1 July 11, 2016, 1:12 p.m. OK Perl TESTS 19 61 3379200 1400
19003420 mayakin F1 July 10, 2016, 9:39 a.m. OK PHP TESTS 19 31 819200 1400
19015129 ekzhang F1 July 10, 2016, 7:12 p.m. OK PyPy 2 TESTS 19 155 1536000 1400
20599866 B0r0m1r F1 Sept. 13, 2016, 9:01 p.m. OK PyPy 2 TESTS 19 171 2764800 1400
19002133 har_vi F1 July 10, 2016, 9:09 a.m. OK PyPy 2 TESTS 19 171 4915200 1400
19008808 Vosatorp F1 July 10, 2016, 12:13 p.m. OK PyPy 3 TESTS 19 280 5734400 1400
19005858 potpath F1 July 10, 2016, 10:46 a.m. OK PyPy 3 TESTS 19 405 5939200 1400
19053914 ArGuTe F1 July 12, 2016, 3:25 p.m. OK Python 2 TESTS 19 77 204800 1400
19105279 biltharesatyendra F1 July 14, 2016, 10:24 a.m. OK Python 2 TESTS 19 77 1126400 1400
36084086 oyldz93 F1 March 9, 2018, 12:17 a.m. OK Python 2 TESTS 19 92 6246400 1400
19076990 MortalReality F1 July 13, 2016, 4:01 p.m. OK Python 2 TESTS 19 93 1126400 1400
19006922 Joshua_su F1 July 10, 2016, 11:19 a.m. OK Python 2 TESTS 19 93 1536000 1400
19007823 vladimir.v.macko F1 July 10, 2016, 11:46 a.m. OK Python 2 TESTS 19 109 1126400 1400
19057132 s0014 F1 July 12, 2016, 7:12 p.m. OK Python 2 TESTS 19 124 1638400 1400
36633584 laoliumang F1 March 26, 2018, 6:56 a.m. OK Python 2 TESTS 19 124 6246400 1400
61606022 bazzyadb F1 Oct. 1, 2019, 12:42 p.m. OK Python 2 TESTS 19 217 204800 1400
19002701 pra95 F1 July 10, 2016, 9:21 a.m. OK Python 3 TESTS 19 78 102400 1400
32035720 yugle7 F1 Nov. 3, 2017, 8:01 p.m. OK Python 3 TESTS 19 78 512000 1400
19190598 orailly F1 July 17, 2016, 1:14 p.m. OK Python 3 TESTS 19 93 102400 1400
20633323 Amores F1 Sept. 15, 2016, 6:48 a.m. OK Python 3 TESTS 19 93 204800 1400
19185644 orailly F1 July 17, 2016, 7:05 a.m. OK Python 3 TESTS 19 93 204800 1400
19107868 bazyar.sepehr F1 July 14, 2016, 12:49 p.m. OK Python 3 TESTS 19 93 204800 1400
19002702 pra95 F1 July 10, 2016, 9:21 a.m. OK Python 3 TESTS 19 93 204800 1400
18998722 mikkerlo irka1804 F1 July 10, 2016, 8:16 a.m. OK Python 3 TESTS 19 93 204800 1400
19182398 agirish F1 July 17, 2016, 2:19 a.m. OK Python 3 TESTS 19 93 1740800 1400
25732048 polchky F1 March 23, 2017, 11:49 a.m. OK Python 3 TESTS 19 93 4812800 1400
19007317 netoctone F1 July 10, 2016, 11:31 a.m. OK Ruby TESTS 19 93 307200 1400

remove filters

Back to search problems