Codeforces Round 545 (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
1137 Codeforces Round 545 (Div. 1) FINISHED False 9000 185403287 March 8, 2019, 9:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4507 ) A Skyscrapers PROGRAMMING implementation sortings 1600

B'Dora loves adventures quite a lot. During some journey she encountered an amazing city, which is formed by n streets along the Eastern direction and m streets across the Southern direction. Naturally, this city has nm intersections. At any intersection of i -th Eastern street and j -th Southern street there is a monumental skyscraper. Dora instantly became curious and decided to explore the heights of the city buildings. When Dora passes through the intersection of the i -th Eastern and j -th Southern street she examines those two streets. After Dora learns the heights of all the skyscrapers on those two streets she wonders: how one should reassign heights to the skyscrapers on those two streets, so that the maximum height would be as small as possible and the result of comparing the heights of any two skyscrapers on one street wouldn 't change. Formally, on every of nm intersections Dora solves an independent problem. She sees n + m - 1 skyscrapers and for each of them she knows its real height. Moreover, any two heights can be compared to get a result "greater", "smaller" or "equal". Now Dora wants to select some integer x and assign every skyscraper a height from 1 to x . When assigning heights, Dora wants to preserve the relative order of the skyscrapers in both streets. That is, the result of any comparison of heights of two skyscrapers in the current Eastern street shouldn 't change and the result of any comparison of heights of two skyscrapers in current Southern street shouldn 't change as well. Note that skyscrapers located on the Southern street are not compared with skyscrapers located on the Eastern street only. However, the skyscraper located at the streets intersection can be compared with both Southern and Eastern skyscrapers. For every intersection Dora wants to independently calculate the minimum possible x . For example, if the intersection and the two streets correspond'...

Tutorials

Codeforces Round #545 – Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
53456108 sansen A April 28, 2019, 2:49 a.m. OK GNU C11 TESTS 104 374 16076800 1600
51317614 zjq2863974342 A March 15, 2019, 2:33 a.m. OK GNU C++11 TESTS 104 171 28467200 1600
51150853 luogu_bot4 A March 11, 2019, 7:36 a.m. OK GNU C++11 TESTS 104 234 20172800 1600
51123906 luogu_bot5 A March 10, 2019, 10:43 a.m. OK GNU C++11 TESTS 104 249 12288000 1600
51431195 vjudge4 A March 18, 2019, 12:28 a.m. OK GNU C++11 TESTS 104 249 12288000 1600
51007549 LJC00118 A March 8, 2019, 9:16 a.m. OK GNU C++11 TESTS 104 265 12185600 1600
52467327 LJC00118 A April 7, 2019, 4:26 p.m. OK GNU C++11 TESTS 104 280 12185600 1600
69275022 AyoAyowei A Jan. 22, 2020, 1:15 a.m. OK GNU C++11 TESTS 104 280 12185600 1600
51007824 memset0c A March 8, 2019, 9:18 a.m. OK GNU C++11 TESTS 104 280 12288000 1600
51007883 nianheng A March 8, 2019, 9:18 a.m. OK GNU C++11 TESTS 104 295 14438400 1600
51317505 Durant_Lee A March 15, 2019, 2:25 a.m. OK GNU C++11 TESTS 104 295 48332800 1600
51226815 q234rty A March 12, 2019, 2:28 p.m. OK GNU C++14 TESTS 104 390 42188800 1600
51006892 interestingLSY A March 8, 2019, 9:14 a.m. OK GNU C++14 TESTS 104 404 15052800 1600
51076115 tokitsukaze A March 9, 2019, 9:25 a.m. OK GNU C++14 TESTS 104 404 16486400 1600
51007336 Linkus A March 8, 2019, 9:15 a.m. OK GNU C++14 TESTS 104 405 12185600 1600
52662810 O.S.Mozes A April 13, 2019, 1:50 a.m. OK GNU C++14 TESTS 104 421 12697600 1600
51818848 BB13 A March 25, 2019, 10:58 a.m. OK GNU C++14 TESTS 104 421 14540800 1600
51216756 mdj982 A March 12, 2019, 10:53 a.m. OK GNU C++14 TESTS 104 421 24576000 1600
51008748 Lily A March 8, 2019, 9:22 a.m. OK GNU C++14 TESTS 104 451 12185600 1600
51011633 fyy2603 A March 8, 2019, 9:42 a.m. OK GNU C++14 TESTS 104 451 20480000 1600
51059744 HanZhongBalls A March 9, 2019, 2:10 a.m. OK GNU C++14 TESTS 104 451 32358400 1600
51007303 CMXRYNP A March 8, 2019, 9:15 a.m. OK GNU C++17 TESTS 104 264 23142400 1600
51044101 kessido A March 8, 2019, 6:04 p.m. OK GNU C++17 TESTS 104 312 501248000 1600
53386022 HatsuneMikuo A April 27, 2019, 3:34 a.m. OK GNU C++17 TESTS 104 389 15052800 1600
51617692 geeyiiz A March 21, 2019, 1:05 p.m. OK GNU C++17 TESTS 104 436 13107200 1600
51007013 peltorator A March 8, 2019, 9:14 a.m. OK GNU C++17 TESTS 104 436 21094400 1600
51366502 hearthewsong A March 16, 2019, 9:55 a.m. OK GNU C++17 TESTS 104 451 20377600 1600
51228402 dobito6 A March 12, 2019, 3:04 p.m. OK GNU C++17 TESTS 104 451 31744000 1600
51130307 lqs2015 A March 10, 2019, 1:25 p.m. OK GNU C++17 TESTS 104 452 14848000 1600
51228473 dobito6 A March 12, 2019, 3:06 p.m. OK GNU C++17 TESTS 104 452 31744000 1600
60680401 m1sch3f A Sept. 16, 2019, 1:45 p.m. OK GNU C++17 TESTS 104 452 33484800 1600
51380256 cylixstar A March 16, 2019, 3:53 p.m. OK Haskell TESTS 104 1466 113561600 1600
51006703 mmaxio A March 8, 2019, 9:13 a.m. OK Java 8 TESTS 104 514 13516800 1600
51011223 Musin A March 8, 2019, 9:39 a.m. OK Java 8 TESTS 104 530 24473600 1600
51266309 zxzxzx0119 A March 13, 2019, 3:42 p.m. OK Java 8 TESTS 104 623 8294400 1600
51011575 Petr A March 8, 2019, 9:41 a.m. OK Java 8 TESTS 104 623 8294400 1600
51266517 zxzxzx0119 A March 13, 2019, 3:47 p.m. OK Java 8 TESTS 104 638 8294400 1600
51266009 zxzxzx0119 A March 13, 2019, 3:34 p.m. OK Java 8 TESTS 104 638 8294400 1600
51112353 16wh1a0503 A March 10, 2019, 5:12 a.m. OK Java 8 TESTS 104 638 14643200 1600
51266836 zxzxzx0119 A March 13, 2019, 3:57 p.m. OK Java 8 TESTS 104 639 8192000 1600
51266598 zxzxzx0119 A March 13, 2019, 3:50 p.m. OK Java 8 TESTS 104 654 8294400 1600
51083328 AJ47 A March 9, 2019, 12:13 p.m. OK Java 8 TESTS 104 654 14643200 1600
51095005 spookywooky A March 9, 2019, 3:58 p.m. OK Kotlin TESTS 104 1934 49152000 1600
51145176 SegaMegaDrive A March 10, 2019, 11:02 p.m. OK Mono C# TESTS 104 998 22528000 1600
61752742 tarattata1 A Oct. 3, 2019, 4:13 a.m. OK MS C++ TESTS 104 467 20070400 1600
51479352 vjudge4 A March 19, 2019, 10:52 a.m. OK MS C++ TESTS 104 499 12288000 1600
54527519 scorpiowf A May 23, 2019, 3:15 p.m. OK MS C++ TESTS 104 514 16793600 1600
51397770 vjudge5 A March 17, 2019, 5:37 a.m. OK MS C++ TESTS 104 529 12083200 1600
61866252 vjudge2 A Oct. 4, 2019, 4:40 p.m. OK MS C++ TESTS 104 545 24064000 1600
61863750 vjudge3 A Oct. 4, 2019, 4:01 p.m. OK MS C++ TESTS 104 592 12185600 1600
51487246 yangsupei A March 19, 2019, 2:03 p.m. OK MS C++ TESTS 104 607 14643200 1600
57312616 vjudge2 A July 19, 2019, 7:03 a.m. OK MS C++ TESTS 104 623 12288000 1600
51006083 LoneFox A March 8, 2019, 9:10 a.m. OK MS C++ TESTS 104 748 20275200 1600
61824188 vjudge2 A Oct. 4, 2019, 3:52 a.m. OK MS C++ TESTS 104 763 24371200 1600
59890057 j2v A Sept. 2, 2019, 9:58 a.m. OK MS C++ 2017 TESTS 104 592 12902400 1600
51617525 MishaSm A March 21, 2019, 1:01 p.m. OK MS C++ 2017 TESTS 104 1591 13004800 1600
51362045 GOATWU A March 16, 2019, 7:47 a.m. OK MS C++ 2017 TESTS 104 1637 12185600 1600
61854584 vjudge1 A Oct. 4, 2019, 1:43 p.m. OK MS C++ 2017 TESTS 104 1700 12083200 1600
52297108 Still_Theory A April 4, 2019, 6:47 a.m. OK MS C++ 2017 TESTS 104 1871 45875200 1600
51278413 eightants A March 14, 2019, 12:42 a.m. OK PyPy 2 TESTS 104 1668 53248000 1600
51278506 eightants A March 14, 2019, 12:49 a.m. OK PyPy 2 TESTS 104 1700 69017600 1600
51252435 hogeandfuga A March 13, 2019, 9:26 a.m. OK PyPy 3 TESTS 104 1762 55603200 1600
54481496 blatr A May 22, 2019, 11:15 a.m. OK PyPy 3 TESTS 104 1778 34304000 1600
51894491 sonya123 A March 27, 2019, 10:53 a.m. OK PyPy 3 TESTS 104 1856 37376000 1600
51469419 fleet A March 19, 2019, 5:19 a.m. OK PyPy 3 TESTS 104 1934 86528000 1600
51150199 a00920 A March 11, 2019, 7:09 a.m. OK PyPy 3 TESTS 104 1949 86220800 1600
52522913 aleonov A April 9, 2019, 9:50 a.m. OK PyPy 3 TESTS 104 1964 30003200 1600
68109825 gearjack A Jan. 3, 2020, 9:03 a.m. OK Rust TESTS 104 420 33689600 1600
52433191 alykov A April 7, 2019, 1:13 a.m. OK Rust TESTS 104 701 52326400 1600

remove filters

Back to search problems