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 81024899 April 24, 2022, 11:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1061 ) F Antennas PROGRAMMING data structures dfs and similar graphs graphs implementation implementation shortest paths shortest paths

B'There are n equidistant antennas on a line, numbered from 1 to n . Each antenna has a power rating, the power of the i -th antenna is p_i . The i -th and the j -th antenna can communicate directly if and only if their distance is at most the minimum of their powers, i.e., |i-j| <= q min(p_i, p_j) . Sending a message directly between two such antennas takes 1 second. What is the minimum amount of time necessary to send a message from antenna a to antenna b , possibly using other antennas as relays? Each test contains multiple test cases. The first line contains an integer t ( 1 <= t <= 100 ,000 ) -- the number of test cases. The descriptions of the t test cases follow. The first line of each test case contains three integers n , a , b ( 1 <= q a, b <= q n <= q 200 ,000 ) -- the number of antennas, and the origin and target antenna. The second line contains n integers p_1, p_2, ... , p_n ( 1 <= q p_i <= q n ) -- the powers of the antennas. The sum of the values of n over all test cases does not exceed 200 ,000 . For each test case, print the number of seconds needed to trasmit a message from a to b . It can be shown that under the problem constraints, it is always possible to send such a message. In the first test case, we must send a message from antenna 2 to antenna 9 . A sequence of communications requiring 4 seconds, which is the minimum possible amount of time, is the following: '...

Tutorials

102042

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
154864423 Potassium F April 24, 2022, 2:51 p.m. OK GNU C++14 TESTS 46 171 14745600
154868747 cqbr shy_but_not_shy F99_ll_H21 F April 24, 2022, 3:37 p.m. OK GNU C++14 TESTS 46 264 12390400
154849522 lpf666 SharpnessX F April 24, 2022, 12:22 p.m. OK GNU C++14 TESTS 46 280 13926400
154846835 KillerX Eric_hooo He_Ren F April 24, 2022, 11:58 a.m. OK GNU C++14 TESTS 46 311 94412800
154863055 _Ash__ Arg_007 F April 24, 2022, 2:35 p.m. OK GNU C++14 TESTS 46 312 22118400
154885100 pnm1384 F April 24, 2022, 7:25 p.m. OK GNU C++14 TESTS 46 421 16998400
154858294 nanatoday Crying CrTsIr F April 24, 2022, 1:46 p.m. OK GNU C++14 TESTS 46 717 21913600
154871732 tyler178 applese Timsei F April 24, 2022, 4:03 p.m. OK GNU C++14 TESTS 46 904 31846400
154879321 zihouzhong F April 24, 2022, 5:48 p.m. OK GNU C++14 TESTS 46 1138 256000000
154861229 275307894b OceanDustTale 275307894c F April 24, 2022, 2:15 p.m. OK GNU C++14 TESTS 46 1185 262758400
154862223 wifiiii F April 24, 2022, 2:26 p.m. OK GNU C++17 TESTS 46 78 2560000
154848233 Golovanov399 amethyst0 AndreySergunin F April 24, 2022, 12:10 p.m. OK GNU C++17 TESTS 46 124 13107200
154845983 hieplpvip ta4p _SS F April 24, 2022, 11:51 a.m. OK GNU C++17 TESTS 46 187 9216000
154847463 hloya_ygrt Mediocrity PuRpLe_FoReVeR F April 24, 2022, 12:03 p.m. OK GNU C++17 TESTS 46 218 10547200
154849661 hank55663 F April 24, 2022, 12:23 p.m. OK GNU C++17 TESTS 46 249 18329600
154847049 TeaTime Ormlis Pechalka F April 24, 2022, 11:59 a.m. OK GNU C++17 TESTS 46 265 7577600
154856684 humbertoyusta sanchezIII MDario F April 24, 2022, 1:31 p.m. OK GNU C++17 TESTS 46 280 20070400
154853137 sare pooya-shams radal F April 24, 2022, 12:56 p.m. OK GNU C++17 TESTS 46 295 18534400
154897710 YaoBIG F April 25, 2022, 2:20 a.m. OK GNU C++17 TESTS 46 296 16076800
154862253 HugeWide beacon_cwk F April 24, 2022, 2:26 p.m. OK GNU C++17 TESTS 46 296 19353600
154862977 mango_lassi please_delete_account YaoBIG F April 24, 2022, 2:35 p.m. OK GNU C++17 (64) TESTS 46 140 11468800
154891350 MarcosK F April 24, 2022, 9:24 p.m. OK GNU C++17 (64) TESTS 46 156 8806400
154862594 used-fft F April 24, 2022, 2:30 p.m. OK GNU C++17 (64) TESTS 46 187 20787200
154857279 gisp_zjz Roundgod F April 24, 2022, 1:37 p.m. OK GNU C++17 (64) TESTS 46 202 8704000
154900530 Gom F April 25, 2022, 3:28 a.m. OK GNU C++17 (64) TESTS 46 218 5632000
154871332 weak_kid sevlll777 Dart-Xeyter F April 24, 2022, 3:59 p.m. OK GNU C++17 (64) TESTS 46 233 12390400
154862354 used-fft F April 24, 2022, 2:27 p.m. OK GNU C++17 (64) TESTS 46 265 20787200
154864081 Sert F April 24, 2022, 2:47 p.m. OK GNU C++17 (64) TESTS 46 280 15257600
154864738 Komeiji_Green GNAQ F April 24, 2022, 2:54 p.m. OK GNU C++17 (64) TESTS 46 343 28057600
154850984 flyingspoon codr0 Arnch F April 24, 2022, 12:35 p.m. OK GNU C++17 (64) TESTS 46 358 20684800
154849112 Gary2005 tzxydby platelet F April 24, 2022, 12:18 p.m. OK GNU C++20 (64) TESTS 46 77 8806400
154885548 Kotoblepass F April 24, 2022, 7:33 p.m. OK GNU C++20 (64) TESTS 46 140 9830400
154846957 fmota tfg WeakestTopology F April 24, 2022, 11:59 a.m. OK GNU C++20 (64) TESTS 46 155 13414400
154850270 Oshwiciqwqq Serval 200815147 F April 24, 2022, 12:28 p.m. OK GNU C++20 (64) TESTS 46 202 15155200
154852880 wlzhouzhuan touxue Alan233 F April 24, 2022, 12:53 p.m. OK GNU C++20 (64) TESTS 46 202 16691200
154904020 AA_Surely F April 25, 2022, 4:47 a.m. OK GNU C++20 (64) TESTS 46 218 15257600
154843530 Mr_Eight ZGS_WZY yuyue F April 24, 2022, 11:31 a.m. OK GNU C++20 (64) TESTS 46 218 15257600
154860646 AriaH Koosha_Mv F April 24, 2022, 2:09 p.m. OK GNU C++20 (64) TESTS 46 234 72908800
154846462 NullXD Arinoor F April 24, 2022, 11:55 a.m. OK GNU C++20 (64) TESTS 46 265 15155200
154866818 kostia244 KostasKostil VladProg F April 24, 2022, 3:17 p.m. OK GNU C++20 (64) TESTS 46 295 47411200
154848558 arvindf232 happypotato1207 nicholask F April 24, 2022, 12:13 p.m. OK Kotlin 1.4 TESTS 46 218 0

remove filters

Back to search problems