Codeforces Beta Round 53

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
57 Codeforces Beta Round 53 FINISHED False 7200 480434423 Jan. 25, 2011, 4 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 360 ) D Journey PROGRAMMING dp math 2400

Stewie the Rabbit explores a new parallel universe. This two dimensional universe has the shape of a rectangular grid, containing n lines and m columns. The universe is very small: one cell of the grid can only contain one particle. Each particle in this universe is either static or dynamic. Each static particle always remains in one and the same position. Due to unintelligible gravitation laws no two static particles in the parallel universe can be present in one column or row, and they also can't be present in the diagonally adjacent cells. A dynamic particle appears in a random empty cell, randomly chooses the destination cell (destination cell may coincide with the start cell, see the samples) and moves there along the shortest path through the cells, unoccupied by the static particles. All empty cells have the same probability of being selected as the beginning or end of the path. Having reached the destination cell, the particle disappears. Only one dynamic particle can exist at one moment of time. This particle can move from a cell to a cell if they have an adjacent side, and this transition takes exactly one galactic second. Stewie got interested in what is the average lifespan of one particle in the given universe. The first line contains two space-separated integers: n , m ( 2 ≤ n , m ≤ 1000 ) which represent the sizes of the universe. The next n lines containing m symbols each describe the universe without dynamic particles — the j -th symbol of the i -th line equals to 'X' if the cell is occupied by a static particle, and to '.' if it is empty. It is guaranteed that the described universe satisfies the properties described above, that is no two static particles can be in one column or in one row, besides, they can't be positioned in the diagonally adjacent cells. You have to print on a single line a single number which is the average life span of a particle with an accuracy of at least 6 decimal places. The answer will be accepted if it is with

Tutorials

Codeforces Beta Round #53 [Analysis]

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
276684 evg-zhabotinsky D Feb. 7, 2011, 11:08 a.m. OK Delphi TESTS 57 50 921600 2400
262995 tourist D Jan. 25, 2011, 4:36 p.m. OK Delphi TESTS 57 60 1843200 2400
1216071 zanoes D Feb. 22, 2012, 1:35 p.m. OK FPC TESTS 57 50 1024000 2400
2587763 luogan D Nov. 19, 2012, 10:13 a.m. OK FPC TESTS 57 250 16076800 2400
2769496 wyl8899 D Dec. 15, 2012, 9:07 a.m. OK GNU C++ TESTS 57 15 0 2400
13818296 130705009 D Oct. 24, 2015, 5:36 a.m. OK GNU C++ TESTS 57 15 1024000 2400
22502491 silly_girl D Nov. 26, 2016, 6:59 a.m. OK GNU C++ TESTS 57 15 4096000 2400
22256214 Jin_Haonan D Nov. 16, 2016, 2:52 a.m. OK GNU C++ TESTS 57 30 0 2400
5455054 equation314 D Dec. 17, 2013, 12:08 p.m. OK GNU C++ TESTS 57 30 0 2400
4810786 zyf940104357 D Oct. 17, 2013, 12:58 a.m. OK GNU C++ TESTS 57 30 1024000 2400
4810785 vjudge5 D Oct. 17, 2013, 12:56 a.m. OK GNU C++ TESTS 57 30 1024000 2400
4810776 zyf940104357 D Oct. 17, 2013, 12:52 a.m. OK GNU C++ TESTS 57 30 1024000 2400
4806982 zyf940104357 D Oct. 16, 2013, 2:04 p.m. OK GNU C++ TESTS 57 30 1024000 2400
13098533 nxihkke D Sept. 19, 2015, 8:44 a.m. OK GNU C++ TESTS 57 30 2048000 2400
2827812 CMHJT D Dec. 26, 2012, 5:55 a.m. OK GNU C++0x TESTS 57 15 0 2400
2821313 llj_bash D Dec. 24, 2012, 7:29 a.m. OK GNU C++0x TESTS 57 31 0 2400
2818900 apia D Dec. 23, 2012, 11:25 a.m. OK GNU C++0x TESTS 57 31 0 2400
2907252 Archon.JK D Jan. 12, 2013, 9:56 a.m. OK GNU C++0x TESTS 57 31 1024000 2400
2821485 dc. D Dec. 24, 2012, 8:07 a.m. OK GNU C++0x TESTS 57 46 2150400 2400
8945503 sdya D Dec. 2, 2014, 6:52 p.m. OK GNU C++0x TESTS 57 156 21811200 2400
35894558 _____k_____ D March 3, 2018, 4:24 p.m. OK GNU C++11 TESTS 57 30 2048000 2400
35893791 ______n______ D March 3, 2018, 4:07 p.m. OK GNU C++11 TESTS 57 30 2048000 2400
35889224 ______u______ D March 3, 2018, 2:36 p.m. OK GNU C++11 TESTS 57 30 2048000 2400
35887923 _____i_____ D March 3, 2018, 2:13 p.m. OK GNU C++11 TESTS 57 30 2048000 2400
35884394 ______h______ D March 3, 2018, 1:10 p.m. OK GNU C++11 TESTS 57 30 2048000 2400
35884227 ______k______ D March 3, 2018, 1:09 p.m. OK GNU C++11 TESTS 57 30 2048000 2400
35883185 ______i______ D March 3, 2018, 12:50 p.m. OK GNU C++11 TESTS 57 30 2048000 2400
35874602 ______M______ D March 3, 2018, 7:57 a.m. OK GNU C++11 TESTS 57 30 2048000 2400
62597323 jhzjk D Oct. 15, 2019, 2:53 a.m. OK GNU C++11 TESTS 57 31 0 2400
62597297 Zhou_JK D Oct. 15, 2019, 2:52 a.m. OK GNU C++11 TESTS 57 31 0 2400
20342122 2016 D Sept. 2, 2016, 1:56 p.m. OK GNU C++14 TESTS 57 15 1024000 2400
56016096 sorry_im_smurfing D June 24, 2019, 9:20 p.m. OK GNU C++14 TESTS 57 31 0 2400
66434047 tmt514 D Dec. 7, 2019, 5:11 a.m. OK GNU C++14 TESTS 57 31 1024000 2400
45233543 ASSWECAN D Nov. 3, 2018, 8:14 a.m. OK GNU C++14 TESTS 57 31 1024000 2400
22255968 SakurakoujiRuna D Nov. 16, 2016, 2:30 a.m. OK GNU C++14 TESTS 57 31 1024000 2400
56726771 artur.socha D July 8, 2019, 8:19 p.m. OK GNU C++14 TESTS 57 31 1945600 2400
34925428 nanicode D Feb. 4, 2018, 3:38 p.m. OK GNU C++14 TESTS 57 31 1945600 2400
28399895 xehoth D July 10, 2017, 6:36 a.m. OK GNU C++14 TESTS 57 31 2048000 2400
37480489 Flash-boy D April 20, 2018, 8:13 a.m. OK GNU C++14 TESTS 57 31 4710400 2400
34556168 Cmise D Jan. 25, 2018, 7:19 p.m. OK GNU C++14 TESTS 57 31 14950400 2400
67268504 vjudge3 D Dec. 20, 2019, 7:10 a.m. OK GNU C++17 TESTS 57 46 0 2400
38351926 ruo D May 17, 2018, 2:20 p.m. OK GNU C++17 TESTS 57 46 204800 2400
61009894 MinecraftFuns D Sept. 21, 2019, 11:59 a.m. OK GNU C++17 TESTS 57 46 307200 2400
43169707 Zhang_RQ D Sept. 21, 2018, 7:32 a.m. OK GNU C++17 TESTS 57 46 1024000 2400
263463 Egor D Jan. 25, 2011, 4:54 p.m. OK Java 6 TESTS 57 170 43315200 2400
265765 yaro D Jan. 26, 2011, 5:51 p.m. OK Java 6 TESTS 57 190 43315200 2400
264102 ivan.popelyshev D Jan. 25, 2011, 5:29 p.m. OK Java 6 TESTS 57 190 43315200 2400
264872 OgieKako D Jan. 25, 2011, 6:53 p.m. OK Java 6 TESTS 57 220 43315200 2400
264842 uwi D Jan. 25, 2011, 6:45 p.m. OK Java 6 TESTS 57 230 43315200 2400
264372 rudradevbasak D Jan. 25, 2011, 5:48 p.m. OK Java 6 TESTS 57 250 43315200 2400
264761 SpookyCookie D Jan. 25, 2011, 6:28 p.m. OK Java 6 TESTS 57 270 43417600 2400
264508 OgieKako D Jan. 25, 2011, 5:55 p.m. OK Java 6 TESTS 57 340 43315200 2400
265334 boski.jr D Jan. 26, 2011, 7:12 a.m. OK Java 6 TESTS 57 380 43417600 2400
286892 05yesterday D Feb. 18, 2011, 2:56 a.m. OK Java 6 TESTS 57 410 43315200 2400
9737483 odorf D Feb. 6, 2015, 2:54 p.m. OK Java 7 TESTS 57 280 0 2400
12883225 hama-du D Sept. 7, 2015, 11:06 a.m. OK Java 8 TESTS 57 171 0 2400
266812 LinJiYuan90 D Jan. 28, 2011, 4:14 p.m. OK MS C++ TESTS 57 50 2355200 2400
264046 al13n D Jan. 25, 2011, 5:26 p.m. OK MS C++ TESTS 57 60 2560000 2400
308953 Psilocybe D Feb. 27, 2011, 6:18 p.m. OK MS C++ TESTS 57 80 1433600 2400
840454 Endagorion D Jan. 25, 2011, 5:29 p.m. OK MS C++ TESTS 57 80 2662400 2400
315734 Sigmar D March 5, 2011, 6:24 a.m. OK MS C++ TESTS 57 80 2662400 2400
27836529 Tampere D June 17, 2017, 2:46 a.m. OK MS C++ TESTS 57 140 1228800 2400
264871 maksay D Jan. 25, 2011, 6:53 p.m. OK MS C++ TESTS 57 300 1331200 2400
301844 luckyi D Feb. 24, 2011, 9:25 p.m. OK MS C++ TESTS 57 300 2457600 2400
456803 comco D May 16, 2011, 12:46 p.m. OK MS C++ TESTS 57 310 5632000 2400
2766563 kesongyu D Dec. 14, 2012, 12:37 p.m. OK MS C++ TESTS 57 406 1126400 2400

remove filters

Back to search problems