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 |
|---|---|---|---|---|---|---|
| 676 | Codeforces Round 354 (Div. 2) | FINISHED | False | 7200 | 312216923 | May 25, 2016, 3:05 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 1961 ) | D | Theseus and labyrinth | PROGRAMMING | graphs implementation shortest paths | 2000 |
Theseus has just arrived to Crete to fight Minotaur. He found a labyrinth that has a form of a rectangular field of size n × m and consists of blocks of size 1 × 1 . Each block of the labyrinth has a button that rotates all blocks 90 degrees clockwise. Each block rotates around its center and doesn't change its position in the labyrinth. Also, each block has some number of doors (possibly none). In one minute, Theseus can either push the button in order to rotate all the blocks 90 degrees clockwise or pass to the neighbouring block. Theseus can go from block A to some neighbouring block B only if block A has a door that leads to block B and block B has a door that leads to block A . Theseus found an entrance to labyrinth and is now located in block ( x T , y T ) — the block in the row x T and column y T . Theseus know that the Minotaur is hiding in block ( x M , y M ) and wants to know the minimum number of minutes required to get there. Theseus is a hero, not a programmer, so he asks you to help him. The first line of the input contains two integers n and m ( 1 ≤ n , m ≤ 1000 ) — the number of rows and the number of columns in labyrinth, respectively. Each of the following n lines contains m characters, describing the blocks of the labyrinth. The possible characters are: « + » means this block has 4 doors (one door to each neighbouring block); « - » means this block has 2 doors — to the left and to the right neighbours; « | » means this block has 2 doors — to the top and to the bottom neighbours; « ^ » means this block has 1 door — to the top neighbour; « > » means this block has 1 door — to the right neighbour; « < » means this block has 1 door — to the left neighbour; « v » means this block has 1 door — to the bottom neighbour; « L » means this block has 3 doors — to all neighbours except left one; « R » means this block has 3 doors — to all neighbours except right one; « U » means this block has 3 doors — to all neighbours except top one; « D » means t |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 18088815 | dmlocdmloc | D | May 25, 2016, 5:01 p.m. | OK | FPC | TESTS | 40 | 248 | 83968000 | 2000 | |
| 18086801 | 0lkeh | D | May 25, 2016, 4:44 p.m. | OK | FPC | TESTS | 40 | 452 | 129024000 | 2000 | |
| 18088207 | nbvquang99 | D | May 25, 2016, 4:57 p.m. | OK | FPC | TESTS | 40 | 1669 | 259788800 | 2000 | |
| 18084658 | ws_yzy | D | May 25, 2016, 4:24 p.m. | OK | GNU C++ | TESTS | 40 | 187 | 84992000 | 2000 | |
| 18083757 | ODT | D | May 25, 2016, 4:15 p.m. | OK | GNU C++ | TESTS | 40 | 202 | 22425600 | 2000 | |
| 18081145 | la1la1la | D | May 25, 2016, 3:52 p.m. | OK | GNU C++ | TESTS | 40 | 217 | 99225600 | 2000 | |
| 18086890 | orponik | D | May 25, 2016, 4:44 p.m. | OK | GNU C++ | TESTS | 40 | 233 | 130764800 | 2000 | |
| 18088180 | shreeshaprabhu | D | May 25, 2016, 4:56 p.m. | OK | GNU C++ | TESTS | 40 | 234 | 46796800 | 2000 | |
| 18084409 | CR_MTX | D | May 25, 2016, 4:21 p.m. | OK | GNU C++ | TESTS | 40 | 249 | 35942400 | 2000 | |
| 18087486 | fuboat | D | May 25, 2016, 4:50 p.m. | OK | GNU C++ | TESTS | 40 | 249 | 46080000 | 2000 | |
| 18086845 | iliekcomputers | D | May 25, 2016, 4:44 p.m. | OK | GNU C++ | TESTS | 40 | 249 | 48230400 | 2000 | |
| 18086478 | nagibator | D | May 25, 2016, 4:41 p.m. | OK | GNU C++ | TESTS | 40 | 249 | 67276800 | 2000 | |
| 18087737 | hg_pt | D | May 25, 2016, 4:53 p.m. | OK | GNU C++ | TESTS | 40 | 265 | 36454400 | 2000 | |
| 18082156 | akaru | D | May 25, 2016, 4 p.m. | OK | GNU C++11 | TESTS | 40 | 202 | 35123200 | 2000 | |
| 18081695 | FailedSystemTest | D | May 25, 2016, 3:57 p.m. | OK | GNU C++11 | TESTS | 40 | 218 | 22732800 | 2000 | |
| 18086598 | AnotherRound | D | May 25, 2016, 4:42 p.m. | OK | GNU C++11 | TESTS | 40 | 218 | 29286400 | 2000 | |
| 18084903 | EZ_fwtt08 | D | May 25, 2016, 4:26 p.m. | OK | GNU C++11 | TESTS | 40 | 233 | 11366400 | 2000 | |
| 18078718 | yanglaoshiLQAKle | D | May 25, 2016, 3:34 p.m. | OK | GNU C++11 | TESTS | 40 | 233 | 22630400 | 2000 | |
| 18082596 | mathon | D | May 25, 2016, 4:04 p.m. | OK | GNU C++11 | TESTS | 40 | 233 | 23552000 | 2000 | |
| 18080137 | T_vous_sogra_T | D | May 25, 2016, 3:44 p.m. | OK | GNU C++11 | TESTS | 40 | 233 | 55808000 | 2000 | |
| 18083712 | kalafina | D | May 25, 2016, 4:14 p.m. | OK | GNU C++11 | TESTS | 40 | 234 | 7270400 | 2000 | |
| 18085163 | Rehcra | D | May 25, 2016, 4:28 p.m. | OK | GNU C++11 | TESTS | 40 | 234 | 7372800 | 2000 | |
| 18085384 | kokkiri29 | D | May 25, 2016, 4:30 p.m. | OK | GNU C++11 | TESTS | 40 | 234 | 11468800 | 2000 | |
| 18086748 | Ahmad_Elsagheer | D | May 25, 2016, 4:43 p.m. | OK | Java 8 | TESTS | 40 | 638 | 41164800 | 2000 | |
| 18083662 | alexyz | D | May 25, 2016, 4:14 p.m. | OK | Java 8 | TESTS | 40 | 638 | 113664000 | 2000 | |
| 18086134 | Dekacc | D | May 25, 2016, 4:38 p.m. | OK | Java 8 | TESTS | 40 | 717 | 38297600 | 2000 | |
| 18089088 | Raynger | D | May 25, 2016, 5:03 p.m. | OK | Java 8 | TESTS | 40 | 733 | 27852800 | 2000 | |
| 18086199 | a3636tako | D | May 25, 2016, 4:38 p.m. | OK | Java 8 | TESTS | 40 | 1793 | 253440000 | 2000 | |
| 18089010 | Thomas_Ahle | D | May 25, 2016, 5:03 p.m. | OK | Java 8 | TESTS | 40 | 1965 | 37990400 | 2000 | |
| 18087259 | martins | D | May 25, 2016, 4:48 p.m. | OK | Java 8 | TESTS | 40 | 2027 | 105267200 | 2000 | |
| 18085161 | rureggaeton | D | May 25, 2016, 4:28 p.m. | OK | MS C++ | TESTS | 40 | 468 | 100044800 | 2000 | |
| 18085038 | Huyum_nik | D | May 25, 2016, 4:27 p.m. | OK | MS C++ | TESTS | 40 | 546 | 27136000 | 2000 | |
| 18086271 | whitestone | D | May 25, 2016, 4:39 p.m. | OK | MS C++ | TESTS | 40 | 1076 | 22835200 | 2000 | |
| 18088068 | Gewery | D | May 25, 2016, 4:56 p.m. | OK | MS C++ | TESTS | 40 | 1170 | 13414400 | 2000 |
Back to search problems