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 |
| 750
|
Good Bye 2016 |
FINISHED |
False |
9000 |
293298323 |
Dec. 30, 2016, 2:15 p.m. |
Problems
Pay attention to the output section below, where you will see the information about flushing the output. Bearland is a grid with h rows and w columns. Rows are numbered 1 through h from top to bottom. Columns are numbered 1 through w from left to right. Every cell is either allowed (denoted by ' . ' in the input) or permanently blocked (denoted by ' # '). Bearland is a cold land, where heavy snow often makes travelling harder. Every day a few allowed cells are temporarily blocked by snow. Note, that this block works only on this particular day and next day any of these cells might be allowed again (unless there is another temporarily block). It's possible to move directly between two cells only if they share a side and none of them is permanently or temporarily blocked. Limak is a little polar bear who lives in Bearland. His house is at the top left cell, while his school is at the bottom right cell. Every day Limak should first go from his house to the school and then return back to his house. Since he gets bored easily, he doesn't want to visit the same cell twice on one day, except for the cell with his house, where he starts and ends. If Limak can reach a school and return home avoiding revisiting cells, he calls a day interesting . There are q days you must process, one after another. For each of these days you should check if it's interesting and print " YES " or " NO " on a separate line. In order to be able to read the description of the next day you should print the answer for the previous one and flush the output. It's guaranteed that a day with no cells temporarily blocked by snow would be interesting. It's also guaranteed that cells with Limak's house and school are never blocked (neither permanently or temporarily). The first line of the input contains three integers h , w and q ( 2 ≤ h , w ≤ 1000 , 1 ≤ q ≤ 10 000 ) — the height and the width of the grid, and the number of days, respectively. Next h lines describe which cells are allowed and w |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|
28182880 |
iwtywai2005 |
H |
July 1, 2017, 2:53 a.m. |
OK |
GNU C++ |
TESTS |
16 |
155 |
35225600 |
|
3400 |
|
27766690 |
AkaneSasu |
H |
June 14, 2017, 3:32 a.m. |
OK |
GNU C++ |
TESTS |
16 |
171 |
33075200 |
|
3400 |
|
27121137 |
jiyutian |
H |
May 15, 2017, 12:20 p.m. |
OK |
GNU C++ |
TESTS |
16 |
218 |
64819200 |
|
3400 |
|
40982838 |
ReaLNero1 |
H |
July 30, 2018, 6:36 p.m. |
OK |
GNU C++ |
TESTS |
16 |
264 |
33075200 |
|
3400 |
|
24815679 |
Dylans |
H |
Feb. 20, 2017, 5:40 a.m. |
OK |
GNU C++ |
TESTS |
16 |
280 |
119398400 |
|
3400 |
|
36293777 |
zhan8855 |
H |
March 15, 2018, 8:42 a.m. |
OK |
GNU C++ |
TESTS |
16 |
576 |
34406400 |
|
3400 |
|
36293831 |
zhan8855 |
H |
March 15, 2018, 8:45 a.m. |
OK |
GNU C++ |
TESTS |
16 |
608 |
34406400 |
|
3400 |
|
25495261 |
miaom |
H |
March 15, 2017, 10:34 a.m. |
OK |
GNU C++ |
TESTS |
16 |
1950 |
154521600 |
|
3400 |
|
27481085 |
xjtt |
H |
June 1, 2017, 9:02 a.m. |
OK |
GNU C++ |
TESTS |
16 |
2136 |
92057600 |
|
3400 |
|
42273274 |
luogu_bot5 |
H |
Aug. 30, 2018, 9:41 a.m. |
OK |
GNU C++ |
TESTS |
16 |
3681 |
167833600 |
|
3400 |
|
25322455 |
TylerX |
H |
March 7, 2017, 1:53 p.m. |
OK |
GNU C++11 |
TESTS |
16 |
217 |
47001600 |
|
3400 |
|
23512545 |
ilia12345 |
H |
Jan. 3, 2017, 8:27 a.m. |
OK |
GNU C++11 |
TESTS |
16 |
217 |
47820800 |
|
3400 |
|
23511329 |
CVtop |
H |
Jan. 3, 2017, 7:02 a.m. |
OK |
GNU C++11 |
TESTS |
16 |
217 |
47820800 |
|
3400 |
|
23920518 |
mggamer |
H |
Jan. 18, 2017, 11:32 a.m. |
OK |
GNU C++11 |
TESTS |
16 |
217 |
56217600 |
|
3400 |
|
23875546 |
Scarlet_Climax |
H |
Jan. 16, 2017, 7 a.m. |
OK |
GNU C++11 |
TESTS |
16 |
218 |
56217600 |
|
3400 |
|
35338156 |
zhouyuyang |
H |
Feb. 16, 2018, 1:13 p.m. |
OK |
GNU C++11 |
TESTS |
16 |
218 |
72704000 |
|
3400 |
|
23977776 |
lych_cys |
H |
Jan. 20, 2017, 2:24 a.m. |
OK |
GNU C++11 |
TESTS |
16 |
265 |
120422400 |
|
3400 |
|
27752158 |
rxdoi |
H |
June 13, 2017, 8:59 a.m. |
OK |
GNU C++11 |
TESTS |
16 |
280 |
64102400 |
|
3400 |
|
51384426 |
bhargav_0085 |
H |
March 16, 2019, 6 p.m. |
OK |
GNU C++11 |
TESTS |
16 |
311 |
13312000 |
|
3400 |
|
37909688 |
AmberFrame |
H |
May 5, 2018, 3:03 p.m. |
OK |
GNU C++11 |
TESTS |
16 |
327 |
24883200 |
|
3400 |
|
23973684 |
Al.Cash |
H |
Jan. 19, 2017, 8:27 p.m. |
OK |
GNU C++14 |
TESTS |
16 |
218 |
27955200 |
|
3400 |
|
23511141 |
Philipsweng |
H |
Jan. 3, 2017, 6:50 a.m. |
OK |
GNU C++14 |
TESTS |
16 |
233 |
47820800 |
|
3400 |
|
23508056 |
jiaqiyang |
H |
Jan. 2, 2017, 11:59 p.m. |
OK |
GNU C++14 |
TESTS |
16 |
280 |
15360000 |
|
3400 |
|
23494361 |
Helli.code |
H |
Jan. 2, 2017, 7:07 a.m. |
OK |
GNU C++14 |
TESTS |
16 |
358 |
15257600 |
|
3400 |
|
23477686 |
DEGwer |
H |
Jan. 1, 2017, 3:11 a.m. |
OK |
GNU C++14 |
TESTS |
16 |
420 |
58777600 |
|
3400 |
|
23513498 |
WuHongxun |
H |
Jan. 3, 2017, 9:29 a.m. |
OK |
GNU C++14 |
TESTS |
16 |
2230 |
90214400 |
|
3400 |
|
23513367 |
WuHongxun |
H |
Jan. 3, 2017, 9:22 a.m. |
OK |
GNU C++14 |
TESTS |
16 |
2261 |
90112000 |
|
3400 |
|
23514386 |
WuHongxun |
H |
Jan. 3, 2017, 10:23 a.m. |
OK |
GNU C++14 |
TESTS |
16 |
2386 |
94310400 |
|
3400 |
|
26737453 |
apiadu |
H |
April 29, 2017, 1:15 a.m. |
OK |
GNU C++14 |
TESTS |
16 |
3588 |
169881600 |
|
3400 |
|
52461223 |
Christopher_Liu |
H |
April 7, 2019, 1:31 p.m. |
OK |
GNU C++14 |
TESTS |
16 |
3743 |
168038400 |
|
3400 |
|
40674045 |
des1997 |
H |
July 23, 2018, 2:17 p.m. |
OK |
GNU C++17 |
TESTS |
16 |
249 |
13516800 |
|
3400 |
|
69598234 |
gongsuidashen |
H |
Jan. 27, 2020, 6:09 a.m. |
OK |
GNU C++17 |
TESTS |
16 |
327 |
62464000 |
|
3400 |
|
50164800 |
Errichto |
H |
Feb. 19, 2019, 2:11 p.m. |
OK |
GNU C++17 |
TESTS |
16 |
358 |
62156800 |
|
3400 |
|
57380040 |
Benq |
H |
July 20, 2019, 2:12 p.m. |
OK |
GNU C++17 |
TESTS |
16 |
936 |
34508800 |
|
3400 |
|
42316072 |
teapotd |
H |
Aug. 31, 2018, 5:30 p.m. |
OK |
GNU C++17 |
TESTS |
16 |
1684 |
16281600 |
|
3400 |
|
44182271 |
Achan |
H |
Oct. 12, 2018, 11:49 a.m. |
OK |
GNU C++17 |
TESTS |
16 |
3509 |
168243200 |
|
3400 |
|
52461281 |
vjudge4 |
H |
April 7, 2019, 1:33 p.m. |
OK |
GNU C++17 |
TESTS |
16 |
3728 |
168038400 |
|
3400 |
|
54832991 |
hjk1030 |
H |
May 30, 2019, 9:40 a.m. |
OK |
GNU C++17 |
TESTS |
16 |
3883 |
168038400 |
|
3400 |
remove filters
Back to search problems