SWERC 2021-2022 - Online Mirror (Unrated, ICPC Rules, Teams Preferred)

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
1662 SWERC 2021-2022 - Online Mirror (Unrated, ICPC Rules, Teams Preferred) FINISHED False 18000 86381663 April 24, 2022, 11:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1137 ) L Il Derby della Madonnina PROGRAMMING data structures dp

B'The derby between Milan and Inter is happening soon, and you have been chosen as the assistant referee for the match, also known as linesman. Your task is to move along the touch-line, namely the side of the field, always looking very carefully at the match to check for offside positions and other offences. Football is an extremely serious matter in Italy, and thus it is fundamental that you keep very close track of the ball for as much time as possible. This means that you want to maximise the number of kicks which you monitor closely. You are able to monitor closely a kick if, when it happens, you are in the position along the touch-line with minimum distance from the place where the kick happens. Fortunately, expert analysts have been able to accurately predict all the kicks which will occur during the game. That is, you have been given two lists of integers, t_1, ldots, t_n and a_1, ldots, a_n , indicating that t_i seconds after the beginning of the match the ball will be kicked and you can monitor closely such kick if you are at the position a_i along the touch-line. At the beginning of the game you start at position 0 and the maximum speed at which you can walk along the touch-line is v units per second (i.e., you can change your position by at most v each second). What is the maximum number of kicks that you can monitor closely? The first line contains two integers n and v ( 1 <= n <= 2 cdot 10^5 , 1 <= v <= 10^6 ) -- the number of kicks that will take place and your maximum speed. The second line contains n integers t_1, ldots, t_n ( 1 <= t_i <= 10^9 ) -- the times of the kicks in the match. The sequence of times is guaranteed to be strictly increasing, i.e., t_1 < t_2 < cdots < t_n . The third line contains n integers a_1, ldots, a_n ( -10^9 <= a_i <= 10^9 ) -- the positions along the touch-line where you have to be to monitor close'...

Tutorials

102042

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
154850759 konata28 zhangshaojia wsyear L April 24, 2022, 12:33 p.m. OK GNU C++14 TESTS 27 186 6451200
154866375 Imdie Laurids jucason_xu L April 24, 2022, 3:12 p.m. OK GNU C++14 TESTS 27 202 17203200
154848822 275307894b OceanDustTale 275307894c L April 24, 2022, 12:15 p.m. OK GNU C++14 TESTS 27 217 20992000
154849710 nanatoday Crying CrTsIr L April 24, 2022, 12:23 p.m. OK GNU C++14 TESTS 27 264 15155200
154863774 Jimanbanashi L April 24, 2022, 2:44 p.m. OK GNU C++14 TESTS 27 265 24268800
154844964 lpf666 SharpnessX L April 24, 2022, 11:43 a.m. OK GNU C++14 TESTS 27 577 17612800
154847035 LZDQ Neal_lee Asuka L April 24, 2022, 11:59 a.m. OK GNU C++14 TESTS 27 1013 223948800
154880108 zihouzhong L April 24, 2022, 6 p.m. OK GNU C++14 TESTS 27 1248 10137600
154861845 tyler178 applese Timsei L April 24, 2022, 2:22 p.m. OK GNU C++14 TESTS 27 1622 34201600
154847590 Xuanhuy612 Negativez2 Gnoud__ L April 24, 2022, 12:05 p.m. OK GNU C++14 TESTS 27 1699 103936000
154867033 wifiiii L April 24, 2022, 3:19 p.m. OK GNU C++17 TESTS 27 124 12697600
154892757 Aging1986 L April 24, 2022, 9:54 p.m. OK GNU C++17 TESTS 27 139 9011200
154849091 hieplpvip ta4p _SS L April 24, 2022, 12:18 p.m. OK GNU C++17 TESTS 27 139 11059200
154894030 paula L April 24, 2022, 10:28 p.m. OK GNU C++17 TESTS 27 140 9523200
154848446 BilyHurington gzchenben zhouziheng L April 24, 2022, 12:12 p.m. OK GNU C++17 TESTS 27 155 13516800
154892659 BenniKartefla L April 24, 2022, 9:52 p.m. OK GNU C++17 TESTS 27 155 21401600
154844389 Merkurev KAN Um_nik L April 24, 2022, 11:38 a.m. OK GNU C++17 TESTS 27 156 8396800
154880164 ansol4328 L April 24, 2022, 6:01 p.m. OK GNU C++17 TESTS 27 218 8806400
154858698 RUSH_D_CAT limbo.null NecroSean38 L April 24, 2022, 1:50 p.m. OK GNU C++17 TESTS 27 218 14336000
154870610 HappyPacMan L April 24, 2022, 3:53 p.m. OK GNU C++17 TESTS 27 218 16179200
154868540 KN200711 Zappeko Zanite L April 24, 2022, 3:35 p.m. OK GNU C++17 (64) TESTS 27 78 11673600
154882414 Egor.Lifar cookiedoth rqi L April 24, 2022, 6:37 p.m. OK GNU C++17 (64) TESTS 27 78 15360000
154861941 Molly_Love_MAOoo MAOoo_Love_Molly L April 24, 2022, 2:23 p.m. OK GNU C++17 (64) TESTS 27 93 7782400
154856957 Sert L April 24, 2022, 1:34 p.m. OK GNU C++17 (64) TESTS 27 93 7987200
154867432 used-fft L April 24, 2022, 3:24 p.m. OK GNU C++17 (64) TESTS 27 93 10649600
154858902 kostia244 KostasKostil VladProg L April 24, 2022, 1:52 p.m. OK GNU C++17 (64) TESTS 27 93 15360000
154851547 mango_lassi please_delete_account YaoBIG L April 24, 2022, 12:41 p.m. OK GNU C++17 (64) TESTS 27 139 12800000
154865010 hojoon0205 ansol4328 deuslovelt L April 24, 2022, 2:56 p.m. OK GNU C++17 (64) TESTS 27 140 25804800
154887709 MarcosK L April 24, 2022, 8:15 p.m. OK GNU C++17 (64) TESTS 27 155 19353600
154865533 SebastianMestre Fran2001 TainelDreik L April 24, 2022, 3:02 p.m. OK GNU C++17 (64) TESTS 27 187 16896000
154852563 Kotoblepass s20b1_chernikov average_gleb_enjoyer L April 24, 2022, 12:51 p.m. OK GNU C++20 (64) TESTS 27 78 4812800
154907503 AA_Surely L April 25, 2022, 5:58 a.m. OK GNU C++20 (64) TESTS 27 78 7987200
154888128 A_G L April 24, 2022, 8:23 p.m. OK GNU C++20 (64) TESTS 27 78 10035200
154881278 Thallium54 L April 24, 2022, 6:18 p.m. OK GNU C++20 (64) TESTS 27 78 10035200
154844750 tourist ksun48 L April 24, 2022, 11:41 a.m. OK GNU C++20 (64) TESTS 27 78 12185600
154849801 pavement L April 24, 2022, 12:24 p.m. OK GNU C++20 (64) TESTS 27 78 23859200
154847516 TeaTime Ormlis Pechalka L April 24, 2022, 12:04 p.m. OK GNU C++20 (64) TESTS 27 93 7987200
154848151 Golovanov399 amethyst0 AndreySergunin L April 24, 2022, 12:09 p.m. OK GNU C++20 (64) TESTS 27 93 9113600
154850710 Endagorion L April 24, 2022, 12:33 p.m. OK GNU C++20 (64) TESTS 27 93 12492800
154845932 jiangly L April 24, 2022, 11:50 a.m. OK GNU C++20 (64) TESTS 27 109 9113600
154868489 arvindf232 happypotato1207 nicholask L April 24, 2022, 3:35 p.m. OK Kotlin 1.4 TESTS 27 561 46592000
154902950 Gilwall conqueror_of_tourist L April 25, 2022, 4:24 a.m. OK PyPy 3-64 TESTS 27 654 39833600

remove filters

Back to search problems