Educational Codeforces Round 1

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
598 Educational Codeforces Round 1 FINISHED False 7200 290012387 Nov. 13, 2015, 3 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 11473 ) D Igor In the Museum PROGRAMMING dfs and similar graphs shortest paths 1700

B"Igor is in the museum and he wants to see as many pictures as possible. Museum can be represented as a rectangular field of n xe2 x80 x89 xc3 x97 xe2 x80 x89m cells. Each cell is either empty or impassable. Empty cells are marked with '.', impassable cells are marked with '*'. Every two adjacent cells of different types (one empty and one impassable) are divided by a wall containing one picture. At the beginning Igor is in some empty cell. At every moment he can move to any empty cell that share a side with the current one. For several starting positions you should calculate the maximum number of pictures that Igor can see. Igor is able to see the picture only if he is in the cell adjacent to the wall with this picture. Igor have a lot of time, so he will examine every picture he can see. First line of the input contains three integers n, m and k (3 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891000, xe2 x80 x891 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89min(n xc2 xb7m, xe2 x80 x89100 xe2 x80 x89000)) -- the museum dimensions and the number of starting positions to process. Each of the next n lines contains m symbols '.', '*' -- the description of the museum. It is guaranteed that all border cells are impassable, so Igor can't go out from the museum. Each of the last k lines contains two integers x and y (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89x xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x891 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89y xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m) -- the row and the column of one of Igor's starting positions respectively. Rows are numbered from top to bottom, columns -- from left to right. It is guaranteed that all starting positions are empty cells. Print k integers -- the maximum number of pictures, that Igor can see if he starts in corresponding position."...

Tutorials

Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
29085687 vjudge3 D Aug. 1, 2017, 2:44 a.m. OK FPC TESTS 39 280 35840000 1700
31792632 vjudge5 D Oct. 27, 2017, 11:10 a.m. OK FPC TESTS 39 311 21094400 1700
31978987 vjudge4 D Nov. 2, 2017, 12:07 p.m. OK FPC TESTS 39 312 21299200 1700
42226554 chaorenhaha D Aug. 29, 2018, 2:58 a.m. OK FPC TESTS 39 327 17510400 1700
25693102 scientist nikolos00 Anonymus0 D March 21, 2017, 2:47 p.m. OK FPC TESTS 39 327 26112000 1700
31738775 vjudge5 D Oct. 26, 2017, 1:38 p.m. OK FPC TESTS 39 327 32051200 1700
42226519 chaorenhaha D Aug. 29, 2018, 2:57 a.m. OK FPC TESTS 39 327 32972800 1700
29085076 vjudge2 D Aug. 1, 2017, 2:18 a.m. OK FPC TESTS 39 327 58777600 1700
29084401 vjudge1 D Aug. 1, 2017, 1:45 a.m. OK FPC TESTS 39 327 77312000 1700
42840259 TShT D Sept. 13, 2018, 6:09 p.m. OK FPC TESTS 39 342 37171200 1700
40985767 ReaLNero1 D July 30, 2018, 8:09 p.m. OK GNU C TESTS 39 62 15974400 1700
27613441 shkarpa D June 6, 2017, 12:25 p.m. OK GNU C TESTS 39 78 16998400 1700
31488847 _LzY_ D Oct. 18, 2017, 5:19 p.m. OK GNU C TESTS 39 93 56729600 1700
35600156 llbra8z D Feb. 23, 2018, 2:51 p.m. OK GNU C TESTS 39 93 58777600 1700
30288952 llbra8z D Sept. 12, 2017, 2:38 p.m. OK GNU C TESTS 39 108 56934400 1700
19786706 Butylochnik D Aug. 11, 2016, 3:13 p.m. OK GNU C TESTS 39 108 70758400 1700
32649845 vjudge4 D Nov. 25, 2017, 2:34 p.m. OK GNU C TESTS 39 108 80998400 1700
34492838 jelenac D Jan. 23, 2018, 6:32 p.m. OK GNU C TESTS 39 109 92057600 1700
28375268 rainboy D July 8, 2017, 7:13 p.m. OK GNU C TESTS 39 139 46796800 1700
19301627 arts D July 21, 2016, 12:14 p.m. OK GNU C TESTS 39 202 84992000 1700
31944584 zcyhhh D Nov. 1, 2017, 9:39 a.m. OK GNU C++ TESTS 39 78 12185600 1700
26100572 vjudge1 D April 3, 2017, 1:28 p.m. OK GNU C++ TESTS 39 78 12288000 1700
31738658 vjudge1 D Oct. 26, 2017, 1:28 p.m. OK GNU C++ TESTS 39 78 15872000 1700
20607692 eric16 D Sept. 14, 2016, 6:54 a.m. OK GNU C++ TESTS 39 78 16281600 1700
29673876 lllllllllllllllllllllll D Aug. 22, 2017, 4:52 a.m. OK GNU C++ TESTS 39 78 17305600 1700
37211370 vjudge4 D April 11, 2018, 8:58 a.m. OK GNU C++ TESTS 39 78 60723200 1700
22270324 dxm439 D Nov. 16, 2016, 2:43 p.m. OK GNU C++ TESTS 39 93 7168000 1700
30126657 vjudge1 D Sept. 6, 2017, 8:56 a.m. OK GNU C++ TESTS 39 93 9216000 1700
37137915 vjudge1 D April 10, 2018, 7:19 a.m. OK GNU C++ TESTS 39 93 9625600 1700
40171778 vjudge1 D July 10, 2018, 12:49 p.m. OK GNU C++ TESTS 39 93 10137600 1700
57453232 vjudge2 D July 21, 2019, 10:31 a.m. OK GNU C11 TESTS 39 390 57753600 1700
65268349 blackmanxD D Nov. 17, 2019, 6:17 p.m. OK GNU C11 TESTS 39 499 69017600 1700
45235453 fsy2017 D Nov. 3, 2018, 9:02 a.m. OK GNU C++11 TESTS 39 62 57036800 1700
44732313 fsy2017 D Oct. 23, 2018, 11:14 a.m. OK GNU C++11 TESTS 39 62 57036800 1700
46370630 liang_liang D Nov. 29, 2018, 3:34 p.m. OK GNU C++11 TESTS 39 62 57036800 1700
46370641 luogu_bot4 D Nov. 29, 2018, 3:34 p.m. OK GNU C++11 TESTS 39 62 57036800 1700
44232151 Umi D Oct. 13, 2018, 1:22 a.m. OK GNU C++11 TESTS 39 77 13004800 1700
62669421 Kylin_ D Oct. 16, 2019, 9:10 a.m. OK GNU C++11 TESTS 39 77 256000000 1700
22679406 SKonrad D Dec. 3, 2016, 2:46 p.m. OK GNU C++11 TESTS 39 78 9113600 1700
59842589 He_Ren D Sept. 1, 2019, 7:59 a.m. OK GNU C++11 TESTS 39 78 13004800 1700
42330479 RNS_MHB D Sept. 1, 2018, 9:32 a.m. OK GNU C++11 TESTS 39 78 13209600 1700
55233601 monsoon D June 7, 2019, 7:08 a.m. OK GNU C++11 TESTS 39 78 15564800 1700
28395908 UminchuR D July 10, 2017, 1:11 a.m. OK GNU C++14 TESTS 39 93 6963200 1700
57452369 vjudge4 D July 21, 2019, 10:13 a.m. OK GNU C++14 TESTS 39 93 9318400 1700
29936472 cabinfever D Aug. 31, 2017, 6:49 a.m. OK GNU C++14 TESTS 39 93 13107200 1700
37644941 Abdelrahman_Elhawary D April 26, 2018, 6:27 p.m. OK GNU C++14 TESTS 39 93 13312000 1700
38011870 ImaniAm D May 8, 2018, 5:15 a.m. OK GNU C++14 TESTS 39 93 14438400 1700
68481247 NeetyaP D Jan. 10, 2020, 7:50 a.m. OK GNU C++14 TESTS 39 93 16793600 1700
33266435 DATVN D Dec. 15, 2017, 1:56 p.m. OK GNU C++14 TESTS 39 93 17100800 1700
53431736 flying_turtle D April 27, 2019, 4:43 p.m. OK GNU C++14 TESTS 39 93 19353600 1700
26177636 Chicou D April 6, 2017, 6:48 p.m. OK GNU C++14 TESTS 39 93 35430400 1700
35600022 llbra8z D Feb. 23, 2018, 2:45 p.m. OK GNU C++14 TESTS 39 93 43212800 1700
57965698 vjudge2 D July 30, 2019, 2:36 a.m. OK GNU C++17 TESTS 39 93 9216000 1700
42294011 aki167yuuki D Aug. 31, 2018, 12:53 a.m. OK GNU C++17 TESTS 39 93 9318400 1700
62068461 lok52 D Oct. 7, 2019, 3:57 p.m. OK GNU C++17 TESTS 39 93 9318400 1700
57442839 vjudge4 D July 21, 2019, 7:18 a.m. OK GNU C++17 TESTS 39 93 9318400 1700
56496124 mlyean D July 4, 2019, 3:02 a.m. OK GNU C++17 TESTS 39 93 12390400 1700
57440045 vjudge1 D July 21, 2019, 6:27 a.m. OK GNU C++17 TESTS 39 93 13414400 1700
65488898 M...... D Nov. 21, 2019, 1:51 p.m. OK GNU C++17 TESTS 39 93 13824000 1700
41585867 rabbitcxk D Aug. 14, 2018, 11:11 a.m. OK GNU C++17 TESTS 39 93 29593600 1700
67946128 ruo D Dec. 30, 2019, 5:23 a.m. OK GNU C++17 TESTS 39 93 40960000 1700
35600090 llbra8z D Feb. 23, 2018, 2:48 p.m. OK GNU C++17 TESTS 39 93 43212800 1700
19058011 pavel.rosputko D July 12, 2016, 8:35 p.m. OK Haskell TESTS 39 608 111513600 1700
19065172 pavel.rosputko D July 13, 2016, 6:38 a.m. OK Haskell TESTS 39 608 111513600 1700
19058005 pavel.rosputko D July 12, 2016, 8:34 p.m. OK Haskell TESTS 39 638 111513600 1700
19065515 pavel.rosputko D July 13, 2016, 6:51 a.m. OK Haskell TESTS 39 654 126259200 1700
19065689 pavel.rosputko D July 13, 2016, 6:56 a.m. OK Haskell TESTS 39 670 126259200 1700
19057981 pavel.rosputko D July 12, 2016, 8:31 p.m. OK Haskell TESTS 39 685 111513600 1700
19065338 pavel.rosputko D July 13, 2016, 6:44 a.m. OK Haskell TESTS 39 685 126259200 1700
19057944 pavel.rosputko D July 12, 2016, 8:27 p.m. OK Haskell TESTS 39 685 138854400 1700
19057986 pavel.rosputko D July 12, 2016, 8:32 p.m. OK Haskell TESTS 39 701 111513600 1700
19065660 pavel.rosputko D July 13, 2016, 6:55 a.m. OK Haskell TESTS 39 702 126259200 1700
65093840 ankyy_0103 D Nov. 15, 2019, 6:33 p.m. OK Java 11 TESTS 39 296 66252800 1700
30128202 rahulkhairwar D Sept. 6, 2017, 10:07 a.m. OK Java 8 TESTS 39 202 47001600 1700
26789317 4mda4mda D May 1, 2017, 4:54 p.m. OK Java 8 TESTS 39 217 34816000 1700
25729222 chucha D March 23, 2017, 9:05 a.m. OK Java 8 TESTS 39 217 66355200 1700
26789384 4mda4mda D May 1, 2017, 4:59 p.m. OK Java 8 TESTS 39 218 34816000 1700
26903111 butylkapiva D May 6, 2017, 2:08 p.m. OK Java 8 TESTS 39 218 43827200 1700
44921693 golions D Oct. 26, 2018, 6:11 p.m. OK Java 8 TESTS 39 218 51814400 1700
41920031 AQT D Aug. 21, 2018, 3:07 a.m. OK Java 8 TESTS 39 233 3584000 1700
61449408 davisrollman D Sept. 29, 2019, 12:57 a.m. OK Java 8 TESTS 39 233 51507200 1700
52585798 adeepgarg13 D April 10, 2019, 11:46 p.m. OK Java 8 TESTS 39 233 64204800 1700
35323154 assali D Feb. 15, 2018, 11:21 p.m. OK Java 8 TESTS 39 233 73011200 1700
41634489 Slamur D Aug. 15, 2018, 9:29 p.m. OK Kotlin TESTS 39 514 13312000 1700
39590231 QuantumKnight D June 24, 2018, 5:19 a.m. OK Mono C# TESTS 39 639 33177600 1700
56031338 XelMed D June 25, 2019, 9:42 a.m. OK Mono C# TESTS 39 810 17408000 1700
60342841 NEvOl D Sept. 10, 2019, 11:32 a.m. OK Mono C# TESTS 39 826 95641600 1700
23024438 ersul D Dec. 16, 2016, 7:54 a.m. OK MS C# TESTS 39 701 33792000 1700
24524626 pomjuice D Feb. 8, 2017, 11:13 a.m. OK MS C# TESTS 39 717 32665600 1700
57439204 vjudge5 D July 21, 2019, 6:11 a.m. OK MS C++ TESTS 39 78 9216000 1700
57875808 vjudge2 D July 28, 2019, 5:14 a.m. OK MS C++ TESTS 39 78 28979200 1700
54383481 vjudge2 D May 19, 2019, 12:03 p.m. OK MS C++ TESTS 39 78 32972800 1700
28395899 UminchuR D July 10, 2017, 1:10 a.m. OK MS C++ TESTS 39 93 7065600 1700
57449993 vjudge3 D July 21, 2019, 9:25 a.m. OK MS C++ TESTS 39 93 7782400 1700
57618086 vjudge5 D July 24, 2019, 2:48 a.m. OK MS C++ TESTS 39 93 9216000 1700
40248626 vjudge2 D July 13, 2018, 4:01 a.m. OK MS C++ TESTS 39 93 30003200 1700
32237185 vjudge2 D Nov. 12, 2017, 7:36 a.m. OK MS C++ TESTS 39 93 32870400 1700
57730549 vjudge1 D July 25, 2019, 8:28 a.m. OK MS C++ TESTS 39 93 32870400 1700
57462431 vjudge3 D July 21, 2019, 2:13 p.m. OK MS C++ TESTS 39 93 32972800 1700
57829596 vjudge2 D July 27, 2019, 5:34 a.m. OK MS C++ 2017 TESTS 39 139 37068800 1700
57439565 vjudge5 D July 21, 2019, 6:18 a.m. OK MS C++ 2017 TESTS 39 171 22220800 1700
52435609 ayanaadylova D April 7, 2019, 3:12 a.m. OK MS C++ 2017 TESTS 39 233 47616000 1700
57441612 vjudge4 D July 21, 2019, 6:55 a.m. OK MS C++ 2017 TESTS 39 342 17100800 1700
54060403 Still_Theory D May 13, 2019, 10:56 a.m. OK MS C++ 2017 TESTS 39 374 58777600 1700
69230533 vjudge3 D Jan. 21, 2020, 9:17 a.m. OK MS C++ 2017 TESTS 39 748 61747200 1700
69896383 vjudge4 D Jan. 31, 2020, 11:51 a.m. OK MS C++ 2017 TESTS 39 764 32972800 1700
62618991 Zuljan D Oct. 15, 2019, 12:17 p.m. OK MS C++ 2017 TESTS 39 764 37888000 1700
67029286 vjudge2 D Dec. 16, 2019, 3:21 p.m. OK MS C++ 2017 TESTS 39 779 45363200 1700
69881484 vjudge1 D Jan. 31, 2020, 6:31 a.m. OK MS C++ 2017 TESTS 39 810 56217600 1700
42347119 tamir D Sept. 1, 2018, 11 p.m. OK PyPy 2 TESTS 39 873 35737600 1700
49922017 pajenegod D Feb. 14, 2019, 7:27 p.m. OK PyPy 3 TESTS 39 529 112537600 1700
49922383 pajenegod D Feb. 14, 2019, 7:42 p.m. OK PyPy 3 TESTS 39 561 158617600 1700
61380858 neterukun D Sept. 27, 2019, 5:26 p.m. OK PyPy 3 TESTS 39 623 34713600 1700
49919758 pajenegod D Feb. 14, 2019, 6:10 p.m. OK PyPy 3 TESTS 39 670 138137600 1700
68036067 vk_76 D Jan. 1, 2020, 12:05 p.m. OK PyPy 3 TESTS 39 701 34406400 1700
49921876 adshin21 D Feb. 14, 2019, 7:22 p.m. OK PyPy 3 TESTS 39 764 146227200 1700
49921925 adshin21 D Feb. 14, 2019, 7:23 p.m. OK PyPy 3 TESTS 39 764 146739200 1700
49920110 pajenegod D Feb. 14, 2019, 6:22 p.m. OK PyPy 3 TESTS 39 811 140697600 1700
65547389 tuna_salad D Nov. 22, 2019, 5:35 p.m. OK Rust TESTS 39 93 27238400 1700
24811637 Grevozin D Feb. 19, 2017, 10:16 p.m. OK Rust TESTS 39 373 26009600 1700
24811425 Grevozin D Feb. 19, 2017, 9:58 p.m. OK Rust TESTS 39 374 26009600 1700
24811566 Grevozin D Feb. 19, 2017, 10:10 p.m. OK Rust TESTS 39 374 26112000 1700
24811190 Grevozin D Feb. 19, 2017, 9:40 p.m. OK Rust TESTS 39 389 25804800 1700
24811625 Grevozin D Feb. 19, 2017, 10:15 p.m. OK Rust TESTS 39 389 25907200 1700
24811078 Grevozin D Feb. 19, 2017, 9:33 p.m. OK Rust TESTS 39 389 26112000 1700
24812025 Grevozin D Feb. 19, 2017, 10:54 p.m. OK Rust TESTS 39 390 23961600 1700
24811493 Grevozin D Feb. 19, 2017, 10:04 p.m. OK Rust TESTS 39 405 25907200 1700
24811703 Grevozin D Feb. 19, 2017, 10:22 p.m. OK Rust TESTS 39 420 26009600 1700

remove filters

Back to search problems