Codeforces Beta Round 37

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
37 Codeforces Beta Round 37 FINISHED False 7200 488300380 Oct. 25, 2010, 3 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 675 ) E Trial for Chief PROGRAMMING graphs greedy shortest paths 2600

Having unraveled the Berland Dictionary, the scientists managed to read the notes of the chroniclers of that time. For example, they learned how the chief of the ancient Berland tribe was chosen. As soon as enough pretenders was picked, the following test took place among them: the chief of the tribe took a slab divided by horizontal and vertical stripes into identical squares (the slab consisted of N lines and M columns) and painted every square black or white. Then every pretender was given a slab of the same size but painted entirely white. Within a day a pretender could paint any side-linked set of the squares of the slab some color. The set is called linked if for any two squares belonging to the set there is a path belonging the set on which any two neighboring squares share a side. The aim of each pretender is to paint his slab in the exactly the same way as the chief ’s slab is painted. The one who paints a slab like that first becomes the new chief. Scientists found the slab painted by the ancient Berland tribe chief. Help them to determine the minimal amount of days needed to find a new chief if he had to paint his slab in the given way. The first line contains two integers N and M (1 ≤ N, M ≤ 50) -- the number of lines and columns on the slab. The next N lines contain M symbols each -- the final coloration of the slab. W stands for the square that should be painted white and B -- for the square that should be painted black. In the single line output the minimal number of repaintings of side-linked areas needed to get the required coloration of the slab.

Tutorials

Codeforces Beta Round #37 (Tutorial)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
167639 sankear E Oct. 25, 2010, 4:20 p.m. OK Delphi TESTS 85 30 1740800 2600
256399 agul E Jan. 21, 2011, 3:42 p.m. OK Delphi TESTS 85 30 1740800 2600
2786421 luogan E Dec. 17, 2012, 10:31 a.m. OK FPC TESTS 85 437 102400 2600
1558866 sillycross E April 17, 2012, 5:22 a.m. OK FPC TESTS 85 520 7475200 2600
10607995 ez_cjb E April 6, 2015, 4 a.m. OK FPC TESTS 85 530 1126400 2600
387650 ljnanest E April 14, 2011, 9:48 a.m. OK FPC TESTS 85 550 1024000 2600
3920986 zscc E June 19, 2013, 3:09 p.m. OK FPC TESTS 85 578 204800 2600
10607934 ez_cjb E April 6, 2015, 3:46 a.m. OK FPC TESTS 85 686 204800 2600
10607929 ez_ljh E April 6, 2015, 3:45 a.m. OK FPC TESTS 85 686 2560000 2600
17323572 Ahriman E April 15, 2016, 7:51 a.m. OK FPC TESTS 85 810 921600 2600
498151 vlad107 E June 19, 2011, 7:35 p.m. OK FPC TESTS 85 840 1945600 2600
991767 waterkid E Dec. 30, 2011, 8:46 a.m. OK FPC TESTS 85 1300 1024000 2600
3416198 aiiYuu E March 28, 2013, 3:12 p.m. OK GNU C++ TESTS 85 15 204800 2600
3563393 al13pn E April 19, 2013, 10:23 a.m. OK GNU C++ TESTS 85 15 307200 2600
2868541 pty E Jan. 3, 2013, 8:06 a.m. OK GNU C++ TESTS 85 15 7168000 2600
3450929 ethanjimenez E April 1, 2013, 10:41 p.m. OK GNU C++ TESTS 85 15 7782400 2600
3450903 ethanjimenez E April 1, 2013, 10:26 p.m. OK GNU C++ TESTS 85 15 26726400 2600
15143287 HappyNewYearMike E Dec. 31, 2015, 11:13 p.m. OK GNU C++ TESTS 85 30 307200 2600
169675 xhae E Oct. 28, 2010, 2:57 a.m. OK GNU C++ TESTS 85 30 1433600 2600
457330 watashi E May 16, 2011, 9:30 p.m. OK GNU C++ TESTS 85 30 1536000 2600
445113 ACCEPT E May 11, 2011, 1:07 p.m. OK GNU C++ TESTS 85 30 1536000 2600
169312 v.haralampiev E Oct. 26, 2010, 8:36 a.m. OK GNU C++ TESTS 85 30 1536000 2600
2821623 dc. E Dec. 24, 2012, 8:51 a.m. OK GNU C++0x TESTS 85 15 307200 2600
2587229 llj_bash E Nov. 19, 2012, 6:09 a.m. OK GNU C++0x TESTS 85 250 102400 2600
2821119 CMHJT E Dec. 24, 2012, 6:26 a.m. OK GNU C++0x TESTS 85 265 102400 2600
2655936 apia E Nov. 26, 2012, 4:39 a.m. OK GNU C++0x TESTS 85 281 204800 2600
2910249 xlk E Jan. 13, 2013, 6:39 a.m. OK GNU C++0x TESTS 85 421 204800 2600
2678295 Archon.JK E Nov. 29, 2012, 9:02 p.m. OK GNU C++0x TESTS 85 437 0 2600
19581854 _0w0_ E Aug. 2, 2016, 3:04 p.m. OK GNU C++11 TESTS 85 30 204800 2600
17121493 freebsdx E April 2, 2016, 2:19 a.m. OK GNU C++11 TESTS 85 30 2355200 2600
11837433 krismaz E June 29, 2015, 1:58 p.m. OK GNU C++11 TESTS 85 62 102400 2600
50061437 Twilight_Sx E Feb. 17, 2019, 12:50 p.m. OK GNU C++11 TESTS 85 62 204800 2600
11968315 HellKitsune E July 8, 2015, 7:11 a.m. OK GNU C++11 TESTS 85 62 204800 2600
66227459 Smeow E Dec. 3, 2019, 1:09 p.m. OK GNU C++11 TESTS 85 62 1740800 2600
23481936 wangyenjen E Jan. 1, 2017, 10:59 a.m. OK GNU C++11 TESTS 85 62 2252800 2600
27939586 theodor.moroianu E June 21, 2017, 7:31 a.m. OK GNU C++11 TESTS 85 62 4608000 2600
51795356 cjy2003 E March 24, 2019, 2:49 p.m. OK GNU C++11 TESTS 85 62 6553600 2600
54495617 WOSHIGEPACHONG2 E May 22, 2019, 5:34 p.m. OK GNU C++11 TESTS 85 62 6553600 2600
23376642 Ali.Pi E Dec. 28, 2016, 11:38 a.m. OK GNU C++14 TESTS 85 30 2252800 2600
48560621 Mandir_Wahi_Banayenge E Jan. 19, 2019, 7:12 a.m. OK GNU C++14 TESTS 85 62 307200 2600
65881540 hpfdf E Nov. 27, 2019, 7:17 p.m. OK GNU C++14 TESTS 85 62 409600 2600
68371299 pikmike E Jan. 7, 2020, 5:49 p.m. OK GNU C++14 TESTS 85 62 512000 2600
53903577 mengbierr E May 9, 2019, 11:36 a.m. OK GNU C++14 TESTS 85 62 614400 2600
53542202 TomOwO E April 30, 2019, 7:33 a.m. OK GNU C++14 TESTS 85 62 819200 2600
50928776 shurongwang E March 7, 2019, 1:01 p.m. OK GNU C++14 TESTS 85 62 6553600 2600
31319958 irkstepanov E Oct. 14, 2017, 5:49 p.m. OK GNU C++14 TESTS 85 280 204800 2600
49382405 rareone0602 E Feb. 3, 2019, 3:34 a.m. OK GNU C++14 TESTS 85 310 204800 2600
54337753 Mbfibat E May 18, 2019, 8:54 a.m. OK GNU C++14 TESTS 85 312 307200 2600
62214379 hjk1030 E Oct. 9, 2019, 3:31 p.m. OK GNU C++17 TESTS 85 62 6656000 2600
50898229 vjudge5 E March 6, 2019, 4:04 p.m. OK GNU C++17 TESTS 85 186 204800 2600
50898202 dxd666 E March 6, 2019, 4:04 p.m. OK GNU C++17 TESTS 85 216 204800 2600
65673749 flashmt E Nov. 24, 2019, 5:05 p.m. OK GNU C++17 TESTS 85 310 204800 2600
44616530 Sleepp E Oct. 21, 2018, 2:15 a.m. OK GNU C++17 TESTS 85 312 87961600 2600
49531753 vjudge4 E Feb. 6, 2019, 2:06 p.m. OK GNU C++17 TESTS 85 404 7987200 2600
49552969 vjudge3 E Feb. 7, 2019, 7:32 a.m. OK GNU C++17 TESTS 85 966 307200 2600
49552926 vjudge1 E Feb. 7, 2019, 7:30 a.m. OK GNU C++17 TESTS 85 998 307200 2600
40380451 kenimo E July 15, 2018, 1:46 p.m. OK GNU C++17 TESTS 85 1278 204800 2600
49552690 vjudge3 E Feb. 7, 2019, 7:18 a.m. OK GNU C++17 TESTS 85 1746 409600 2600
167144 ivan.popelyshev E Oct. 25, 2010, 4:02 p.m. OK Java 6 TESTS 85 80 43417600 2600
5039488 atubo E Nov. 10, 2013, 12:48 a.m. OK Java 6 TESTS 85 280 1945600 2600
169950 Thekid E Oct. 31, 2010, 2:25 p.m. OK Java 6 TESTS 85 1030 43315200 2600
168209 uwi E Oct. 25, 2010, 4:44 p.m. OK Java 6 TESTS 85 1380 43315200 2600
15222833 AndreiNet E Jan. 7, 2016, 9:15 a.m. OK Java 8 TESTS 85 248 0 2600
599956 Neverman E Aug. 9, 2011, 4:38 a.m. OK Mono C# TESTS 85 140 6144000 2600
3907344 Mark_tven E June 16, 2013, 8:16 p.m. OK MS C++ TESTS 85 15 27238400 2600
3907349 Mark_tven E June 16, 2013, 8:20 p.m. OK MS C++ TESTS 85 15 27238400 2600
169633 bogatrv E Oct. 27, 2010, 1:38 p.m. OK MS C++ TESTS 85 30 1536000 2600
168804 MBabin E Oct. 25, 2010, 6:27 p.m. OK MS C++ TESTS 85 30 10547200 2600
168190 maksay E Oct. 25, 2010, 4:43 p.m. OK MS C++ TESTS 85 30 27648000 2600
168344 natalia E Oct. 25, 2010, 4:49 p.m. OK MS C++ TESTS 85 50 1536000 2600
10496274 guitarist E March 28, 2015, 4:25 a.m. OK MS C++ TESTS 85 60 102400 2600
10492573 guitarist E March 27, 2015, 5:08 p.m. OK MS C++ TESTS 85 60 614400 2600
10496232 guitarist E March 28, 2015, 4:19 a.m. OK MS C++ TESTS 85 62 614400 2600
51795399 vjudge4 E March 24, 2019, 2:51 p.m. OK MS C++ TESTS 85 62 6451200 2600

remove filters

Back to search problems