Educational Codeforces Round 28

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
846 Educational Codeforces Round 28 FINISHED False 7200 232901724 Sept. 5, 2017, 3:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2578 ) D Monitor PROGRAMMING binary search data structures 1900

B'Recently Luba bought a monitor. Monitor is a rectangular matrix of size n xe2 x80 x89 xc3 x97 xe2 x80 x89m. But then she started to notice that some pixels cease to work properly. Luba thinks that the monitor will become broken the first moment when it contains a square k xe2 x80 x89 xc3 x97 xe2 x80 x89k consisting entirely of broken pixels. She knows that q pixels are already broken, and for each of them she knows the moment when it stopped working. Help Luba to determine when the monitor became broken (or tell that it 's still not broken even after all q pixels stopped working). The first line contains four integer numbers n, xe2 x80 x89m, xe2 x80 x89k, xe2 x80 x89q (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89500, xe2 x80 x891 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89min(n, xe2 x80 x89m), xe2 x80 x890 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89q xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xc2 xb7m) -- the length and width of the monitor, the size of a rectangle such that the monitor is broken if there is a broken rectangle with this size, and the number of broken pixels. Each of next q lines contain three integer numbers xi, xe2 x80 x89yi, xe2 x80 x89ti (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89xi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x891 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89yi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m, xe2 x80 x890 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89t xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) -- coordinates of i-th broken pixel (its row and column in matrix) and the moment it stopped working. Each pixel is listed at most once. We consider that pixel is already broken at moment ti. Print one number -- the minimum moment the monitor became broken, or "-1" if it 's still not broken after these q pixels stopped working. '...

Tutorials

54357

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
50243185 XG20 D Feb. 20, 2019, 1:47 p.m. OK Clang++17 Diagnostics TESTS 38 1450 26624000 1900
30109759 heklo D Sept. 5, 2017, 4:04 p.m. OK FPC TESTS 38 187 2969600 1900
30163158 slavik228 D Sept. 6, 2017, 6:06 p.m. OK FPC TESTS 38 249 5017600 1900
30245423 tabac D Sept. 10, 2017, 12:50 p.m. OK GNU C TESTS 38 202 3993600 1900
30245354 tabac D Sept. 10, 2017, 12:48 p.m. OK GNU C TESTS 38 217 3993600 1900
30245447 tabac D Sept. 10, 2017, 12:52 p.m. OK GNU C TESTS 38 218 3993600 1900
30311508 xht13127 D Sept. 13, 2017, 4:15 p.m. OK GNU C++ TESTS 38 62 14233600 1900
40980132 ReaLNero1 D July 30, 2018, 5:23 p.m. OK GNU C++ TESTS 38 62 16179200 1900
30110911 zyyorz D Sept. 5, 2017, 4:18 p.m. OK GNU C++ TESTS 38 62 16179200 1900
30110699 niabby D Sept. 5, 2017, 4:15 p.m. OK GNU C++ TESTS 38 78 5120000 1900
32308375 Scut82 D Nov. 14, 2017, 10:17 a.m. OK GNU C++ TESTS 38 78 6144000 1900
32308862 Scut82 D Nov. 14, 2017, 10:47 a.m. OK GNU C++ TESTS 38 93 2150400 1900
30205263 bestFy D Sept. 8, 2017, 3:06 p.m. OK GNU C++ TESTS 38 93 3891200 1900
30202243 cyand1317 D Sept. 8, 2017, 12:28 p.m. OK GNU C++ TESTS 38 109 1843200 1900
30111875 Lixiang666 D Sept. 5, 2017, 4:30 p.m. OK GNU C++ TESTS 38 109 2150400 1900
35969915 vjudge4 D March 5, 2018, 3:10 p.m. OK GNU C++ TESTS 38 109 5120000 1900
54080001 vjudge3 D May 14, 2019, 1:58 a.m. OK GNU C++11 TESTS 38 62 2048000 1900
30175735 Rajib_119 D Sept. 7, 2017, 8:14 a.m. OK GNU C++11 TESTS 38 62 3174400 1900
57271916 foreverlasting D July 18, 2019, 9:11 a.m. OK GNU C++11 TESTS 38 62 7065600 1900
55909868 luogu_bot5 D June 22, 2019, 12:45 a.m. OK GNU C++11 TESTS 38 62 60723200 1900
54082981 chhokmah D May 14, 2019, 5:14 a.m. OK GNU C++11 TESTS 38 77 2048000 1900
54079977 vjudge4 D May 14, 2019, 1:57 a.m. OK GNU C++11 TESTS 38 77 2048000 1900
56477444 Frame233 D July 3, 2019, 1:47 p.m. OK GNU C++11 TESTS 38 77 3891200 1900
30309497 vicety D Sept. 13, 2017, 2:34 p.m. OK GNU C++11 TESTS 38 77 5120000 1900
30107832 markysha D Sept. 5, 2017, 3:45 p.m. OK GNU C++11 TESTS 38 78 3993600 1900
30289595 Yehezkiel D Sept. 12, 2017, 3:10 p.m. OK GNU C++11 TESTS 38 78 5017600 1900
30112561 Seven_zk D Sept. 5, 2017, 4:40 p.m. OK GNU C++14 TESTS 38 78 3891200 1900
30126561 kcl886 D Sept. 6, 2017, 8:51 a.m. OK GNU C++14 TESTS 38 109 5324800 1900
30113724 already_last D Sept. 5, 2017, 4:58 p.m. OK GNU C++14 TESTS 38 139 1740800 1900
34601734 Robbinb1993 D Jan. 27, 2018, 10:12 a.m. OK GNU C++14 TESTS 38 139 3993600 1900
30618320 froghramar D Sept. 22, 2017, 3:02 p.m. OK GNU C++14 TESTS 38 140 2048000 1900
30376566 Barceloner D Sept. 16, 2017, 5:24 a.m. OK GNU C++14 TESTS 38 140 2048000 1900
31170146 snowy_smile D Oct. 9, 2017, 2:32 p.m. OK GNU C++14 TESTS 38 140 4300800 1900
41387603 Myrcella D Aug. 9, 2018, 6:49 a.m. OK GNU C++14 TESTS 38 155 2355200 1900
33002167 Jeremy1149 D Dec. 7, 2017, 1:47 p.m. OK GNU C++14 TESTS 38 155 5120000 1900
30171961 SmE_ako D Sept. 7, 2017, 4:44 a.m. OK GNU C++14 TESTS 38 156 1536000 1900
56962684 llt123456 D July 13, 2019, 7:12 a.m. OK GNU C++17 TESTS 38 124 2048000 1900
50403617 supremeyu D Feb. 23, 2019, 7:24 p.m. OK GNU C++17 TESTS 38 124 4198400 1900
54327704 ummmmm_ D May 18, 2019, 3:54 a.m. OK GNU C++17 TESTS 38 140 2048000 1900
56458646 vjudge1 D July 3, 2019, 5:39 a.m. OK GNU C++17 TESTS 38 140 3174400 1900
56457351 ShenTuZhiGang D July 3, 2019, 4:55 a.m. OK GNU C++17 TESTS 38 140 3174400 1900
61887062 vjudge1 D Oct. 5, 2019, 4:06 a.m. OK GNU C++17 TESTS 38 155 2048000 1900
56966354 wooooh D July 13, 2019, 8:29 a.m. OK GNU C++17 TESTS 38 155 2048000 1900
56958845 vjudge1 D July 13, 2019, 5:48 a.m. OK GNU C++17 TESTS 38 155 2048000 1900
56964886 vjudge3 D July 13, 2019, 8 a.m. OK GNU C++17 TESTS 38 155 4198400 1900
60767125 qinding D Sept. 18, 2019, 11:23 a.m. OK GNU C++17 TESTS 38 156 2048000 1900
60272385 jenish9599 StayAwayFromBitches D Sept. 8, 2019, 4:07 p.m. OK Java 8 TESTS 38 155 0 1900
30127638 7dan D Sept. 6, 2017, 9:41 a.m. OK Java 8 TESTS 38 187 0 1900
30106427 uwi D Sept. 5, 2017, 3:32 p.m. OK Java 8 TESTS 38 233 5836800 1900
66987936 unicorn20141 D Dec. 15, 2019, 6:56 p.m. OK Java 8 TESTS 38 249 0 1900
60277281 jenish9599 D Sept. 8, 2019, 6:31 p.m. OK Java 8 TESTS 38 265 5427200 1900
69682659 chojh1222 D Jan. 28, 2020, 4:05 p.m. OK Java 8 TESTS 38 311 0 1900
30118889 Aemon D Sept. 5, 2017, 9:44 p.m. OK Java 8 TESTS 38 327 0 1900
30112985 war_and_peace D Sept. 5, 2017, 4:47 p.m. OK Java 8 TESTS 38 327 0 1900
30361514 vovacomua D Sept. 15, 2017, 11:22 a.m. OK Java 8 TESTS 38 327 5939200 1900
36682864 flyman3046 D March 28, 2018, 4:21 a.m. OK Java 8 TESTS 38 342 23552000 1900
30112411 leign D Sept. 5, 2017, 4:38 p.m. OK Mono C# TESTS 38 452 22835200 1900
31606715 og.kostya D Oct. 22, 2017, 2:34 p.m. OK MS C# TESTS 38 217 22528000 1900
30330162 fr0st D Sept. 14, 2017, 1:53 p.m. OK MS C# TESTS 38 919 18227200 1900
56371157 vjudge2 D July 1, 2019, 3:43 a.m. OK MS C++ TESTS 38 108 2252800 1900
56962740 vjudge5 D July 13, 2019, 7:13 a.m. OK MS C++ TESTS 38 124 2048000 1900
56505191 vjudge1 D July 4, 2019, 8:10 a.m. OK MS C++ TESTS 38 124 3072000 1900
56415668 vjudge4 D July 2, 2019, 4:23 a.m. OK MS C++ TESTS 38 124 3993600 1900
68704469 vjudge3 D Jan. 13, 2020, 10:43 a.m. OK MS C++ TESTS 38 124 3993600 1900
56963524 vjudge2 D July 13, 2019, 7:32 a.m. OK MS C++ TESTS 38 124 4505600 1900
56418390 vjudge5 D July 2, 2019, 6:06 a.m. OK MS C++ TESTS 38 124 5222400 1900
56418506 vjudge4 D July 2, 2019, 6:09 a.m. OK MS C++ TESTS 38 124 5222400 1900
68708633 vjudge4 D Jan. 13, 2020, 12:13 p.m. OK MS C++ TESTS 38 124 5734400 1900
69553655 vjudge2 D Jan. 26, 2020, 7:43 a.m. OK MS C++ TESTS 38 124 6041600 1900
68684013 vjudge1 D Jan. 13, 2020, 1:51 a.m. OK MS C++ 2017 TESTS 38 187 4096000 1900
58101266 vjudge2 D Aug. 1, 2019, 1:04 a.m. OK MS C++ 2017 TESTS 38 202 4198400 1900
58101134 suancaiyu D Aug. 1, 2019, 12:56 a.m. OK MS C++ 2017 TESTS 38 202 4198400 1900
56972826 vjudge1 D July 13, 2019, 11 a.m. OK MS C++ 2017 TESTS 38 218 20070400 1900
56969624 MiaoMiao_E D July 13, 2019, 9:40 a.m. OK MS C++ 2017 TESTS 38 249 14028800 1900
31242399 Ferume D Oct. 12, 2017, 1:41 p.m. OK PyPy 2 TESTS 38 1949 28876800 1900
30114541 nwi D Sept. 5, 2017, 5:14 p.m. OK Python 2 TESTS 38 686 33177600 1900
30160097 nwi D Sept. 6, 2017, 4:32 p.m. OK Python 2 TESTS 38 717 33075200 1900

remove filters

Back to search problems