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 |
---|---|---|---|---|---|---|
1245 | Codeforces Round 597 (Div. 2) | FINISHED | False | 7200 | 164820287 | Nov. 1, 2019, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1284 ) | E | Hyakugoku and Ladders | PROGRAMMING | dp probabilities shortest paths | 2300 |
B'Hyakugoku has just retired from being the resident deity of the South Black Snail Temple in order to pursue her dream of becoming a cartoonist. She spent six months in that temple just playing "Cat 's Cradle" so now she wants to try a different game -- "Snakes and Ladders". Unfortunately, she already killed all the snakes, so there are only ladders left now. The game is played on a 10 x 10 board as follows: Please note that: Hyakugoku wants to finish the game as soon as possible. Thus, on each turn she chooses whether to climb the ladder or not optimally. Help her to determine the minimum expected number of turns the game will take. Input will consist of ten lines. The i -th line will contain 10 non-negative integers h_{i1}, h_{i2}, ... , h_{i10} . If h_{ij} is 0 , then the tile at the i -th row and j -th column has no ladder. Otherwise, the ladder at that tile will have a height of h_{ij} , i.e. climbing it will lead to the tile h_{ij} rows directly above. It is guaranteed that 0 <= q h_{ij} < i . Also, the first number of the first line and the first number of the last line always contain 0 , i.e. the Goal and the starting tile never have ladders. Print only one line containing a single floating-point number -- the minimum expected number of turns Hyakugoku can take to finish the game. Your answer will be considered correct if its absolute or relative error does not exceed 10^{-6} . A visualization of the path and the board from example 2 is as follows: The tile with an 'S ' is the starting tile and the tile with an 'E ' is the Goal. For the first example, there are no ladders. For the second example, the board looks like the one in the right part of the image (the ladders have been colored for clarity). It is possible for ladders to overlap, as is the case with the red and yellow ladders and green and blue ladders. It is also possible for ladders to go straight to the top, as is the '... |
Codeforces Round #597 (Div. 2) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
65584445 | jschr | E | Nov. 23, 2019, 11:58 a.m. | OK | GNU C11 | TESTS | 25 | 31 | 0 | 2300 | |
64292091 | 4c5948 | E | Nov. 5, 2019, 7:24 a.m. | OK | GNU C11 | TESTS | 25 | 31 | 409600 | 2300 | |
64036601 | tiger0132 | E | Nov. 1, 2019, 4:34 p.m. | OK | GNU C11 | TESTS | 25 | 31 | 409600 | 2300 | |
64031716 | Drand | E | Nov. 1, 2019, 4:16 p.m. | OK | GNU C++11 | TESTS | 25 | 15 | 0 | 2300 | |
64150264 | cheetose | E | Nov. 3, 2019, 11:10 a.m. | OK | GNU C++11 | TESTS | 25 | 15 | 0 | 2300 | |
65942592 | HIT_TOM | E | Nov. 29, 2019, 7:03 a.m. | OK | GNU C++11 | TESTS | 25 | 30 | 0 | 2300 | |
69010673 | luogu_bot2 | E | Jan. 18, 2020, 3:20 a.m. | OK | GNU C++11 | TESTS | 25 | 30 | 0 | 2300 | |
68303405 | Imakf | E | Jan. 6, 2020, 7:53 a.m. | OK | GNU C++11 | TESTS | 25 | 30 | 0 | 2300 | |
64192498 | imily | E | Nov. 4, 2019, 8:20 a.m. | OK | GNU C++11 | TESTS | 25 | 30 | 0 | 2300 | |
65738188 | 4790iop | E | Nov. 26, 2019, 8:53 a.m. | OK | GNU C++11 | TESTS | 25 | 30 | 0 | 2300 | |
65026576 | M_sea | E | Nov. 15, 2019, 7:59 a.m. | OK | GNU C++11 | TESTS | 25 | 30 | 0 | 2300 | |
64866728 | luogu_bot5 | E | Nov. 14, 2019, 6:34 a.m. | OK | GNU C++11 | TESTS | 25 | 30 | 0 | 2300 | |
64323571 | 19130X | E | Nov. 5, 2019, 4:29 p.m. | OK | GNU C++11 | TESTS | 25 | 30 | 0 | 2300 | |
64286695 | basasuya | E | Nov. 5, 2019, 5:12 a.m. | OK | GNU C++14 | TESTS | 25 | 15 | 0 | 2300 | |
67053685 | imulan | E | Dec. 17, 2019, 5:44 a.m. | OK | GNU C++14 | TESTS | 25 | 15 | 0 | 2300 | |
64673890 | balbit | E | Nov. 11, 2019, 7:14 a.m. | OK | GNU C++14 | TESTS | 25 | 15 | 0 | 2300 | |
64624319 | BakaC1rno | E | Nov. 10, 2019, 8:02 a.m. | OK | GNU C++14 | TESTS | 25 | 15 | 0 | 2300 | |
64348719 | Sundar | E | Nov. 6, 2019, 7:28 a.m. | OK | GNU C++14 | TESTS | 25 | 15 | 0 | 2300 | |
64344173 | zdragoni | E | Nov. 6, 2019, 5:09 a.m. | OK | GNU C++14 | TESTS | 25 | 15 | 0 | 2300 | |
64291646 | xdu_lhz | E | Nov. 5, 2019, 7:15 a.m. | OK | GNU C++14 | TESTS | 25 | 15 | 0 | 2300 | |
64291453 | BBBob | E | Nov. 5, 2019, 7:10 a.m. | OK | GNU C++14 | TESTS | 25 | 15 | 0 | 2300 | |
64290641 | rfpermen | E | Nov. 5, 2019, 6:52 a.m. | OK | GNU C++14 | TESTS | 25 | 15 | 0 | 2300 | |
64219376 | heurezjusz | E | Nov. 4, 2019, 1:34 p.m. | OK | GNU C++14 | TESTS | 25 | 15 | 0 | 2300 | |
65503498 | kvutxdy | E | Nov. 21, 2019, 8:24 p.m. | OK | GNU C++17 | TESTS | 25 | 15 | 0 | 2300 | |
64866668 | installb | E | Nov. 14, 2019, 6:33 a.m. | OK | GNU C++17 | TESTS | 25 | 15 | 0 | 2300 | |
64500566 | zhaoxiaoyun | E | Nov. 8, 2019, 3:52 a.m. | OK | GNU C++17 | TESTS | 25 | 15 | 0 | 2300 | |
64296821 | TongChu | E | Nov. 5, 2019, 8:51 a.m. | OK | GNU C++17 | TESTS | 25 | 15 | 0 | 2300 | |
64280383 | Muh | E | Nov. 5, 2019, 1:18 a.m. | OK | GNU C++17 | TESTS | 25 | 15 | 0 | 2300 | |
64139438 | AK18 | E | Nov. 3, 2019, 8:06 a.m. | OK | GNU C++17 | TESTS | 25 | 15 | 0 | 2300 | |
64124494 | msporyshev | E | Nov. 3, 2019, 3:50 a.m. | OK | GNU C++17 | TESTS | 25 | 15 | 0 | 2300 | |
65917760 | vjudge4 | E | Nov. 28, 2019, 3:14 p.m. | OK | GNU C++17 | TESTS | 25 | 15 | 0 | 2300 | |
67623093 | ADJA | E | Dec. 25, 2019, 7:52 p.m. | OK | GNU C++17 | TESTS | 25 | 15 | 0 | 2300 | |
69255771 | heno239 | E | Jan. 21, 2020, 3:36 p.m. | OK | GNU C++17 | TESTS | 25 | 15 | 0 | 2300 | |
64171040 | TheSawan | E | Nov. 3, 2019, 6:23 p.m. | OK | Java 11 | TESTS | 25 | 186 | 0 | 2300 | |
64045917 | Dukkha | E | Nov. 1, 2019, 7:25 p.m. | OK | Java 11 | TESTS | 25 | 218 | 0 | 2300 | |
64575739 | xodiac | E | Nov. 9, 2019, 10:41 a.m. | OK | Java 8 | TESTS | 25 | 108 | 0 | 2300 | |
64089220 | phantom11 | E | Nov. 2, 2019, 12:09 p.m. | OK | Java 8 | TESTS | 25 | 109 | 0 | 2300 | |
64266885 | Nutella3000 | E | Nov. 4, 2019, 5:37 p.m. | OK | Java 8 | TESTS | 25 | 109 | 0 | 2300 | |
64185352 | JoelWee | E | Nov. 4, 2019, 4:39 a.m. | OK | Java 8 | TESTS | 25 | 109 | 0 | 2300 | |
64096809 | YJq | E | Nov. 2, 2019, 2:08 p.m. | OK | Java 8 | TESTS | 25 | 109 | 0 | 2300 | |
64048594 | YahiaSherif | E | Nov. 1, 2019, 8:26 p.m. | OK | Java 8 | TESTS | 25 | 109 | 0 | 2300 | |
64048545 | YahiaSherif | E | Nov. 1, 2019, 8:24 p.m. | OK | Java 8 | TESTS | 25 | 109 | 0 | 2300 | |
64663388 | Oopsimbad | E | Nov. 10, 2019, 11:01 p.m. | OK | Java 8 | TESTS | 25 | 124 | 0 | 2300 | |
64780343 | satya26 | E | Nov. 13, 2019, 6:50 a.m. | OK | Java 8 | TESTS | 25 | 124 | 0 | 2300 | |
64557255 | nofuck | E | Nov. 9, 2019, 4:28 a.m. | OK | Java 8 | TESTS | 25 | 124 | 0 | 2300 | |
64073434 | Spheniscine | E | Nov. 2, 2019, 8:09 a.m. | OK | Kotlin | TESTS | 25 | 124 | 0 | 2300 | |
64073808 | Spheniscine | E | Nov. 2, 2019, 8:15 a.m. | OK | Kotlin | TESTS | 25 | 140 | 0 | 2300 | |
64278482 | camypaper | E | Nov. 4, 2019, 11:36 p.m. | OK | Mono C# | TESTS | 25 | 46 | 0 | 2300 | |
64035760 | claw88 | E | Nov. 1, 2019, 4:31 p.m. | OK | Mono C# | TESTS | 25 | 62 | 0 | 2300 | |
64027414 | eulerscheZahl | E | Nov. 1, 2019, 3:59 p.m. | OK | Mono C# | TESTS | 25 | 77 | 3584000 | 2300 | |
64073742 | tarattata1 | E | Nov. 2, 2019, 8:14 a.m. | OK | MS C++ | TESTS | 25 | 31 | 0 | 2300 | |
69022827 | vjudge5 | E | Jan. 18, 2020, 6:40 a.m. | OK | MS C++ | TESTS | 25 | 31 | 0 | 2300 | |
69010714 | vjudge4 | E | Jan. 18, 2020, 3:22 a.m. | OK | MS C++ | TESTS | 25 | 31 | 0 | 2300 | |
64689775 | vjudge2 | E | Nov. 11, 2019, 12:48 p.m. | OK | MS C++ | TESTS | 25 | 31 | 0 | 2300 | |
64158395 | vjudge2 | E | Nov. 3, 2019, 1:35 p.m. | OK | MS C++ | TESTS | 25 | 31 | 0 | 2300 | |
64022543 | ano0406 | E | Nov. 1, 2019, 3:43 p.m. | OK | MS C++ 2017 | TESTS | 25 | 31 | 0 | 2300 | |
64293923 | taekop | E | Nov. 5, 2019, 8:01 a.m. | OK | MS C++ 2017 | TESTS | 25 | 31 | 0 | 2300 | |
64798396 | shebao | E | Nov. 13, 2019, 1:42 p.m. | OK | MS C++ 2017 | TESTS | 25 | 31 | 0 | 2300 | |
64028098 | bcollet | E | Nov. 1, 2019, 4:02 p.m. | OK | PyPy 2 | TESTS | 25 | 124 | 0 | 2300 | |
64022255 | astrom.lars | E | Nov. 1, 2019, 3:42 p.m. | OK | PyPy 2 | TESTS | 25 | 139 | 0 | 2300 | |
64031291 | zdbtxdy | E | Nov. 1, 2019, 4:14 p.m. | OK | PyPy 2 | TESTS | 25 | 140 | 0 | 2300 | |
66634108 | yumtam | E | Dec. 11, 2019, 12:16 p.m. | OK | PyPy 2 | TESTS | 25 | 155 | 0 | 2300 | |
64021542 | alexwice | E | Nov. 1, 2019, 3:40 p.m. | OK | PyPy 2 | TESTS | 25 | 156 | 1228800 | 2300 | |
64096406 | pajenegod | E | Nov. 2, 2019, 2:01 p.m. | OK | PyPy 2 | TESTS | 25 | 186 | 0 | 2300 | |
64706181 | Riolku | E | Nov. 11, 2019, 4:37 p.m. | OK | PyPy 3 | TESTS | 25 | 140 | 0 | 2300 | |
64023866 | xXx_KevinDu58_xXx | E | Nov. 1, 2019, 3:47 p.m. | OK | PyPy 3 | TESTS | 25 | 171 | 0 | 2300 | |
64023802 | _Kee | E | Nov. 1, 2019, 3:47 p.m. | OK | PyPy 3 | TESTS | 25 | 374 | 9830400 | 2300 | |
64028321 | nwi | E | Nov. 1, 2019, 4:02 p.m. | OK | Python 2 | TESTS | 25 | 218 | 0 | 2300 | |
64028064 | WNG | E | Nov. 1, 2019, 4:02 p.m. | OK | Python 3 | TESTS | 25 | 109 | 307200 | 2300 | |
66870111 | sritha | E | Dec. 14, 2019, 1:18 p.m. | OK | Python 3 | TESTS | 25 | 124 | 0 | 2300 | |
64034203 | PhilTheFish | E | Nov. 1, 2019, 4:26 p.m. | OK | Python 3 | TESTS | 25 | 124 | 0 | 2300 | |
64024378 | Kiri8128 | E | Nov. 1, 2019, 3:49 p.m. | OK | Python 3 | TESTS | 25 | 124 | 0 | 2300 | |
64051804 | at1 | E | Nov. 1, 2019, 10:09 p.m. | OK | Python 3 | TESTS | 25 | 124 | 307200 | 2300 | |
64049422 | Primusa | E | Nov. 1, 2019, 8:47 p.m. | OK | Python 3 | TESTS | 25 | 140 | 716800 | 2300 | |
64484463 | kribesk | E | Nov. 7, 2019, 5:11 p.m. | OK | Python 3 | TESTS | 25 | 155 | 0 | 2300 | |
64031556 | sansen | E | Nov. 1, 2019, 4:15 p.m. | OK | Rust | TESTS | 25 | 31 | 0 | 2300 | |
64235980 | yuya178 | E | Nov. 4, 2019, 2:12 p.m. | OK | Rust | TESTS | 25 | 46 | 204800 | 2300 | |
64626123 | kobae964 | E | Nov. 10, 2019, 8:35 a.m. | OK | Rust | TESTS | 25 | 46 | 307200 | 2300 | |
64153841 | yakamoto | E | Nov. 3, 2019, 12:12 p.m. | OK | Scala | TESTS | 25 | 468 | 0 | 2300 |
Back to search problems