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 |
---|---|---|---|---|---|---|
1236 | Codeforces Round 593 (Div. 2) | FINISHED | False | 7200 | 166119887 | Oct. 17, 2019, 1:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1683 ) | D | Alice and the Doll | PROGRAMMING | brute force data structures greedy implementation | 2100 |
B"Alice got a new doll these days. It can even walk! Alice has built a maze for the doll and wants to test it. The maze is a grid with n rows and m columns. There are k obstacles, the i -th of them is on the cell (x_i, y_i) , which means the cell in the intersection of the x_i -th row and the y_i -th column. However, the doll is clumsy in some ways. It can only walk straight or turn right at most once in the same cell (including the start cell). It cannot get into a cell with an obstacle or get out of the maze. More formally, there exist 4 directions, in which the doll can look: Standing in some cell the doll can move into the cell in the direction it looks or it can turn right once. Turning right once, the doll switches it's direction by the following rules: 1 to 2 , 2 to 3 , 3 to 4 , 4 to 1 . Standing in one cell, the doll can make at most one turn right. Now Alice is controlling the doll's moves. She puts the doll in of the cell (1, 1) (the upper-left cell of the maze). Initially, the doll looks to the direction 1 , so along the row from the first cell to the last. She wants to let the doll walk across all the cells without obstacles exactly once and end in any place. Can it be achieved? The first line contains three integers n , m and k , separated by spaces ( 1 <= q n,m <= q 10^5, 0 <= q k <= q 10^5 ) -- the size of the maze and the number of obstacles. Next k lines describes the obstacles, the i -th line contains two integer numbers x_i and y_i , separated by spaces ( 1 <= q x_i <= q n,1 <= q y_i <= q m ), which describes the position of the i -th obstacle. It is guaranteed that no two obstacles are in the same cell and no obstacle is in cell (1, 1) . Print 'Yes' (without quotes) if the doll can walk across all the cells without obstacles exactly once by the rules, described in the statement. If it is impossible to wa"... |
70654 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
62879295 | rainboy | D | Oct. 18, 2019, 4:19 p.m. | OK | GNU C11 | TESTS | 224 | 62 | 6553600 | 2100 | |
62877737 | rainboy | D | Oct. 18, 2019, 3:50 p.m. | OK | GNU C11 | TESTS | 224 | 78 | 6553600 | 2100 | |
62863796 | fnoigsh | D | Oct. 18, 2019, 11:36 a.m. | OK | GNU C++11 | TESTS | 224 | 31 | 614400 | 2100 | |
62925875 | BeNoble | D | Oct. 19, 2019, 11:19 a.m. | OK | GNU C++11 | TESTS | 224 | 31 | 921600 | 2100 | |
62926190 | BeNoble | D | Oct. 19, 2019, 11:24 a.m. | OK | GNU C++11 | TESTS | 224 | 31 | 921600 | 2100 | |
62810799 | ZYyboT | D | Oct. 17, 2019, 3:10 p.m. | OK | GNU C++11 | TESTS | 222 | 46 | 614400 | 2100 | |
62928715 | paul120090105 | D | Oct. 19, 2019, 12:04 p.m. | OK | GNU C++11 | TESTS | 224 | 46 | 921600 | 2100 | |
62899930 | lszxj | D | Oct. 19, 2019, 3:33 a.m. | OK | GNU C++11 | TESTS | 224 | 46 | 4608000 | 2100 | |
62845521 | llyc | D | Oct. 18, 2019, 5:25 a.m. | OK | GNU C++11 | TESTS | 224 | 46 | 4710400 | 2100 | |
63622507 | luojinyao | D | Oct. 28, 2019, 12:35 a.m. | OK | GNU C++11 | TESTS | 225 | 46 | 4710400 | 2100 | |
63269777 | flyzer | D | Oct. 24, 2019, 3:12 a.m. | OK | GNU C++11 | TESTS | 225 | 46 | 4710400 | 2100 | |
66214283 | KaiserYang | D | Dec. 3, 2019, 8:15 a.m. | OK | GNU C++11 | TESTS | 225 | 61 | 5939200 | 2100 | |
62823671 | ShanOvery | D | Oct. 17, 2019, 5:23 p.m. | OK | GNU C++14 | TESTS | 222 | 62 | 4812800 | 2100 | |
62839345 | polequoll | D | Oct. 18, 2019, 1:27 a.m. | OK | GNU C++14 | TESTS | 224 | 62 | 11673600 | 2100 | |
62842047 | Marckess | D | Oct. 18, 2019, 3:24 a.m. | OK | GNU C++14 | TESTS | 224 | 77 | 5632000 | 2100 | |
62822057 | cheissmart | D | Oct. 17, 2019, 4:59 p.m. | OK | GNU C++14 | TESTS | 222 | 78 | 1228800 | 2100 | |
63076343 | xing_mo | D | Oct. 21, 2019, 1:49 p.m. | OK | GNU C++14 | TESTS | 225 | 78 | 4812800 | 2100 | |
63921836 | zarathu | D | Oct. 31, 2019, 11:56 a.m. | OK | GNU C++14 | TESTS | 225 | 78 | 4812800 | 2100 | |
63370356 | qpzm | D | Oct. 25, 2019, 9:08 a.m. | OK | GNU C++14 | TESTS | 225 | 78 | 4812800 | 2100 | |
63268991 | vjudge5 | D | Oct. 24, 2019, 2:41 a.m. | OK | GNU C++14 | TESTS | 225 | 78 | 4812800 | 2100 | |
63128245 | Charonxu | D | Oct. 22, 2019, 1:27 p.m. | OK | GNU C++14 | TESTS | 225 | 78 | 4812800 | 2100 | |
63086760 | _FlyingColor_ | D | Oct. 21, 2019, 4:50 p.m. | OK | GNU C++14 | TESTS | 225 | 78 | 4812800 | 2100 | |
63120671 | qhqh | D | Oct. 22, 2019, 11:06 a.m. | OK | GNU C++17 | TESTS | 225 | 62 | 819200 | 2100 | |
62974336 | qinyuyang | D | Oct. 20, 2019, 8:03 a.m. | OK | GNU C++17 | TESTS | 224 | 62 | 1638400 | 2100 | |
64555480 | Peppa__Pig | D | Nov. 9, 2019, 3:23 a.m. | OK | GNU C++17 | TESTS | 225 | 62 | 2457600 | 2100 | |
62869774 | zhangxiyuan | D | Oct. 18, 2019, 1:25 p.m. | OK | GNU C++17 | TESTS | 224 | 62 | 5632000 | 2100 | |
62941979 | pqqqAn | D | Oct. 19, 2019, 3:55 p.m. | OK | GNU C++17 | TESTS | 224 | 77 | 2355200 | 2100 | |
63853354 | Fyodor | D | Oct. 30, 2019, 4:27 p.m. | OK | GNU C++17 | TESTS | 225 | 77 | 4812800 | 2100 | |
62824469 | vito1036 | D | Oct. 17, 2019, 5:37 p.m. | OK | GNU C++17 | TESTS | 222 | 77 | 4812800 | 2100 | |
68743123 | vjudge5 | D | Jan. 14, 2020, 2:45 a.m. | OK | GNU C++17 | TESTS | 225 | 77 | 4812800 | 2100 | |
62967449 | Edwivv | D | Oct. 20, 2019, 5:26 a.m. | OK | GNU C++17 | TESTS | 224 | 77 | 6041600 | 2100 | |
69036812 | misaki_meiqvq | D | Jan. 18, 2020, 9:13 a.m. | OK | GNU C++17 | TESTS | 225 | 77 | 10444800 | 2100 | |
62962645 | z20124528 | D | Oct. 20, 2019, 2:08 a.m. | OK | Go | TESTS | 224 | 312 | 18636800 | 2100 | |
63853256 | serafimkoo | D | Oct. 30, 2019, 4:26 p.m. | OK | Java 11 | TESTS | 225 | 452 | 35840000 | 2100 | |
63691923 | NormalGeek | D | Oct. 29, 2019, 3:12 a.m. | OK | Java 8 | TESTS | 225 | 249 | 18022400 | 2100 | |
62832830 | armking | D | Oct. 17, 2019, 8:36 p.m. | OK | Java 8 | TESTS | 224 | 265 | 15667200 | 2100 | |
63364393 | JoelWee | D | Oct. 25, 2019, 6:57 a.m. | OK | Java 8 | TESTS | 225 | 296 | 15872000 | 2100 | |
62804112 | Musin | D | Oct. 17, 2019, 2:36 p.m. | OK | Java 8 | TESTS | 222 | 327 | 17408000 | 2100 | |
62841907 | dtsarun | D | Oct. 18, 2019, 3:20 a.m. | OK | Java 8 | TESTS | 224 | 327 | 24576000 | 2100 | |
62851088 | htvu | D | Oct. 18, 2019, 7:23 a.m. | OK | Java 8 | TESTS | 224 | 327 | 35532800 | 2100 | |
62824634 | mink0389 | D | Oct. 17, 2019, 5:40 p.m. | OK | Java 8 | TESTS | 222 | 343 | 31948800 | 2100 | |
62953089 | adarsh000321 | D | Oct. 19, 2019, 7:26 p.m. | OK | Java 8 | TESTS | 224 | 358 | 35942400 | 2100 | |
62889778 | polyakoff | D | Oct. 18, 2019, 7:53 p.m. | OK | Java 8 | TESTS | 224 | 374 | 37990400 | 2100 | |
62879410 | Dukkha | D | Oct. 18, 2019, 4:21 p.m. | OK | Java 8 | TESTS | 224 | 389 | 0 | 2100 | |
63993967 | Spheniscine | D | Nov. 1, 2019, 2 p.m. | OK | Kotlin | TESTS | 225 | 358 | 19865600 | 2100 | |
62842405 | Spheniscine | D | Oct. 18, 2019, 3:37 a.m. | OK | Kotlin | TESTS | 224 | 530 | 61030400 | 2100 | |
63020814 | claw88 | D | Oct. 20, 2019, 2:29 p.m. | OK | Mono C# | TESTS | 225 | 202 | 17305600 | 2100 | |
62840477 | azukun | D | Oct. 18, 2019, 2:20 a.m. | OK | Mono C# | TESTS | 224 | 202 | 18432000 | 2100 | |
62822813 | omikad | D | Oct. 17, 2019, 5:09 p.m. | OK | Mono C# | TESTS | 222 | 202 | 20480000 | 2100 | |
62822754 | Umqra | D | Oct. 17, 2019, 5:08 p.m. | OK | Mono C# | TESTS | 222 | 280 | 25702400 | 2100 | |
69700100 | tarattata1 | D | Jan. 28, 2020, 11:27 p.m. | OK | MS C++ | TESTS | 225 | 77 | 5734400 | 2100 | |
62821390 | r57shell | D | Oct. 17, 2019, 4:52 p.m. | OK | MS C++ | TESTS | 222 | 78 | 1638400 | 2100 | |
69907596 | vjudge3 | D | Jan. 31, 2020, 2:32 p.m. | OK | MS C++ | TESTS | 225 | 78 | 5734400 | 2100 | |
62918518 | vjudge2 | D | Oct. 19, 2019, 9:21 a.m. | OK | MS C++ | TESTS | 224 | 155 | 16076800 | 2100 | |
66168430 | vjudge5 | D | Dec. 2, 2019, 8:57 a.m. | OK | MS C++ | TESTS | 225 | 156 | 7065600 | 2100 | |
69912839 | vjudge5 | D | Jan. 31, 2020, 3:53 p.m. | OK | MS C++ | TESTS | 225 | 202 | 28876800 | 2100 | |
65566972 | vjudge3 | D | Nov. 23, 2019, 6:18 a.m. | OK | MS C++ | TESTS | 225 | 295 | 35328000 | 2100 | |
63519525 | vjudge5 | D | Oct. 27, 2019, 3:01 a.m. | OK | MS C++ 2017 | TESTS | 225 | 78 | 6041600 | 2100 | |
62836991 | j2v | D | Oct. 17, 2019, 11:22 p.m. | OK | MS C++ 2017 | TESTS | 224 | 78 | 6758400 | 2100 | |
63486847 | vjudge5 | D | Oct. 26, 2019, 1:22 p.m. | OK | MS C++ 2017 | TESTS | 225 | 93 | 5836800 | 2100 | |
62935322 | manofreality | D | Oct. 19, 2019, 1:55 p.m. | OK | MS C++ 2017 | TESTS | 224 | 171 | 819200 | 2100 | |
62813390 | AleksanderBalobanov | D | Oct. 17, 2019, 3:24 p.m. | OK | MS C++ 2017 | TESTS | 222 | 171 | 12697600 | 2100 | |
62847761 | Simon_Chen | D | Oct. 18, 2019, 6:05 a.m. | OK | MS C++ 2017 | TESTS | 224 | 202 | 8704000 | 2100 | |
62836428 | j2v | D | Oct. 17, 2019, 10:54 p.m. | OK | MS C++ 2017 | TESTS | 224 | 218 | 13414400 | 2100 | |
62849551 | Prokopiy | D | Oct. 18, 2019, 6:46 a.m. | OK | MS C++ 2017 | TESTS | 224 | 218 | 14643200 | 2100 | |
62835400 | j2v | D | Oct. 17, 2019, 10:05 p.m. | OK | MS C++ 2017 | TESTS | 224 | 264 | 12902400 | 2100 | |
62835210 | j2v | D | Oct. 17, 2019, 9:57 p.m. | OK | MS C++ 2017 | TESTS | 224 | 265 | 12902400 | 2100 | |
62821139 | pajenegod | D | Oct. 17, 2019, 4:50 p.m. | OK | PyPy 2 | TESTS | 222 | 327 | 21708800 | 2100 | |
62811750 | kabeer27 | D | Oct. 17, 2019, 3:15 p.m. | OK | PyPy 2 | TESTS | 222 | 420 | 18636800 | 2100 | |
68193214 | thekushalghosh | D | Jan. 4, 2020, 2:06 p.m. | OK | PyPy 3 | TESTS | 225 | 358 | 14131200 | 2100 | |
62825104 | komolakanto | D | Oct. 17, 2019, 5:49 p.m. | OK | PyPy 3 | TESTS | 222 | 452 | 15872000 | 2100 | |
62950344 | Kirillov_Alexey | D | Oct. 19, 2019, 6:39 p.m. | OK | PyPy 3 | TESTS | 224 | 482 | 15052800 | 2100 | |
62830030 | FLOP | D | Oct. 17, 2019, 7:27 p.m. | OK | PyPy 3 | TESTS | 224 | 732 | 85708800 | 2100 | |
62823553 | rahdpp | D | Oct. 17, 2019, 5:21 p.m. | OK | PyPy 3 | TESTS | 222 | 998 | 14336000 | 2100 | |
62806372 | asvasil | D | Oct. 17, 2019, 2:47 p.m. | OK | PyPy 3 | TESTS | 222 | 998 | 14540800 | 2100 | |
62829849 | FLOP | D | Oct. 17, 2019, 7:22 p.m. | OK | Python 3 | TESTS | 224 | 889 | 78336000 | 2100 | |
62829688 | FLOP | D | Oct. 17, 2019, 7:19 p.m. | OK | Python 3 | TESTS | 224 | 966 | 79052800 | 2100 | |
62820986 | sansen | D | Oct. 17, 2019, 4:48 p.m. | OK | Rust | TESTS | 222 | 93 | 10752000 | 2100 |
Back to search problems