Divide by Zero 2017 and Codeforces Round 399 (Div. 1 + Div. 2, combined)

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
768 Divide by Zero 2017 and Codeforces Round 399 (Div. 1 + Div. 2, combined) FINISHED False 9600 244216499 Feb. 20, 2017, 4:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2968 ) D Jon and Orbs PROGRAMMING dp math probabilities 2100

B'Jon Snow is on the lookout for some orbs required to defeat the white walkers. There are k different types of orbs and he needs at least one of each. One orb spawns daily at the base of a Weirwood tree north of the wall. The probability of this orb being of any kind is equal. As the north of wall is full of dangers, he wants to know the minimum number of days he should wait before sending a ranger to collect the orbs such that the probability of him getting at least one of each kind of orb is at least , where xce xb5 xe2 x80 x89< xe2 x80 x8910 xe2 x80 x89- xe2 x80 x897. To better prepare himself, he wants to know the answer for q different values of pi. Since he is busy designing the battle strategy with Sam, he asks you for your help. First line consists of two space separated integers k, q (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k, xe2 x80 x89q xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891000) -- number of different kinds of orbs and number of queries respectively. Each of the next q lines contain a single integer pi (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89pi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891000) -- i-th query. Output q lines. On i-th of them output single integer -- answer for i-th query. '...

Tutorials

Editorial Divide by Zero and Codeforces Round #399 (Div. 1+2, combined)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
24854409 Gassa D Feb. 20, 2017, 8:37 p.m. OK D TESTS 87 109 7168000 2100
24846942 TheHedgehog D Feb. 20, 2017, 5:56 p.m. OK Delphi TESTS 87 171 211660800 2100
25119837 lkmcfj D March 1, 2017, 9:45 a.m. OK FPC TESTS 87 93 1638400 2100
24875822 ShavelV D Feb. 21, 2017, 4:19 p.m. OK FPC TESTS 87 218 101888000 2100
32116657 vjudge3 D Nov. 7, 2017, 10:49 a.m. OK FPC TESTS 87 608 80281600 2100
24847740 zzhao1996 D Feb. 20, 2017, 6:04 p.m. OK GNU C TESTS 87 78 1945600 2100
24853638 CyberQuantum D Feb. 20, 2017, 8:23 p.m. OK GNU C TESTS 87 795 60313600 2100
24850027 matrix D Feb. 20, 2017, 6:29 p.m. OK GNU C++ TESTS 87 93 2150400 2100
24890306 BanFcc D Feb. 22, 2017, 10:42 a.m. OK GNU C++ TESTS 87 93 2150400 2100
27160451 thhyj D May 16, 2017, 1:21 p.m. OK GNU C++ TESTS 87 93 24268800 2100
26922465 acwaterbio D May 7, 2017, 11:41 a.m. OK GNU C++ TESTS 87 109 60313600 2100
24866749 Liu_QY D Feb. 21, 2017, 9:19 a.m. OK GNU C++ TESTS 87 124 2252800 2100
24850211 JOHNKRAM D Feb. 20, 2017, 6:31 p.m. OK GNU C++ TESTS 87 124 122982400 2100
24863870 chrt D Feb. 21, 2017, 7:06 a.m. OK GNU C++ TESTS 87 140 90112000 2100
24957291 RiseOfTheFallen D Feb. 24, 2017, 7:17 a.m. OK GNU C++ TESTS 87 140 123494400 2100
26783323 ksohan D May 1, 2017, 10:16 a.m. OK GNU C++ TESTS 87 155 122982400 2100
24874809 Jaihk662 D Feb. 21, 2017, 3:24 p.m. OK GNU C++ TESTS 87 155 123494400 2100
55596056 rainboy D June 15, 2019, 3:06 p.m. OK GNU C11 TESTS 87 327 102400 2100
43430283 Giwan D Sept. 26, 2018, 12:28 a.m. OK GNU C11 TESTS 87 655 80588800 2100
43431726 Ulises0998 D Sept. 26, 2018, 1:59 a.m. OK GNU C11 TESTS 87 685 80281600 2100
43435132 alexismed D Sept. 26, 2018, 4:55 a.m. OK GNU C11 TESTS 87 1169 81817600 2100
67417013 code_cola D Dec. 22, 2019, 10:16 a.m. OK GNU C++11 TESTS 87 46 0 2100
24907437 luoyb D Feb. 23, 2017, 3:06 a.m. OK GNU C++11 TESTS 87 46 66969600 2100
27410372 Momentaiii D May 28, 2017, 11:05 a.m. OK GNU C++11 TESTS 87 61 0 2100
28929705 OneStone D July 27, 2017, 12:09 p.m. OK GNU C++11 TESTS 87 61 2150400 2100
58121419 The.Last.Wizard D Aug. 1, 2019, 10:55 a.m. OK GNU C++11 TESTS 87 62 0 2100
25767837 PeekaBOO123 D March 24, 2017, 9:27 a.m. OK GNU C++11 TESTS 87 62 2150400 2100
25328455 sxie12 D March 7, 2017, 7:32 p.m. OK GNU C++11 TESTS 87 62 2150400 2100
24848709 PlayfulPanda D Feb. 20, 2017, 6:15 p.m. OK GNU C++11 TESTS 87 62 2150400 2100
24858353 shdut D Feb. 21, 2017, 1:02 a.m. OK GNU C++11 TESTS 87 78 2150400 2100
24871334 bciobanu D Feb. 21, 2017, 12:46 p.m. OK GNU C++11 TESTS 87 93 2048000 2100
40982426 ReaLNero1 D July 30, 2018, 6:25 p.m. OK GNU C++14 TESTS 87 46 307200 2100
25324830 MaryamG D March 7, 2017, 4:01 p.m. OK GNU C++14 TESTS 87 46 1945600 2100
32843857 md5_84 D Dec. 1, 2017, 11:40 p.m. OK GNU C++14 TESTS 87 46 1945600 2100
25824720 NVAL D March 26, 2017, 5:28 p.m. OK GNU C++14 TESTS 87 46 1945600 2100
25060460 Savaw D Feb. 26, 2017, 4:58 p.m. OK GNU C++14 TESTS 87 46 1945600 2100
24847783 xuanquang1999 D Feb. 20, 2017, 6:04 p.m. OK GNU C++14 TESTS 87 46 82944000 2100
52186868 njchung99 D April 1, 2019, 4:16 p.m. OK GNU C++14 TESTS 87 62 0 2100
30273512 danya.smelskiy D Sept. 11, 2017, 7:53 p.m. OK GNU C++14 TESTS 87 62 204800 2100
25827362 olekluka D March 26, 2017, 8:29 p.m. OK GNU C++14 TESTS 87 62 1945600 2100
25827373 toster1287 D March 26, 2017, 8:30 p.m. OK GNU C++14 TESTS 87 62 1945600 2100
53482756 bhamrick D April 28, 2019, 10:13 p.m. OK GNU C++17 TESTS 87 46 0 2100
37029683 karasek D April 6, 2018, 6:57 p.m. OK GNU C++17 TESTS 87 46 3379200 2100
50158490 Rzepa D Feb. 19, 2019, 11:27 a.m. OK GNU C++17 TESTS 87 62 0 2100
53100644 KevinWan D April 21, 2019, 4:15 p.m. OK GNU C++17 TESTS 87 62 204800 2100
53483020 dinosaurs D April 28, 2019, 10:38 p.m. OK GNU C++17 TESTS 87 93 0 2100
54859588 lmiskiew D May 30, 2019, 11:41 p.m. OK GNU C++17 TESTS 87 93 0 2100
47966908 Akikaze D Jan. 5, 2019, 12:35 p.m. OK GNU C++17 TESTS 87 108 307200 2100
41613810 nitro007 D Aug. 15, 2018, 7:53 a.m. OK GNU C++17 TESTS 87 108 120934400 2100
61785169 Suto82 D Oct. 3, 2019, 2:16 p.m. OK GNU C++17 TESTS 87 124 121753600 2100
59695017 PouyaNavid D Aug. 30, 2019, 8:09 a.m. OK GNU C++17 TESTS 87 140 127590400 2100
55596055 Dukkha D June 15, 2019, 3:06 p.m. OK Java 8 TESTS 87 280 0 2100
24884636 ml_guy D Feb. 22, 2017, 4:11 a.m. OK Java 8 TESTS 87 311 165273600 2100
44689398 Srinivasa_Ramanujan D Oct. 22, 2018, 11:21 a.m. OK Java 8 TESTS 87 327 75059200 2100
44689470 Srinivasa_Ramanujan D Oct. 22, 2018, 11:23 a.m. OK Java 8 TESTS 87 343 74956800 2100
25631632 eriksuenderhauf D March 18, 2017, 11:27 p.m. OK Java 8 TESTS 87 358 20992000 2100
24882520 eatmore D Feb. 22, 2017, 12:22 a.m. OK Java 8 TESTS 87 373 20480000 2100
24857736 safarisoul D Feb. 20, 2017, 11:56 p.m. OK Java 8 TESTS 87 374 20582400 2100
24910019 Dproduck D Feb. 23, 2017, 6:58 a.m. OK Java 8 TESTS 87 374 20992000 2100
25415650 alibaba D March 11, 2017, 6:42 p.m. OK Java 8 TESTS 87 374 168448000 2100
25069567 donli D Feb. 27, 2017, 5:31 a.m. OK Java 8 TESTS 87 389 20582400 2100
43434507 A00817810 D Sept. 26, 2018, 4:18 a.m. OK Mono C# TESTS 87 951 80486400 2100
24848913 Auster D Feb. 20, 2017, 6:17 p.m. OK MS C++ TESTS 87 77 82329600 2100
29148730 marszed D Aug. 3, 2017, 7:25 a.m. OK MS C++ TESTS 87 343 2150400 2100
25028836 ngdyqahty D Feb. 26, 2017, 5:49 a.m. OK MS C++ TESTS 87 389 2048000 2100
29148803 marszed D Aug. 3, 2017, 7:29 a.m. OK MS C++ TESTS 87 405 2150400 2100
30273008 iamexist D Sept. 11, 2017, 7:22 p.m. OK MS C++ TESTS 87 624 204800 2100
48883869 vjudge1 D Jan. 24, 2019, 11:32 a.m. OK MS C++ TESTS 87 795 80691200 2100
43419244 EnriqueFavilaM D Sept. 25, 2018, 4:54 p.m. OK MS C++ TESTS 87 795 80998400 2100
24847667 gnomina007 D Feb. 20, 2017, 6:03 p.m. OK MS C++ TESTS 87 811 82739200 2100
24875974 Khazhak D Feb. 21, 2017, 4:29 p.m. OK MS C++ TESTS 87 826 82432000 2100
24891615 Yurik D Feb. 22, 2017, 11:43 a.m. OK MS C++ TESTS 87 841 87244800 2100
53483834 cherry_su D April 29, 2019, 12:12 a.m. OK PyPy 2 TESTS 87 436 86528000 2100
24847252 NicolasK D Feb. 20, 2017, 5:59 p.m. OK PyPy 2 TESTS 87 498 84889600 2100
24888884 franckmy D Feb. 22, 2017, 9:20 a.m. OK PyPy 2 TESTS 87 498 84889600 2100
38571908 yugle7 D May 23, 2018, 8:30 p.m. OK PyPy 3 TESTS 87 560 9113600 2100
43432730 BrianRG D Sept. 26, 2018, 2:53 a.m. OK PyPy 3 TESTS 87 577 9113600 2100
27159721 xehoth D May 16, 2017, 12:49 p.m. OK PyPy 3 TESTS 87 1013 98099200 2100
26075426 0w1 D April 2, 2017, 10:28 a.m. OK PyPy 3 TESTS 87 1122 121139200 2100

remove filters

Back to search problems