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 |
---|---|---|---|---|---|---|
446 | Codeforces Round #FF (Div. 1) | FINISHED | False | 7200 | 332355604 | July 13, 2014, 1 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 420 ) | D | DZY Loves Games | PROGRAMMING | math matrices probabilities | 2800 |
B"Today DZY begins to play an old game. In this game, he is in a big maze with n rooms connected by m corridors (each corridor allows to move in both directions). You can assume that all the rooms are connected with corridors directly or indirectly. DZY has got lost in the maze. Currently he is in the first room and has k lives. He will act like the follows: There are some rooms which have traps in them. The first room definitely has no trap, the n-th room definitely has a trap. Each time DZY enters one of these rooms, he will lost one life. Now, DZY knows that if he enters the n-th room with exactly 2 lives, firstly he will lost one live, but then he will open a bonus round. He wants to know the probability for him to open the bonus round. Please, help him. The first line contains three integers n, xe2 x80 x89m, xe2 x80 x89k (2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89500; 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105; 2 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109). The second line contains n integers, each of them is either 0 or 1. If the i-th number is 1, then the i-th room has a trap, otherwise it has not a trap. Please note, that the number of rooms with a trap is no more than 101. It is guaranteed that the first room has no trap, and the n-th room has a trap. Then m lines follows. Each of them contains two integers ui, xe2 x80 x89vi (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ui, xe2 x80 x89vi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n; ui xe2 x80 x89 xe2 x89 xa0 xe2 x80 x89vi), meaning that current corridor connects two rooms ui and vi. It is guaranteed that the corridor system is connected. Print the only real number -- the probability for DZY to open the bonus round. The answer will be considered correct if its relative or absolute error doesn't exceed 10 xe2 x80 x89- xe2 x80 x894."... |
Codeforces Round #FF(255) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
7357520 | hos.lyric | D | Aug. 6, 2014, 5:04 a.m. | OK | D | TESTS | 25 | 577 | 11571200 | 2800 | |
26210845 | xianhaoming | D | April 8, 2017, 6:41 a.m. | OK | FPC | TESTS | 25 | 249 | 45875200 | 2800 | |
7148745 | yubaby | D | July 18, 2014, 12:17 p.m. | OK | FPC | TESTS | 25 | 436 | 4403200 | 2800 | |
34506348 | Scut82 | D | Jan. 24, 2018, 6:59 a.m. | OK | GNU C++ | TESTS | 25 | 46 | 11264000 | 2800 | |
40988270 | ReaLNero1 | D | July 30, 2018, 9:51 p.m. | OK | GNU C++ | TESTS | 25 | 62 | 14643200 | 2800 | |
26214807 | Howarli | D | April 8, 2017, 9:15 a.m. | OK | GNU C++ | TESTS | 25 | 62 | 16691200 | 2800 | |
18354590 | pegasas | D | June 10, 2016, 8:13 a.m. | OK | GNU C++ | TESTS | 25 | 77 | 7270400 | 2800 | |
7413292 | yml | D | Aug. 10, 2014, 11:36 a.m. | OK | GNU C++ | TESTS | 25 | 78 | 4198400 | 2800 | |
13999311 | 130705009 | D | Nov. 1, 2015, 3:43 a.m. | OK | GNU C++ | TESTS | 25 | 93 | 2969600 | 2800 | |
26212077 | vjudge1 | D | April 8, 2017, 7:30 a.m. | OK | GNU C++ | TESTS | 25 | 93 | 5120000 | 2800 | |
35872724 | ______u______ | D | March 3, 2018, 7:16 a.m. | OK | GNU C++ | TESTS | 25 | 108 | 5017600 | 2800 | |
35872487 | ______n______ | D | March 3, 2018, 7:10 a.m. | OK | GNU C++ | TESTS | 25 | 108 | 5017600 | 2800 | |
35871871 | _____i_____ | D | March 3, 2018, 6:58 a.m. | OK | GNU C++ | TESTS | 25 | 108 | 5017600 | 2800 | |
8244019 | zhj | D | Oct. 16, 2014, 8:02 a.m. | OK | GNU C++0x | TESTS | 25 | 139 | 6246400 | 2800 | |
7102392 | Orfest | D | July 14, 2014, 4:04 p.m. | OK | GNU C++0x | TESTS | 25 | 171 | 5939200 | 2800 | |
7102389 | Orfest | D | July 14, 2014, 4:03 p.m. | OK | GNU C++0x | TESTS | 25 | 171 | 5939200 | 2800 | |
7102728 | gustav | D | July 14, 2014, 4:55 p.m. | OK | GNU C++0x | TESTS | 25 | 187 | 15360000 | 2800 | |
7685064 | desert97 | D | Sept. 4, 2014, 11:47 p.m. | OK | GNU C++0x | TESTS | 25 | 218 | 6860800 | 2800 | |
7193261 | lost3030 | D | July 21, 2014, 10:14 a.m. | OK | GNU C++0x | TESTS | 25 | 218 | 12595200 | 2800 | |
7245421 | marat.snowbear | D | July 25, 2014, 9:42 p.m. | OK | GNU C++0x | TESTS | 25 | 233 | 7270400 | 2800 | |
7183696 | StefanoT | D | July 20, 2014, 5:34 a.m. | OK | GNU C++0x | TESTS | 25 | 233 | 200908800 | 2800 | |
7103964 | MinakoKojima | D | July 14, 2014, 9:20 p.m. | OK | GNU C++0x | TESTS | 25 | 234 | 8499200 | 2800 | |
7103926 | MinakoKojima | D | July 14, 2014, 9:12 p.m. | OK | GNU C++0x | TESTS | 25 | 234 | 8499200 | 2800 | |
55734759 | 207M | D | June 19, 2019, 2:43 a.m. | OK | GNU C++11 | TESTS | 25 | 78 | 3072000 | 2800 | |
55734780 | luogu_bot4 | D | June 19, 2019, 2:44 a.m. | OK | GNU C++11 | TESTS | 25 | 78 | 3174400 | 2800 | |
57889597 | lopare | D | July 28, 2019, 11:19 a.m. | OK | GNU C++11 | TESTS | 25 | 93 | 2969600 | 2800 | |
57819247 | py_ultron | D | July 26, 2019, 9:45 p.m. | OK | GNU C++11 | TESTS | 25 | 93 | 2969600 | 2800 | |
58499431 | shuitiacji | D | Aug. 9, 2019, 1:36 p.m. | OK | GNU C++11 | TESTS | 25 | 93 | 9420800 | 2800 | |
52809395 | luogu_bot3 | D | April 16, 2019, 7:32 a.m. | OK | GNU C++11 | TESTS | 25 | 109 | 4403200 | 2800 | |
52809340 | menjiantong | D | April 16, 2019, 7:30 a.m. | OK | GNU C++11 | TESTS | 25 | 109 | 4403200 | 2800 | |
51557895 | Jessie01 | D | March 20, 2019, 6:12 a.m. | OK | GNU C++11 | TESTS | 25 | 109 | 4505600 | 2800 | |
11973099 | HellKitsune | D | July 8, 2015, 1:51 p.m. | OK | GNU C++11 | TESTS | 25 | 109 | 4710400 | 2800 | |
23556605 | Ragdoll | D | Jan. 5, 2017, 2:29 p.m. | OK | GNU C++11 | TESTS | 25 | 109 | 14028800 | 2800 | |
63269467 | vjudge1 | D | Oct. 24, 2019, 3 a.m. | OK | GNU C++14 | TESTS | 25 | 109 | 11673600 | 2800 | |
31231128 | ditoly | D | Oct. 12, 2017, 2:54 a.m. | OK | GNU C++14 | TESTS | 25 | 171 | 5427200 | 2800 | |
50511407 | RUSH_D_CAT | D | Feb. 26, 2019, 1:09 a.m. | OK | GNU C++14 | TESTS | 25 | 187 | 29593600 | 2800 | |
36874588 | CQzhangyu | D | April 2, 2018, 10 a.m. | OK | GNU C++14 | TESTS | 25 | 202 | 6963200 | 2800 | |
23078351 | Reyna | D | Dec. 18, 2016, 6:49 a.m. | OK | GNU C++14 | TESTS | 25 | 217 | 26419200 | 2800 | |
35776403 | KhaledKEE | D | Feb. 27, 2018, 11:17 p.m. | OK | GNU C++14 | TESTS | 25 | 233 | 14745600 | 2800 | |
31231037 | FallDream | D | Oct. 12, 2017, 2:43 a.m. | OK | GNU C++14 | TESTS | 25 | 264 | 17305600 | 2800 | |
24815673 | Not_A_SingleDogQrz | D | Feb. 20, 2017, 5:39 a.m. | OK | GNU C++14 | TESTS | 25 | 265 | 9011200 | 2800 | |
24821052 | WuHongxun | D | Feb. 20, 2017, 11:44 a.m. | OK | GNU C++14 | TESTS | 25 | 296 | 8601600 | 2800 | |
25465382 | King_George | D | March 14, 2017, 3:45 a.m. | OK | GNU C++14 | TESTS | 25 | 296 | 9932800 | 2800 | |
51856532 | Elegia | D | March 26, 2019, 11:22 a.m. | OK | GNU C++17 | TESTS | 25 | 124 | 5222400 | 2800 | |
59334324 | ruo | D | Aug. 23, 2019, 3:33 a.m. | OK | GNU C++17 | TESTS | 25 | 140 | 3481600 | 2800 | |
59334001 | ruo | D | Aug. 23, 2019, 3:19 a.m. | OK | GNU C++17 | TESTS | 25 | 140 | 6553600 | 2800 | |
59334104 | ruo | D | Aug. 23, 2019, 3:24 a.m. | OK | GNU C++17 | TESTS | 25 | 156 | 3481600 | 2800 | |
59263915 | ruo | D | Aug. 22, 2019, 9:51 a.m. | OK | GNU C++17 | TESTS | 25 | 171 | 6553600 | 2800 | |
68226745 | hjk1030 | D | Jan. 5, 2020, 7:28 a.m. | OK | GNU C++17 | TESTS | 25 | 171 | 11571200 | 2800 | |
47535262 | Jatana | D | Dec. 27, 2018, 12:19 a.m. | OK | GNU C++17 | TESTS | 25 | 186 | 10854400 | 2800 | |
51581101 | Als123 | D | March 20, 2019, 2:31 p.m. | OK | GNU C++17 | TESTS | 25 | 202 | 35532800 | 2800 | |
53483872 | alex_Harry | D | April 29, 2019, 12:17 a.m. | OK | GNU C++17 | TESTS | 25 | 202 | 49152000 | 2800 | |
59334376 | ruo | D | Aug. 23, 2019, 3:35 a.m. | OK | GNU C++17 | TESTS | 25 | 217 | 24985600 | 2800 | |
7110168 | dnk | D | July 15, 2014, 2:57 p.m. | OK | Java 6 | TESTS | 25 | 592 | 102400 | 2800 | |
7110166 | dnk | D | July 15, 2014, 2:57 p.m. | OK | Java 7 | TESTS | 25 | 592 | 102400 | 2800 | |
7511640 | PlayLikeNeverB4 | D | Aug. 19, 2014, 8:47 p.m. | OK | Java 7 | TESTS | 25 | 607 | 204800 | 2800 | |
7509947 | PlayLikeNeverB4 | D | Aug. 19, 2014, 4:04 p.m. | OK | Java 7 | TESTS | 25 | 873 | 204800 | 2800 | |
7102843 | uwi | D | July 14, 2014, 5:13 p.m. | OK | Java 7 | TESTS | 25 | 904 | 102400 | 2800 | |
7100536 | mmaxio | D | July 14, 2014, 12:27 p.m. | OK | Java 8 | TESTS | 25 | 499 | 2969600 | 2800 | |
7090502 | mmaxio | D | July 13, 2014, 3:39 p.m. | OK | Java 8 | TESTS | 25 | 514 | 2969600 | 2800 | |
7110161 | dnk | D | July 15, 2014, 2:56 p.m. | OK | Java 8 | TESTS | 25 | 561 | 2048000 | 2800 | |
7334722 | fqw | D | Aug. 3, 2014, 5:35 a.m. | OK | Java 8 | TESTS | 25 | 592 | 1945600 | 2800 | |
7115002 | vjudge1 | D | July 16, 2014, 9:40 a.m. | OK | MS C++ | TESTS | 25 | 217 | 8192000 | 2800 | |
15143379 | HappyNewYearMike | D | Dec. 31, 2015, 11:16 p.m. | OK | MS C++ | TESTS | 25 | 358 | 5734400 | 2800 | |
7188172 | kolina | D | July 20, 2014, 5:01 p.m. | OK | MS C++ | TESTS | 25 | 358 | 5836800 | 2800 | |
7095007 | Rivx | D | July 13, 2014, 11:11 p.m. | OK | MS C++ | TESTS | 25 | 389 | 14848000 | 2800 |
Back to search problems