Codeforces Round 297 (Div. 2)

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
525 Codeforces Round 297 (Div. 2) FINISHED False 7200 310051787 March 26, 2015, 4:30 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1808 ) D Arthur and Walls PROGRAMMING constructive algorithms data structures graphs greedy shortest paths 2300

B'Finally it is a day when Arthur has enough money for buying an apartment. He found a great option close to the center of the city with a nice price. Plan of the apartment found by Arthur looks like a rectangle n xe2 x80 x89 xc3 x97 xe2 x80 x89m consisting of squares of size 1 xe2 x80 x89 xc3 x97 xe2 x80 x891. Each of those squares contains either a wall (such square is denoted by a symbol "*" on the plan) or a free space (such square is denoted on the plan by a symbol "."). Room in an apartment is a maximal connected area consisting of free squares. Squares are considered adjacent if they share a common side. The old Arthur dream is to live in an apartment where all rooms are rectangles. He asks you to calculate minimum number of walls you need to remove in order to achieve this goal. After removing a wall from a square it becomes a free square. While removing the walls it is possible that some rooms unite into a single one. The first line of the input contains two integers n, xe2 x80 x89m (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892000) denoting the size of the Arthur apartments. Following n lines each contain m symbols -- the plan of the apartment. If the cell is denoted by a symbol "*" then it contains a wall. If the cell is denoted by a symbol "." then it this cell is free from walls and also this cell is contained in some of the rooms. Output n rows each consisting of m symbols that show how the Arthur apartment plan should look like after deleting the minimum number of walls in order to make each room (maximum connected area free from walls) be a rectangle. If there are several possible answers, output any of them.'...

Tutorials

Codeforces Round #297 (Div.2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
11785132 Sanja D June 27, 2015, 1:14 p.m. OK Delphi TESTS 93 389 76185600 2300
10519025 irevt D March 29, 2015, 6:24 p.m. OK FPC TESTS 93 296 52224000 2300
11260072 ez_cjb D May 25, 2015, 2:58 a.m. OK FPC TESTS 93 467 36761600 2300
10552151 vanyak999 D April 2, 2015, 2:59 p.m. OK FPC TESTS 93 608 116326400 2300
10514524 igdor99 D March 29, 2015, 10:59 a.m. OK FPC TESTS 93 623 116838400 2300
10622891 CSTRP D April 7, 2015, 3:41 p.m. OK FPC TESTS 93 717 148377600 2300
10615994 i_love_gold_and_nt D April 6, 2015, 7:44 p.m. OK FPC TESTS 93 763 36864000 2300
11266375 festivus D May 25, 2015, 2:40 p.m. OK GNU C TESTS 93 295 175923200 2300
10625036 yusufk D April 7, 2015, 7:51 p.m. OK GNU C TESTS 93 342 259788800 2300
24067979 cyand1317 D Jan. 23, 2017, 9:47 a.m. OK GNU C TESTS 93 374 26009600 2300
35885430 ______n______ D March 3, 2018, 1:28 p.m. OK GNU C TESTS 93 374 261632000 2300
35884603 _____k_____ D March 3, 2018, 1:15 p.m. OK GNU C TESTS 93 374 261632000 2300
35884375 _____i_____ D March 3, 2018, 1:10 p.m. OK GNU C TESTS 93 374 261632000 2300
35873904 ______h______ D March 3, 2018, 7:40 a.m. OK GNU C TESTS 93 374 261632000 2300
35873674 ______k______ D March 3, 2018, 7:35 a.m. OK GNU C TESTS 93 374 261632000 2300
35873092 ______i______ D March 3, 2018, 7:23 a.m. OK GNU C TESTS 93 374 261632000 2300
35871263 ______M______ D March 3, 2018, 6:46 a.m. OK GNU C TESTS 93 374 261632000 2300
10483555 Dylans D March 27, 2015, 8 a.m. OK GNU C++ TESTS 93 155 60211200 2300
10483531 Dylans D March 27, 2015, 7:58 a.m. OK GNU C++ TESTS 93 156 60211200 2300
10496887 20171231 D March 28, 2015, 6:36 a.m. OK GNU C++ TESTS 93 170 29798400 2300
10496852 20171231 D March 28, 2015, 6:31 a.m. OK GNU C++ TESTS 93 171 21196800 2300
13907443 130705009 D Oct. 28, 2015, 2:14 a.m. OK GNU C++ TESTS 93 171 36556800 2300
10731906 rxdoi D April 15, 2015, 1:45 p.m. OK GNU C++ TESTS 93 171 36556800 2300
11238030 qingwen D May 23, 2015, 12:18 p.m. OK GNU C++ TESTS 93 187 4096000 2300
10480541 1234567890 D March 27, 2015, 1:04 a.m. OK GNU C++ TESTS 93 187 21401600 2300
11132421 prayerhgq D May 18, 2015, 7:48 a.m. OK GNU C++ TESTS 93 187 40140800 2300
40986874 ReaLNero1 D July 30, 2018, 8:48 p.m. OK GNU C++ TESTS 93 187 60211200 2300
10836953 YakutovDmitriy D April 23, 2015, 2:50 p.m. OK GNU C11 TESTS 93 234 38502400 2300
60449501 rainboy D Sept. 12, 2019, 3:22 p.m. OK GNU C11 TESTS 93 452 20070400 2300
64684685 ydclyq D Nov. 11, 2019, 11:21 a.m. OK GNU C++11 TESTS 93 171 38092800 2300
62859009 KH18 D Oct. 18, 2019, 10:13 a.m. OK GNU C++11 TESTS 93 171 38092800 2300
17165292 freebsdx D April 5, 2016, 1:29 a.m. OK GNU C++11 TESTS 93 171 38809600 2300
60331748 vjudge2 D Sept. 10, 2019, 6:26 a.m. OK GNU C++11 TESTS 93 186 131993600 2300
10618054 codingishard D April 7, 2015, 4:22 a.m. OK GNU C++11 TESTS 93 187 21196800 2300
10629782 fpcsong D April 8, 2015, 11:47 a.m. OK GNU C++11 TESTS 93 187 33382400 2300
10491712 bhadra D March 27, 2015, 3:54 p.m. OK GNU C++11 TESTS 93 187 33382400 2300
10497451 aytawgf D March 28, 2015, 7:47 a.m. OK GNU C++11 TESTS 93 187 70860800 2300
60206054 vjudge2 D Sept. 7, 2019, 8:13 a.m. OK GNU C++11 TESTS 93 187 131993600 2300
60331709 wuhan2005 D Sept. 10, 2019, 6:25 a.m. OK GNU C++11 TESTS 93 187 131993600 2300
66238910 vjudge5 D Dec. 3, 2019, 5:17 p.m. OK GNU C++14 TESTS 93 233 24268800 2300
34289737 applese Deluxurous ILoveSetsuna D Jan. 19, 2018, 2:38 a.m. OK GNU C++14 TESTS 93 249 39833600 2300
41025284 xproxmess D July 31, 2018, 2:36 p.m. OK GNU C++14 TESTS 93 264 15872000 2300
44551733 TheRedLegend D Oct. 19, 2018, 3:33 p.m. OK GNU C++14 TESTS 93 265 21094400 2300
22006285 Tabris D Nov. 3, 2016, 4:54 a.m. OK GNU C++14 TESTS 93 280 21504000 2300
35049172 AWCXV D Feb. 8, 2018, 7:52 a.m. OK GNU C++14 TESTS 93 280 118169600 2300
41276122 stefdasca D Aug. 6, 2018, 1:17 p.m. OK GNU C++14 TESTS 93 296 31846400 2300
57079247 vjudge2 D July 15, 2019, 6:38 a.m. OK GNU C++14 TESTS 93 311 131993600 2300
34905301 TadijaSebez D Feb. 3, 2018, 6:51 p.m. OK GNU C++14 TESTS 93 312 261836800 2300
41027602 xproxmess D July 31, 2018, 2:42 p.m. OK GNU C++14 TESTS 93 327 27955200 2300
66230060 vjudge4 D Dec. 3, 2019, 2:03 p.m. OK GNU C++17 TESTS 93 217 100044800 2300
59432557 jyf111 D Aug. 25, 2019, 7:05 a.m. OK GNU C++17 TESTS 93 218 131993600 2300
38546939 majk D May 22, 2018, 9:36 p.m. OK GNU C++17 TESTS 93 218 169267200 2300
57941761 denis2111 D July 29, 2019, 12:49 p.m. OK GNU C++17 TESTS 93 249 54476800 2300
58309562 Phortox D Aug. 4, 2019, 9:16 p.m. OK GNU C++17 TESTS 93 264 15769600 2300
38546845 majk D May 22, 2018, 9:27 p.m. OK GNU C++17 TESTS 93 296 198860800 2300
57941875 Juve45 D July 29, 2019, 12:52 p.m. OK GNU C++17 TESTS 93 311 42393600 2300
59893925 RaFiN_ D Sept. 2, 2019, 11:26 a.m. OK GNU C++17 TESTS 93 327 23449600 2300
67580707 wxbxcxuxnxy D Dec. 25, 2019, 5:54 a.m. OK GNU C++17 TESTS 93 342 198963200 2300
58309150 Phortox D Aug. 4, 2019, 9 p.m. OK GNU C++17 TESTS 93 358 15769600 2300
10479447 megaspazz D March 26, 2015, 9:41 p.m. OK Java 7 TESTS 93 685 19763200 2300
10479458 megaspazz D March 26, 2015, 9:42 p.m. OK Java 7 TESTS 93 748 19763200 2300
10736132 Cactus_Irl D April 15, 2015, 9:17 p.m. OK Java 7 TESTS 93 889 44646400 2300
10648844 jlinge D April 10, 2015, 1:27 p.m. OK Java 7 TESTS 93 966 55296000 2300
10497806 Sumeet.Varma D March 28, 2015, 8:33 a.m. OK Java 7 TESTS 93 967 174694400 2300
10597786 NabiNaga D April 5, 2015, 5:35 a.m. OK Java 7 TESTS 93 998 236441600 2300
11935481 LuuNhatPhi D July 5, 2015, 1:03 p.m. OK Java 7 TESTS 93 1154 153088000 2300
10514890 amanchik D March 29, 2015, 11:37 a.m. OK Java 7 TESTS 93 1200 125849600 2300
10493352 peter31415 D March 27, 2015, 6:38 p.m. OK Java 7 TESTS 93 1247 262348800 2300
10544712 CazadorDivino D April 1, 2015, 6:03 p.m. OK Java 7 TESTS 93 1279 262144000 2300
15233655 igor_kz D Jan. 8, 2016, 7:31 a.m. OK Java 8 TESTS 93 560 103321600 2300
32424907 Kammola D Nov. 18, 2017, 8:38 a.m. OK Java 8 TESTS 93 732 39424000 2300
10480721 kevmo314 D March 27, 2015, 1:44 a.m. OK Java 8 TESTS 93 764 43008000 2300
60449502 Dukkha D Sept. 12, 2019, 3:22 p.m. OK Java 8 TESTS 93 826 15872000 2300
10525518 TranCongDuy D March 30, 2015, 2:33 p.m. OK Java 8 TESTS 93 857 11161600 2300
30967067 coderbond007 D Oct. 3, 2017, 12:26 p.m. OK Java 8 TESTS 93 857 165273600 2300
10538898 riversouther D April 1, 2015, 6:34 a.m. OK Java 8 TESTS 93 873 43929600 2300
30967038 coderbond007 D Oct. 3, 2017, 12:24 p.m. OK Java 8 TESTS 93 873 188518400 2300
10534428 fmoraes D March 31, 2015, 3:07 p.m. OK Java 8 TESTS 93 889 77414400 2300
17801988 donli D May 8, 2016, 4:11 a.m. OK Java 8 TESTS 93 904 175820800 2300
10856185 og.kostya D April 25, 2015, 7:09 a.m. OK MS C# TESTS 93 607 111001600 2300
10856163 og.kostya D April 25, 2015, 7:06 a.m. OK MS C# TESTS 93 623 110592000 2300
10497176 azukun D March 28, 2015, 7:13 a.m. OK MS C# TESTS 93 1278 63180800 2300
11533904 SkeW D June 11, 2015, 1:44 p.m. OK MS C# TESTS 93 1434 25907200 2300
10479117 freepvps D March 26, 2015, 9:06 p.m. OK MS C# TESTS 93 1543 53862400 2300
11922662 vjudge1 D July 4, 2015, 12:29 p.m. OK MS C++ TESTS 93 202 115916800 2300
17318644 justindcheng D April 14, 2016, 6:18 p.m. OK MS C++ TESTS 93 202 155955200 2300
11934774 vjudge1 D July 5, 2015, 12:04 p.m. OK MS C++ TESTS 93 218 115916800 2300
12312751 someone23 D Aug. 2, 2015, 8:56 a.m. OK MS C++ TESTS 93 280 115916800 2300
10492669 rui D March 27, 2015, 5:19 p.m. OK MS C++ TESTS 93 280 115916800 2300
12311869 ALEXKIRNAS D Aug. 2, 2015, 7:26 a.m. OK MS C++ TESTS 93 280 115916800 2300
40306299 vjudge2 D July 14, 2018, 5:56 a.m. OK MS C++ TESTS 93 295 116838400 2300
10487129 DimonK D March 27, 2015, 11:02 a.m. OK MS C++ TESTS 93 296 46489600 2300
10908913 Mano D April 27, 2015, 12:42 p.m. OK MS C++ TESTS 93 296 118067200 2300
10555885 Anastasko D April 2, 2015, 11:42 p.m. OK MS C++ TESTS 93 311 37376000 2300
69359756 vjudge3 D Jan. 22, 2020, 4:22 p.m. OK MS C++ 2017 TESTS 93 280 33587200 2300
66236674 vjudge2 D Dec. 3, 2019, 4:27 p.m. OK MS C++ 2017 TESTS 93 982 259686400 2300

remove filters

Back to search problems