AIM Tech Round (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
623 AIM Tech Round (Div. 1) FINISHED False 7200 321800123 Feb. 4, 2016, 5:05 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 554 ) D Birthday PROGRAMMING greedy math probabilities 2600

A MIPT student named Misha has a birthday today, and he decided to celebrate it in his country house in suburban Moscow. n friends came by, and after a typical party they decided to play blind man's buff. The birthday boy gets blindfolded and the other players scatter around the house. The game is played in several rounds. In each round, Misha catches exactly one of his friends and has to guess who it is. The probability of catching the i -th friend does not change between rounds and is equal to p i percent (as we know, it is directly proportional to the amount of alcohol consumed by the i -th friend) and p 1 + p 2 + ... + p n = 100 holds. Misha has no information about who he caught. After Misha makes an attempt to guess the caught person, the round ends. Even then, Misha isn't told whether he guessed correctly, and a new round begins. The game ends when Misha guesses every friend at least once, that is, there exists such set of rounds k 1 , k 2 , ..., k n , that during round number k i Misha caught the i -th friend and guessed him. Misha wants to minimize the expectation of the number of rounds of the game. Despite the fact that at any point in the game Misha has no information about who he has already guessed, his friends are honest, and if they see that the condition for the end of the game is fulfilled, the game ends immediately. Find the expectation of the number of rounds in the game if Misha plays optimally. The first line of the input contains a single integer n ( 1 ≤ n ≤ 100 ) — the number of Misha's friends. The second line contains n integers p i ( ), giving the probability to catch the i -th friend in one particular round in percent. Print a single real value — the expectation of the number of rounds provided that Misha plays optimally. Your answer will be considered correct if its absolute or relative error does not exceed 10 - 6 . Namely: let's assume that your answer is a , and the answer of the jury is b . The checker program will consider

Tutorials

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
15925417 PlayWithWind D Feb. 10, 2016, 6:58 a.m. OK GNU C++ TESTS 78 46 0 2600
16302382 KFDong D Feb. 24, 2016, 3:13 a.m. OK GNU C++ TESTS 78 62 0 2600
16339590 aufeas D Feb. 26, 2016, 2:45 a.m. OK GNU C++ TESTS 78 78 0 2600
17068084 117208 D March 31, 2016, 6:50 a.m. OK GNU C++ TESTS 78 93 2252800 2600
16982022 737363395 D March 28, 2016, 3:20 a.m. OK GNU C++ TESTS 78 108 2048000 2600
17289690 Philipsweng D April 12, 2016, 12:36 p.m. OK GNU C++ TESTS 78 124 0 2600
16043969 function348 D Feb. 16, 2016, 2:06 a.m. OK GNU C++ TESTS 78 124 0 2600
20906811 liaoliao D Sept. 25, 2016, 11:38 a.m. OK GNU C++ TESTS 78 156 0 2600
16053539 McGinn D Feb. 16, 2016, 9:48 a.m. OK GNU C++ TESTS 78 156 0 2600
29096415 Scut82 D Aug. 1, 2017, 10:34 a.m. OK GNU C++ TESTS 78 156 2150400 2600
15817096 Belonogov D Feb. 5, 2016, 2:36 a.m. OK GNU C++11 TESTS 78 15 0 2600
15817080 Belonogov D Feb. 5, 2016, 2:35 a.m. OK GNU C++11 TESTS 78 15 0 2600
15817075 Belonogov D Feb. 5, 2016, 2:34 a.m. OK GNU C++11 TESTS 78 15 0 2600
15817008 Belonogov D Feb. 5, 2016, 2:28 a.m. OK GNU C++11 TESTS 78 30 0 2600
40985222 ReaLNero1 D July 30, 2018, 7:49 p.m. OK GNU C++11 TESTS 78 31 0 2600
15953679 ftiasch D Feb. 11, 2016, 9:45 a.m. OK GNU C++11 TESTS 78 31 0 2600
15952590 628_LJ D Feb. 11, 2016, 8:23 a.m. OK GNU C++11 TESTS 78 31 0 2600
15817111 Belonogov D Feb. 5, 2016, 2:37 a.m. OK GNU C++11 TESTS 78 31 0 2600
15816998 Belonogov D Feb. 5, 2016, 2:27 a.m. OK GNU C++11 TESTS 78 31 0 2600
17756873 RiKang D May 6, 2016, 7:56 a.m. OK GNU C++11 TESTS 78 31 2048000 2600
62425300 I_love_chickpea D Oct. 12, 2019, 2:07 p.m. OK GNU C++14 TESTS 78 61 0 2600
25976000 Kmcode D March 31, 2017, 10:41 a.m. OK GNU C++14 TESTS 78 61 1945600 2600
29779061 Batman D Aug. 25, 2017, 12:31 p.m. OK GNU C++14 TESTS 78 62 204800 2600
22633290 snowy_smile D Dec. 1, 2016, 12:33 a.m. OK GNU C++14 TESTS 78 124 0 2600
22651030 vjudge5 D Dec. 2, 2016, 3:17 a.m. OK GNU C++14 TESTS 78 156 0 2600
22650897 TechMonster D Dec. 2, 2016, 2:56 a.m. OK GNU C++14 TESTS 78 156 0 2600
22650880 vjudge1 D Dec. 2, 2016, 2:54 a.m. OK GNU C++14 TESTS 78 171 0 2600
25975966 Kmcode D March 31, 2017, 10:39 a.m. OK GNU C++14 TESTS 78 187 1945600 2600
30257787 misael D Sept. 11, 2017, 2:22 a.m. OK GNU C++14 TESTS 78 202 0 2600
37638423 RUSH_D_CAT D April 26, 2018, 1:46 p.m. OK GNU C++14 TESTS 78 265 253440000 2600
64541591 yhchang3 D Nov. 8, 2019, 6:54 p.m. OK GNU C++17 TESTS 78 109 12083200 2600
55309183 Antoine D June 8, 2019, 4:28 p.m. OK GNU C++17 TESTS 78 124 204800 2600
57147582 zrz_orz D July 16, 2019, 1:31 p.m. OK GNU C++17 TESTS 78 140 0 2600
57147227 vjudge1 D July 16, 2019, 1:24 p.m. OK GNU C++17 TESTS 78 140 0 2600
53595583 lqs2015 D May 1, 2019, 4:05 a.m. OK GNU C++17 TESTS 78 140 0 2600
57863481 Benq D July 27, 2019, 7:14 p.m. OK GNU C++17 TESTS 78 171 0 2600
65305592 hjk1030 D Nov. 18, 2019, 2:46 p.m. OK GNU C++17 TESTS 78 202 266956800 2600
63737616 Roundgod D Oct. 29, 2019, 3:49 p.m. OK GNU C++17 TESTS 78 218 0 2600
69549254 ruo D Jan. 26, 2020, 5:31 a.m. OK GNU C++17 TESTS 78 311 204800 2600
68648513 Slaaava D Jan. 12, 2020, 9:56 a.m. OK GNU C++17 TESTS 78 468 8192000 2600
15811717 mkirsche D Feb. 4, 2016, 7:43 p.m. OK Java 7 TESTS 78 1996 0 2600
21646559 alexrcoleman D Oct. 21, 2016, 4:09 p.m. OK Java 8 TESTS 78 218 0 2600
15808239 mmaxio D Feb. 4, 2016, 6:44 p.m. OK Java 8 TESTS 78 233 0 2600
15803177 Egor D Feb. 4, 2016, 5:57 p.m. OK Java 8 TESTS 78 702 0 2600
15811026 uwi D Feb. 4, 2016, 7:31 p.m. OK Java 8 TESTS 78 951 0 2600
16333070 supachawal D Feb. 25, 2016, 3:21 p.m. OK JavaScript TESTS 78 156 307200 2600
16333186 supachawal D Feb. 25, 2016, 3:28 p.m. OK JavaScript TESTS 78 171 1126400 2600
16333148 supachawal D Feb. 25, 2016, 3:25 p.m. OK JavaScript TESTS 78 202 1126400 2600
15810005 alex9801 D Feb. 4, 2016, 7:02 p.m. OK MS C++ TESTS 78 78 0 2600
57067983 vjudge5 D July 15, 2019, 12:09 a.m. OK MS C++ TESTS 78 93 0 2600
15833086 AleksanderBalobanov D Feb. 5, 2016, 8:40 p.m. OK MS C++ TESTS 78 186 3174400 2600
15954244 Milanin D Feb. 11, 2016, 10:33 a.m. OK MS C++ TESTS 78 234 1638400 2600
15809767 Ilya_MSU D Feb. 4, 2016, 7 p.m. OK MS C++ TESTS 78 421 0 2600
15812231 Taube D Feb. 4, 2016, 7:55 p.m. OK MS C++ TESTS 78 483 0 2600
15809198 AnnKats93 D Feb. 4, 2016, 6:54 p.m. OK MS C++ TESTS 78 499 0 2600
15806823 izban D Feb. 4, 2016, 6:29 p.m. OK MS C++ TESTS 78 1513 0 2600
15813137 step5 D Feb. 4, 2016, 8:25 p.m. OK PyPy 3 TESTS 78 561 5632000 2600

remove filters

Back to search problems