Yandex.Algorithm 2011: Round 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
85 Yandex.Algorithm 2011: Round 1 FINISHED False 7200 470502023 May 20, 2011, 3 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 614 ) C Petya and Tree PROGRAMMING binary search dfs and similar probabilities sortings trees 2200

One night, having had a hard day at work, Petya saw a nightmare. There was a binary search tree in the dream. But it was not the actual tree that scared Petya. The horrifying thing was that Petya couldn 't search for elements in this tree. Petya tried many times to choose key and look for it in the tree, and each time he arrived at a wrong place. Petya has been racking his brains for long, choosing keys many times, but the result was no better. But the moment before Petya would start to despair, he had an epiphany: every time he was looking for keys, the tree didn 't have the key, and occured exactly one mistake. "That 's not a problem!", thought Petya. "Why not count the expectation value of an element, which is found when I search for the key". The moment he was about to do just that, however, Petya suddenly woke up. Thus, you are given a binary search tree, that is a tree containing some number written in the node. This number is called the node key. The number of children of every node of the tree is equal either to 0 or to 2. The nodes that have 0 children are called leaves and the nodes that have 2 children, are called inner. An inner node has the left child, that is the child whose key is less than the current node 's key, and the right child, whose key is more than the current node 's key. Also, a key of any node is strictly larger than all the keys of the left subtree of the node and strictly smaller than all the keys of the right subtree of the node. Also you are given a set of search keys, all of which are distinct and differ from the node keys contained in the tree. For each key from the set its search in the tree is realised. The search is arranged like this: initially we are located in the tree root, if the key of the current node is larger that our search key, then we move to the left child of the node, otherwise we go to the right child of the node and the process is repeated. As it is guaranteed that the search key is not contained in the tree,

Tutorials

Yandex.Algorithm 2011 - Round 1. Problem C. Tutorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
466108 laiguokun C May 22, 2011, 1:07 p.m. OK Delphi TESTS 37 110 5836800 2200
463260 tourist C May 20, 2011, 4:40 p.m. OK Delphi TESTS 37 140 65331200 2200
464305 sankear C May 20, 2011, 5:26 p.m. OK Delphi TESTS 37 230 16691200 2200
464087 sankear C May 20, 2011, 5:13 p.m. OK Delphi TESTS 37 250 18124800 2200
473505 Shapo C May 31, 2011, 4:17 p.m. OK Delphi TESTS 37 250 30310400 2200
40992697 ReaLNero1 C July 31, 2018, 1:30 a.m. OK Delphi TESTS 37 280 63385600 2200
468095 coolinging C May 23, 2011, 2:06 a.m. OK FPC TESTS 37 220 7987200 2200
485466 vlad107 C June 11, 2011, 7:47 a.m. OK FPC TESTS 37 220 15257600 2200
835750 memphis0603 C Nov. 5, 2011, 5:37 a.m. OK FPC TESTS 37 230 15564800 2200
1445826 sillycross C March 31, 2012, 8:25 a.m. OK FPC TESTS 37 250 9523200 2200
464284 Sereja C May 20, 2011, 5:25 p.m. OK FPC TESTS 37 250 15872000 2200
463845 siuvit C May 20, 2011, 4:56 p.m. OK FPC TESTS 37 270 10547200 2200
585954 vilcheuski C Aug. 5, 2011, 6:31 a.m. OK FPC TESTS 37 310 8192000 2200
462434 LayCurse C May 20, 2011, 4:08 p.m. OK GNU C TESTS 37 310 15769600 2200
464297 RodrigoBurgos C May 20, 2011, 5:25 p.m. OK GNU C TESTS 37 380 11366400 2200
729323 kawatea C Sept. 28, 2011, 8:13 p.m. OK GNU C TESTS 37 420 16179200 2200
3813571 longmenwaideyu C June 2, 2013, 8:03 a.m. OK GNU C++ TESTS 37 234 6451200 2200
3586221 b2lawa C April 21, 2013, 6:08 p.m. OK GNU C++ TESTS 37 234 8499200 2200
2830867 Poseidon C Dec. 26, 2012, 7:22 p.m. OK GNU C++ TESTS 37 234 16179200 2200
2903065 diego_v1 C Jan. 10, 2013, 5:10 p.m. OK GNU C++ TESTS 37 250 6963200 2200
3364881 vjudge4 C March 21, 2013, 12:01 p.m. OK GNU C++ TESTS 37 250 7987200 2200
3383231 564ht C March 23, 2013, 3:07 a.m. OK GNU C++ TESTS 37 250 8396800 2200
2290642 dinhha C Oct. 2, 2012, 8:29 a.m. OK GNU C++ TESTS 37 265 8806400 2200
2864157 Fcdkbear C Jan. 1, 2013, 3:54 p.m. OK GNU C++ TESTS 37 265 9728000 2200
3618280 Sh_Nur C April 24, 2013, 7:51 p.m. OK GNU C++ TESTS 37 265 10035200 2200
462324 hos.lyric C May 20, 2011, 4:03 p.m. OK GNU C++ TESTS 37 270 12185600 2200
3803958 savinov C May 30, 2013, 8:10 p.m. OK GNU C++0x TESTS 37 171 8499200 2200
465356 Fdg C May 21, 2011, 11:48 a.m. OK GNU C++0x TESTS 37 340 8089600 2200
488275 package.zaic C June 15, 2011, 2:59 p.m. OK GNU C++0x TESTS 37 390 13414400 2200
488271 package.zaic C June 15, 2011, 2:56 p.m. OK GNU C++0x TESTS 37 390 14233600 2200
614938 Archon.JK C Aug. 19, 2011, 5:07 a.m. OK GNU C++0x TESTS 37 420 11776000 2200
464570 chyx C May 20, 2011, 6 p.m. OK GNU C++0x TESTS 37 440 13824000 2200
463980 Archon.JK C May 20, 2011, 4:58 p.m. OK GNU C++0x TESTS 37 450 16588800 2200
488270 package.zaic C June 15, 2011, 2:55 p.m. OK GNU C++0x TESTS 37 700 14233600 2200
6065045 atubo C March 19, 2014, 6:49 a.m. OK GNU C++0x TESTS 37 1028 7168000 2200
8523648 wanbo C Nov. 2, 2014, 1:35 p.m. OK GNU C++0x TESTS 37 1714 22016000 2200
26363762 Chapecoense C April 14, 2017, 5:51 p.m. OK GNU C11 TESTS 37 1466 16281600 2200
47511087 ljl C Dec. 26, 2018, 6:35 a.m. OK GNU C++11 TESTS 37 310 5836800 2200
14325446 HellKitsune C Nov. 18, 2015, 12:01 p.m. OK GNU C++11 TESTS 37 310 6963200 2200
27895446 Minology C June 19, 2017, 4:19 a.m. OK GNU C++11 TESTS 37 310 7987200 2200
57352318 vjudge2 C July 20, 2019, 4:31 a.m. OK GNU C++11 TESTS 37 310 8499200 2200
12386741 fcbruce C Aug. 6, 2015, 10:29 a.m. OK GNU C++11 TESTS 37 310 9318400 2200
12386723 fcbruce C Aug. 6, 2015, 10:28 a.m. OK GNU C++11 TESTS 37 310 9318400 2200
12386746 vjudge5 C Aug. 6, 2015, 10:30 a.m. OK GNU C++11 TESTS 37 310 9318400 2200
19887311 NUOUN C Aug. 15, 2016, 12:05 p.m. OK GNU C++11 TESTS 37 310 60108800 2200
12815287 Vlad_kv C Sept. 2, 2015, 12:54 p.m. OK GNU C++11 TESTS 37 312 4403200 2200
30359155 HannaYz C Sept. 15, 2017, 8 a.m. OK GNU C++11 TESTS 37 312 5734400 2200
36135164 haizhe C March 10, 2018, 3:23 a.m. OK GNU C++14 TESTS 37 374 8192000 2200
43259032 w446506278 C Sept. 22, 2018, 2:16 p.m. OK GNU C++14 TESTS 37 404 8192000 2200
28764965 regmsif C July 21, 2017, 10:51 p.m. OK GNU C++14 TESTS 37 466 10649600 2200
28764988 regmsif C July 21, 2017, 10:53 p.m. OK GNU C++14 TESTS 37 466 10649600 2200
36238188 alimagde C March 13, 2018, 3:30 a.m. OK GNU C++14 TESTS 37 468 11878400 2200
37865329 Cmise C May 3, 2018, 2:37 p.m. OK GNU C++14 TESTS 37 498 15257600 2200
43530696 I_love_Y_UME C Sept. 28, 2018, 1:24 p.m. OK GNU C++14 TESTS 37 592 6963200 2200
61613598 ACraider C Oct. 1, 2019, 2:38 p.m. OK GNU C++14 TESTS 37 622 17715200 2200
36904119 oos1111 C April 3, 2018, 1:44 p.m. OK GNU C++14 TESTS 37 624 19046400 2200
34511145 dorostmishe C Jan. 24, 2018, 9:19 a.m. OK GNU C++14 TESTS 37 654 11878400 2200
54091900 tnakao C May 14, 2019, 11:14 a.m. OK GNU C++17 TESTS 37 374 5939200 2200
59530974 kenimo C Aug. 26, 2019, 3:01 p.m. OK GNU C++17 TESTS 37 434 7577600 2200
54255236 MetB C May 16, 2019, 7:35 p.m. OK GNU C++17 TESTS 37 434 10547200 2200
39598502 ruo C June 24, 2018, 10:21 a.m. OK GNU C++17 TESTS 37 530 13619200 2200
35164067 Smaug C Feb. 11, 2018, 9:29 p.m. OK GNU C++17 TESTS 37 560 17510400 2200
67074694 Phortox C Dec. 17, 2019, 2:02 p.m. OK GNU C++17 TESTS 37 684 32358400 2200
49559972 Jalilvand.mJ C Feb. 7, 2019, 12:03 p.m. OK GNU C++17 TESTS 37 1090 11366400 2200
49561562 smhh22 C Feb. 7, 2019, 12:48 p.m. OK GNU C++17 TESTS 37 1152 10649600 2200
463345 SergeyLazarev C May 20, 2011, 4:42 p.m. OK Java 6 TESTS 37 520 46489600 2200
461942 andrewzta C May 20, 2011, 3:50 p.m. OK Java 6 TESTS 37 560 43315200 2200
462833 air C May 20, 2011, 4:25 p.m. OK Java 6 TESTS 37 560 43417600 2200
462286 dgozman C May 20, 2011, 4:02 p.m. OK Java 6 TESTS 37 580 43622400 2200
463122 SpookyCookie C May 20, 2011, 4:35 p.m. OK Java 6 TESTS 37 580 46796800 2200
464546 zibada C May 20, 2011, 5:55 p.m. OK Java 6 TESTS 37 610 43724800 2200
462494 Dumpty C May 20, 2011, 4:10 p.m. OK Java 6 TESTS 37 630 43622400 2200
463268 S.Yesipenko C May 20, 2011, 4:40 p.m. OK Java 6 TESTS 37 640 66048000 2200
464278 Xazker C May 20, 2011, 5:24 p.m. OK Java 6 TESTS 37 640 88883200 2200
464088 ArtemKadeev C May 20, 2011, 5:13 p.m. OK Java 6 TESTS 37 730 60006400 2200
1752516 mostafa_fahim C June 2, 2012, 10:03 p.m. OK Java 7 TESTS 37 1360 48537600 2200
10218003 vjudge5 C March 9, 2015, 1:32 p.m. OK Java 7 TESTS 37 1590 3891200 2200
11394878 AStepanov C June 2, 2015, 8:38 p.m. OK Java 8 TESTS 37 872 2048000 2200
19288506 pitfall C July 20, 2016, 9:20 p.m. OK Java 8 TESTS 37 1964 74444800 2200
465516 tanzaku C May 21, 2011, 2:30 p.m. OK Mono C# TESTS 37 660 14438400 2200
11330618 KombAlg C May 28, 2015, 9:13 a.m. OK MS C# TESTS 37 2712 13824000 2200
464300 P___ C May 20, 2011, 5:25 p.m. OK MS C++ TESTS 37 230 7987200 2200
463051 alger95 C May 20, 2011, 4:32 p.m. OK MS C++ TESTS 37 230 8601600 2200
464426 Ferlon C May 20, 2011, 5:36 p.m. OK MS C++ TESTS 37 230 10240000 2200
523110 emppu C June 30, 2011, 6:52 p.m. OK MS C++ TESTS 37 250 5836800 2200
465316 AleX C May 21, 2011, 10:43 a.m. OK MS C++ TESTS 37 250 7475200 2200
462706 good_mood C May 20, 2011, 4:20 p.m. OK MS C++ TESTS 37 270 7372800 2200
462236 Ripatti C May 20, 2011, 4 p.m. OK MS C++ TESTS 37 270 7372800 2200
465421 witua C May 21, 2011, 12:56 p.m. OK MS C++ TESTS 37 270 8294400 2200
462546 Anton_Lunyov C May 20, 2011, 4:13 p.m. OK MS C++ TESTS 37 270 8806400 2200
465359 Fdg C May 21, 2011, 11:49 a.m. OK MS C++ TESTS 37 270 8908800 2200
529796 ryuzmukhametov C July 6, 2011, 12:18 p.m. OK Python 2 TESTS 37 1480 27648000 2200
464074 -dp- C May 20, 2011, 4:59 p.m. OK Python 2 TESTS 37 2640 20070400 2200

remove filters

Back to search problems