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 |
---|---|---|---|---|---|---|
382 | Codeforces Round 224 (Div. 2) | FINISHED | False | 7200 | 347553023 | Jan. 17, 2014, 3:30 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 689 ) | D | Ksenia and Pawns | PROGRAMMING | dfs and similar graphs implementation trees | 2300 |
B'Ksenia has a chessboard of size n xe2 x80 x89 xc3 x97 xe2 x80 x89m. Each cell of the chessboard contains one of the characters: "<", ">", "^", "v", "#". The cells that contain character "#" are blocked. We know that all chessboard cells that touch the border are blocked. Ksenia is playing with two pawns on this chessboard. Initially, she puts the pawns on the chessboard. One cell of the chessboard can contain two pawns if and only if the cell is blocked. In other cases two pawns can not stand in one cell. The game begins when Ksenia put pawns on the board. In one move, Ksenia moves each pawn to a side adjacent cell in the direction of arrows painted on the cell on which the corresponding pawn sits (if the pawn sits on "#", it does not move). Assume that Ksenia moves pawns simultaneously (see the second test case). Of course, Ksenia plays for points. How can one calculate the points per game? Very simply! Let 's count how many movements the first pawn made and how many movements the second pawn made, sum these two numbers -- it will be the resulting score of the game. Ksenia wonders: what is the maximum number of points she can earn (for that, she should place the pawns optimally well early in the game). Help her and find that number. The first line contains two integers, n and m (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892000) -- the sizes of the board. Each of the following n lines contains m characters xe2 x80 x93 the board 's description. Each character is one of the characters: "<", ">", "^", "v", "#". It is guaranteed that the border cells of the table are blocked cells (with character "#"). If Ksenia can get infinitely many points, print -1. Otherwise, print the maximum number of points she can get.'... |
Codeforces Round #224 (Div. 2) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
5812011 | Misha100896 | D | Jan. 26, 2014, 11:01 a.m. | OK | Delphi | TESTS | 36 | 233 | 102912000 | 2300 | |
5906568 | ZeRoGerc | D | Feb. 5, 2014, 7:31 p.m. | OK | FPC | TESTS | 36 | 218 | 73011200 | 2300 | |
5720046 | Nik_Storm_2010 | D | Jan. 17, 2014, 4:57 p.m. | OK | FPC | TESTS | 36 | 233 | 111923200 | 2300 | |
5723041 | Oryshych | D | Jan. 17, 2014, 5:28 p.m. | OK | FPC | TESTS | 36 | 296 | 172236800 | 2300 | |
5730409 | ivanilos | D | Jan. 18, 2014, 11:08 a.m. | OK | GNU C | TESTS | 36 | 140 | 68300800 | 2300 | |
5724947 | xlyle | D | Jan. 17, 2014, 6:38 p.m. | OK | GNU C++ | TESTS | 36 | 124 | 44236800 | 2300 | |
17999120 | vjudge3 | D | May 20, 2016, 3:47 a.m. | OK | GNU C++ | TESTS | 36 | 124 | 46182400 | 2300 | |
13533929 | ibahadir.altun | D | Oct. 10, 2015, 6 p.m. | OK | GNU C++ | TESTS | 36 | 124 | 71782400 | 2300 | |
5900493 | pkwv | D | Feb. 5, 2014, 4:17 a.m. | OK | GNU C++ | TESTS | 36 | 124 | 147865600 | 2300 | |
5725478 | walk_upon | D | Jan. 17, 2014, 7:15 p.m. | OK | GNU C++ | TESTS | 36 | 124 | 147968000 | 2300 | |
14035054 | 130705009 | D | Nov. 2, 2015, 11:20 p.m. | OK | GNU C++ | TESTS | 36 | 139 | 54272000 | 2300 | |
5729273 | yimmon | D | Jan. 18, 2014, 7:47 a.m. | OK | GNU C++ | TESTS | 36 | 139 | 163942400 | 2300 | |
12428900 | bukefala | D | Aug. 9, 2015, 6:16 p.m. | OK | GNU C++ | TESTS | 36 | 139 | 166912000 | 2300 | |
5735802 | shobe | D | Jan. 18, 2014, 7:48 p.m. | OK | GNU C++ | TESTS | 36 | 139 | 184320000 | 2300 | |
5760705 | roben_76 | D | Jan. 20, 2014, 9:51 p.m. | OK | GNU C++ | TESTS | 36 | 139 | 200499200 | 2300 | |
6314662 | ArchMaG | D | April 10, 2014, 9:01 p.m. | OK | GNU C++0x | TESTS | 36 | 124 | 4096000 | 2300 | |
6314643 | ArchMaG | D | April 10, 2014, 8:57 p.m. | OK | GNU C++0x | TESTS | 36 | 124 | 4096000 | 2300 | |
5727049 | tsfn | D | Jan. 18, 2014, 12:26 a.m. | OK | GNU C++0x | TESTS | 36 | 139 | 152985600 | 2300 | |
5718211 | MrDindows | D | Jan. 17, 2014, 4:36 p.m. | OK | GNU C++0x | TESTS | 36 | 140 | 104243200 | 2300 | |
7488495 | whn6325689 | D | Aug. 17, 2014, 2:35 a.m. | OK | GNU C++0x | TESTS | 36 | 155 | 255795200 | 2300 | |
5736816 | 354898002 | D | Jan. 19, 2014, 1:13 a.m. | OK | GNU C++0x | TESTS | 36 | 155 | 255795200 | 2300 | |
5726076 | vshantarin | D | Jan. 17, 2014, 8:30 p.m. | OK | GNU C++0x | TESTS | 36 | 170 | 86835200 | 2300 | |
5726832 | niquefa_diego | D | Jan. 17, 2014, 11:16 p.m. | OK | GNU C++0x | TESTS | 36 | 170 | 196505600 | 2300 | |
5726862 | DemoVersion | D | Jan. 17, 2014, 11:29 p.m. | OK | GNU C++0x | TESTS | 36 | 171 | 152883200 | 2300 | |
5722469 | krzychusan | D | Jan. 17, 2014, 5:22 p.m. | OK | GNU C++0x | TESTS | 36 | 171 | 167833600 | 2300 | |
15610143 | shishirt22 | D | Jan. 27, 2016, 11:12 a.m. | OK | GNU C++11 | TESTS | 36 | 124 | 40038400 | 2300 | |
15977447 | Deltadromeus | D | Feb. 12, 2016, 7:42 p.m. | OK | GNU C++11 | TESTS | 36 | 124 | 54579200 | 2300 | |
23897298 | uma2609 | D | Jan. 17, 2017, 8:02 a.m. | OK | GNU C++11 | TESTS | 36 | 124 | 154009600 | 2300 | |
41218724 | luogu_bot2 | D | Aug. 4, 2018, 2:22 p.m. | OK | GNU C++11 | TESTS | 36 | 139 | 163737600 | 2300 | |
17166059 | Tima | D | April 5, 2016, 4:18 a.m. | OK | GNU C++11 | TESTS | 36 | 139 | 215654400 | 2300 | |
17138882 | freebsdx | D | April 3, 2016, 3:05 a.m. | OK | GNU C++11 | TESTS | 36 | 140 | 56422400 | 2300 | |
32071898 | tingooo | D | Nov. 5, 2017, 9:14 a.m. | OK | GNU C++11 | TESTS | 36 | 155 | 176332800 | 2300 | |
47705422 | ljl | D | Dec. 29, 2018, 7:53 p.m. | OK | GNU C++11 | TESTS | 36 | 155 | 259276800 | 2300 | |
45376764 | yycc | D | Nov. 6, 2018, 12:44 p.m. | OK | GNU C++11 | TESTS | 36 | 155 | 259276800 | 2300 | |
56430328 | xielinhan | D | July 2, 2019, 11:45 a.m. | OK | GNU C++11 | TESTS | 36 | 156 | 259481600 | 2300 | |
54872399 | prince367 | D | May 31, 2019, 9:58 a.m. | OK | GNU C++14 | TESTS | 36 | 155 | 36556800 | 2300 | |
51954001 | abgnegplt | D | March 28, 2019, 11:27 p.m. | OK | GNU C++14 | TESTS | 36 | 186 | 248012800 | 2300 | |
30942366 | sz1231 | D | Oct. 2, 2017, 12:30 p.m. | OK | GNU C++14 | TESTS | 36 | 186 | 259481600 | 2300 | |
20458740 | YPL | D | Sept. 8, 2016, 12:58 p.m. | OK | GNU C++14 | TESTS | 36 | 186 | 259481600 | 2300 | |
46761420 | iaojnh | D | Dec. 8, 2018, 1:38 p.m. | OK | GNU C++14 | TESTS | 36 | 187 | 148172800 | 2300 | |
31002307 | Cristiano_Ronaldo | D | Oct. 4, 2017, 8:05 p.m. | OK | GNU C++14 | TESTS | 36 | 187 | 263065600 | 2300 | |
52216375 | Ejecutante | D | April 2, 2019, 2:13 a.m. | OK | GNU C++14 | TESTS | 36 | 202 | 234700800 | 2300 | |
30942356 | sz1231 | D | Oct. 2, 2017, 12:30 p.m. | OK | GNU C++14 | TESTS | 36 | 202 | 259481600 | 2300 | |
26364272 | princejvm | D | April 14, 2017, 6:21 p.m. | OK | GNU C++14 | TESTS | 36 | 202 | 261427200 | 2300 | |
26306797 | rawatds | D | April 11, 2017, 7:46 p.m. | OK | GNU C++14 | TESTS | 36 | 202 | 261427200 | 2300 | |
35229231 | strawberrry | D | Feb. 14, 2018, 11:30 a.m. | OK | GNU C++17 | TESTS | 36 | 186 | 261427200 | 2300 | |
56560021 | ruo | D | July 5, 2019, 2:24 p.m. | OK | GNU C++17 | TESTS | 36 | 202 | 215756800 | 2300 | |
52242877 | Hassanosama | D | April 2, 2019, 5:31 p.m. | OK | GNU C++17 | TESTS | 36 | 217 | 260096000 | 2300 | |
67659766 | Phortox | D | Dec. 26, 2019, 3:19 p.m. | OK | GNU C++17 | TESTS | 36 | 233 | 259481600 | 2300 | |
50307457 | tataky | D | Feb. 22, 2019, 7:08 a.m. | OK | GNU C++17 | TESTS | 36 | 249 | 203878400 | 2300 | |
41911278 | arbitrary_A | D | Aug. 20, 2018, 6:01 p.m. | OK | GNU C++17 | TESTS | 36 | 249 | 262656000 | 2300 | |
5745039 | hiukim | D | Jan. 20, 2014, 8:19 a.m. | OK | Java 6 | TESTS | 36 | 233 | 19660800 | 2300 | |
5816063 | aste | D | Jan. 26, 2014, 11:54 p.m. | OK | Java 6 | TESTS | 36 | 545 | 121139200 | 2300 | |
5725420 | OSt | D | Jan. 17, 2014, 7:10 p.m. | OK | Java 6 | TESTS | 36 | 623 | 120729600 | 2300 | |
5901866 | I_love_Malika | D | Feb. 5, 2014, 8:28 a.m. | OK | Java 6 | TESTS | 36 | 639 | 138035200 | 2300 | |
5722148 | Petruchcho | D | Jan. 17, 2014, 5:19 p.m. | OK | Java 6 | TESTS | 36 | 936 | 152064000 | 2300 | |
5742547 | GhpS | D | Jan. 19, 2014, 8:08 p.m. | OK | Java 7 | TESTS | 36 | 280 | 53555200 | 2300 | |
5735855 | vadimmm | D | Jan. 18, 2014, 8:03 p.m. | OK | Java 7 | TESTS | 36 | 280 | 53657600 | 2300 | |
5735829 | vadimmm | D | Jan. 18, 2014, 7:56 p.m. | OK | Java 7 | TESTS | 36 | 280 | 54067200 | 2300 | |
5724762 | harhrayr | D | Jan. 17, 2014, 6:28 p.m. | OK | Java 7 | TESTS | 36 | 280 | 97075200 | 2300 | |
5735835 | vadimmm | D | Jan. 18, 2014, 7:58 p.m. | OK | Java 7 | TESTS | 36 | 296 | 53657600 | 2300 | |
8756133 | Zyflair | D | Nov. 19, 2014, 2:29 p.m. | OK | Java 7 | TESTS | 36 | 296 | 64512000 | 2300 | |
5725188 | qwerty787788 | D | Jan. 17, 2014, 6:52 p.m. | OK | Java 7 | TESTS | 36 | 358 | 124620800 | 2300 | |
5724360 | dusty.and.rusty | D | Jan. 17, 2014, 6:13 p.m. | OK | Java 7 | TESTS | 36 | 389 | 58982400 | 2300 | |
5725913 | alexey.kasatkin | D | Jan. 17, 2014, 8:06 p.m. | OK | Java 7 | TESTS | 36 | 390 | 55603200 | 2300 | |
10337481 | vjudge2 | D | March 18, 2015, 1 p.m. | OK | Java 7 | TESTS | 36 | 482 | 53145600 | 2300 | |
25540059 | donli | D | March 16, 2017, 6:33 a.m. | OK | Java 8 | TESTS | 36 | 483 | 104755200 | 2300 | |
10166081 | Pimpom | D | March 5, 2015, 3:31 p.m. | OK | Java 8 | TESTS | 36 | 779 | 22323200 | 2300 | |
28939938 | Minaa | D | July 28, 2017, 1:05 a.m. | OK | Java 8 | TESTS | 36 | 826 | 161894400 | 2300 | |
28938370 | aabdelzaher | D | July 27, 2017, 9:27 p.m. | OK | Java 8 | TESTS | 36 | 1044 | 268390400 | 2300 | |
20316464 | alibaba | D | Sept. 1, 2016, 7:41 a.m. | OK | Java 8 | TESTS | 36 | 1123 | 254464000 | 2300 | |
5726563 | QuantumKnight | D | Jan. 17, 2014, 10:07 p.m. | OK | MS C# | TESTS | 36 | 327 | 101683200 | 2300 | |
11013416 | azukun | D | May 6, 2015, 1:40 p.m. | OK | MS C# | TESTS | 36 | 389 | 98816000 | 2300 | |
5744820 | byserge | D | Jan. 20, 2014, 7:43 a.m. | OK | MS C# | TESTS | 36 | 499 | 95744000 | 2300 | |
5781804 | acrux | D | Jan. 24, 2014, 2:54 a.m. | OK | MS C++ | TESTS | 36 | 124 | 147558400 | 2300 | |
5718841 | Merlininice | D | Jan. 17, 2014, 4:44 p.m. | OK | MS C++ | TESTS | 36 | 124 | 152064000 | 2300 | |
5741554 | Nakochi | D | Jan. 19, 2014, 4:17 p.m. | OK | MS C++ | TESTS | 36 | 124 | 175923200 | 2300 | |
5726080 | vshantarin | D | Jan. 17, 2014, 8:30 p.m. | OK | MS C++ | TESTS | 36 | 139 | 86630400 | 2300 | |
5730203 | hjx1212 | D | Jan. 18, 2014, 10:28 a.m. | OK | MS C++ | TESTS | 36 | 139 | 147865600 | 2300 | |
5734769 | hykych | D | Jan. 18, 2014, 3:39 p.m. | OK | MS C++ | TESTS | 36 | 140 | 136192000 | 2300 | |
5725897 | vshantarin | D | Jan. 17, 2014, 8:04 p.m. | OK | MS C++ | TESTS | 36 | 140 | 166400000 | 2300 | |
5736902 | rotoZOOM | D | Jan. 19, 2014, 1:42 a.m. | OK | MS C++ | TESTS | 36 | 155 | 69324800 | 2300 | |
5725848 | a.goqadze | D | Jan. 17, 2014, 7:58 p.m. | OK | MS C++ | TESTS | 36 | 155 | 147660800 | 2300 | |
5745888 | YQCMMD | D | Jan. 20, 2014, 11:32 a.m. | OK | MS C++ | TESTS | 36 | 155 | 148172800 | 2300 |
Back to search problems