Codeforces Round 274 (Div. 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
480 Codeforces Round 274 (Div. 1) FINISHED False 7200 323902804 Oct. 19, 2014, 9 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 575 ) E Parking Lot PROGRAMMING data structures divide and conquer 2800

B"Petya's been bored at work and he is killing the time by watching the parking lot at the office. The parking lot looks from above like an n xe2 x80 x89 xc3 x97 xe2 x80 x89m table (a cell of the table corresponds to a single parking spot). Some spots in the parking lot are taken, others are empty. Petya watches cars riding into the parking lot one by one. After a car settles down at the parking spot, Petya amuzes himself by counting what maximum square of empty spots (i.e. a square subtable) can be seen on the parking lot if we look at it from above. Also, he takes notes of the square's size (side length) in his notebook. You task is: given the state of the parking lot at the initial moment of time and the information about where the arriving cars park, restore what Petya wrote in his notebook. It is midday, so nobody leaves the lot. The first line contains three integers n, m and k -- the sizes of the parking lot and the number of arriving cars after Petya started his watch (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89m, xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892000). Each of the following n lines contains m characters 'X' and '.', where 'X' means a taken spot and '.' means an empty spot. Each of the next k lines contains a pair of integers xi, yi -- the number of row and column of the spot the corresponding car takes (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89xi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89yi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m). It is guaranteed that this place was empty. You can assume that a car enters a parking lot only after the previous car successfully finds a spot. Print k integers -- the length of the side of the maximum square of empty spots after the corresponding car has entered the parking lot."...

Tutorials

Codeforces Round #274: editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
27721876 vv_sswwww E June 11, 2017, 1:47 p.m. OK FPC TESTS 38 530 52326400 2800
11247792 sunhaowen123 E May 24, 2015, 7:40 a.m. OK GNU C++ TESTS 38 124 52633600 2800
35803294 vjudge4 E March 1, 2018, 6:12 a.m. OK GNU C++ TESTS 38 171 54374400 2800
35803246 Ts. E March 1, 2018, 6:09 a.m. OK GNU C++ TESTS 38 171 54374400 2800
15625905 vjtest E Jan. 28, 2016, 9:12 a.m. OK GNU C++ TESTS 38 186 52428800 2800
15623703 vjtest E Jan. 28, 2016, 6:22 a.m. OK GNU C++ TESTS 38 186 52428800 2800
16220067 vjudge2 E Feb. 20, 2016, 3:51 a.m. OK GNU C++ TESTS 38 187 52428800 2800
17035439 sunzeyu E March 30, 2016, 2:12 p.m. OK GNU C++ TESTS 38 187 64614400 2800
15625451 vjtest E Jan. 28, 2016, 8:43 a.m. OK GNU C++ TESTS 38 202 52428800 2800
16974828 vjudge1 E March 27, 2016, 3:01 p.m. OK GNU C++ TESTS 38 202 54681600 2800
26799358 zhan8855 E May 2, 2017, 9:27 a.m. OK GNU C++ TESTS 38 218 54988800 2800
10248071 piob E March 12, 2015, 1:57 p.m. OK GNU C++0x TESTS 38 202 52736000 2800
8335212 gustav E Oct. 20, 2014, 8:33 p.m. OK GNU C++0x TESTS 38 343 36454400 2800
8493753 zhj E Oct. 31, 2014, 5:25 a.m. OK GNU C++0x TESTS 38 436 57446400 2800
10255143 hogloid E March 13, 2015, 8:23 a.m. OK GNU C++0x TESTS 38 451 52428800 2800
10255158 hogloid E March 13, 2015, 8:24 a.m. OK GNU C++0x TESTS 38 529 52428800 2800
8345521 abhilashjha E Oct. 21, 2014, 6:50 p.m. OK GNU C++0x TESTS 38 592 68915200 2800
10244789 RomeoFantastik E March 12, 2015, 8:28 a.m. OK GNU C++0x TESTS 38 623 48742400 2800
8337621 windhunterSB E Oct. 21, 2014, 5:22 a.m. OK GNU C++0x TESTS 38 811 54681600 2800
8311013 bmerry E Oct. 19, 2014, 10:02 a.m. OK GNU C++0x TESTS 38 857 41062400 2800
8761970 Nero E Nov. 20, 2014, 8:30 a.m. OK GNU C++0x TESTS 38 935 100864000 2800
61319005 zxyoi E Sept. 26, 2019, noon OK GNU C++11 TESTS 38 139 64614400 2800
35805404 WAAutoMaton E March 1, 2018, 7:59 a.m. OK GNU C++11 TESTS 38 140 54681600 2800
62256485 lzoilxy E Oct. 10, 2019, 10:58 a.m. OK GNU C++11 TESTS 38 155 68710400 2800
62247537 lzoilxy E Oct. 10, 2019, 7:21 a.m. OK GNU C++11 TESTS 38 155 68710400 2800
40987760 ReaLNero1 E July 30, 2018, 9:28 p.m. OK GNU C++11 TESTS 38 171 52736000 2800
52333423 cuizhuyefei E April 5, 2019, 6:41 a.m. OK GNU C++11 TESTS 38 171 53248000 2800
59223956 hht2005 E Aug. 21, 2019, 1:10 p.m. OK GNU C++11 TESTS 38 171 68915200 2800
12712580 memset123 E Aug. 26, 2015, 8:12 p.m. OK GNU C++11 TESTS 38 187 52428800 2800
12712532 memset123 E Aug. 26, 2015, 8:07 p.m. OK GNU C++11 TESTS 38 202 52428800 2800
69825444 WZYYN E Jan. 30, 2020, 9:02 a.m. OK GNU C++11 TESTS 38 218 36352000 2800
56774027 Scut82 E July 10, 2019, 1:18 a.m. OK GNU C++14 TESTS 38 202 36864000 2800
23720066 AndreiNet E Jan. 11, 2017, 2:21 p.m. OK GNU C++14 TESTS 38 202 54374400 2800
23927325 MhdMohammadi E Jan. 18, 2017, 4:56 p.m. OK GNU C++14 TESTS 38 311 82944000 2800
62064243 vjudge4 E Oct. 7, 2019, 2:39 p.m. OK GNU C++14 TESTS 38 343 85094400 2800
27713998 jasonvictoryan E June 11, 2017, 3:05 a.m. OK GNU C++14 TESTS 38 358 64512000 2800
56776763 Scut82 E July 10, 2019, 3:09 a.m. OK GNU C++14 TESTS 38 389 48435200 2800
56731416 Scut82 E July 9, 2019, 1:42 a.m. OK GNU C++14 TESTS 38 405 36864000 2800
28427859 SssssssssssssbbbBBBB E July 11, 2017, 1:54 p.m. OK GNU C++14 TESTS 38 405 54374400 2800
67267104 ElangBondol E Dec. 20, 2019, 6:38 a.m. OK GNU C++14 TESTS 38 405 68505600 2800
61828783 Lucky_Glass E Oct. 4, 2019, 5:52 a.m. OK GNU C++14 TESTS 38 421 36249600 2800
61751423 Fulisike E Oct. 3, 2019, 3:32 a.m. OK GNU C++17 TESTS 38 171 52428800 2800
50060469 _Happy_New_Year_ E Feb. 17, 2019, 12:23 p.m. OK GNU C++17 TESTS 38 265 52736000 2800
67144191 hjk1030 E Dec. 18, 2019, 8:06 a.m. OK GNU C++17 TESTS 38 311 85094400 2800
35805424 vjudge1 E March 1, 2018, 8 a.m. OK GNU C++17 TESTS 38 327 54579200 2800
57567055 89264270823 E July 23, 2019, 3:23 a.m. OK GNU C++17 TESTS 38 373 129638400 2800
61857175 vjudge3 E Oct. 4, 2019, 2:21 p.m. OK GNU C++17 TESTS 38 420 68505600 2800
35777120 BLeavesCoder E Feb. 28, 2018, 7:30 a.m. OK GNU C++17 TESTS 38 420 71372800 2800
61854685 vjudge5 E Oct. 4, 2019, 1:44 p.m. OK GNU C++17 TESTS 38 436 68505600 2800
61854616 C20193618 E Oct. 4, 2019, 1:43 p.m. OK GNU C++17 TESTS 38 467 68505600 2800
40531004 gusc E July 19, 2018, 2:43 a.m. OK GNU C++17 TESTS 38 483 97075200 2800
61947475 vjudge2 E Oct. 6, 2019, 1:11 a.m. OK MS C++ TESTS 38 124 84582400 2800
61947490 vjudge5 E Oct. 6, 2019, 1:12 a.m. OK MS C++ TESTS 38 124 84684800 2800
61859153 vjudge3 E Oct. 4, 2019, 2:51 p.m. OK MS C++ TESTS 38 296 52428800 2800
61859016 vjudge3 E Oct. 4, 2019, 2:48 p.m. OK MS C++ TESTS 38 296 52428800 2800
61851561 vjudge1 E Oct. 4, 2019, 12:52 p.m. OK MS C++ TESTS 38 327 36249600 2800
8329540 lych123 E Oct. 20, 2014, 11:07 a.m. OK MS C++ TESTS 38 498 36556800 2800
61829460 vjudge2 E Oct. 4, 2019, 6:05 a.m. OK MS C++ TESTS 38 811 64614400 2800
8625861 Toshik E Nov. 9, 2014, 7:22 p.m. OK MS C++ TESTS 38 1153 36454400 2800

remove filters

Back to search problems