Codeforces Global Round 7

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
1326 Codeforces Global Round 7 FINISHED False 9000 152724311 March 19, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2210 ) E Bombs PROGRAMMING data structures two pointers 2400

B"You are given a permutation, p_1, p_2, ldots, p_n . Imagine that some positions of the permutation contain bombs, such that there exists at least one position without a bomb. For some fixed configuration of bombs, consider the following process. Initially, there is an empty set, A . For each i from 1 to n : After the process is completed, A will be non-empty. The cost of the configuration of bombs equals the largest element in A . You are given another permutation, q_1, q_2, ldots, q_n . For each 1 <= q i <= q n , find the cost of a configuration of bombs such that there exists a bomb in positions q_1, q_2, ldots, q_{i-1} . For example, for i=1 , you need to find the cost of a configuration without bombs, and for i=n , you need to find the cost of a configuration with bombs in positions q_1, q_2, ldots, q_{n-1} . The first line contains a single integer, n ( 2 <= q n <= q 300 ,000 ). The second line contains n distinct integers p_1, p_2, ldots, p_n ( 1 <= q p_i <= q n) . The third line contains n distinct integers q_1, q_2, ldots, q_n ( 1 <= q q_i <= q n) . Print n space-separated integers, such that the i -th of them equals the cost of a configuration of bombs in positions q_1, q_2, ldots, q_{i-1} . In the first test: In the second test: Let's consider the process for i = 4 . There are three bombs on positions q_1 = 5 , q_2 = 2 , and q_3 = 1 . At the beginning, A = { } . In the end, we have A = {1, 4, 5 } , so the cost of the configuration is equal to 5 . "...

Tutorials

74961

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
73707543 hos.lyric E March 19, 2020, 3:52 p.m. OK D TESTS 20 405 47411200 2400
73780536 libra7z E March 20, 2020, 9:57 a.m. OK D TESTS 20 514 30822400 2400
73709135 rainboy E March 19, 2020, 3:56 p.m. OK GNU C11 TESTS 20 1200 11673600 2400
73719951 changle_cyx E March 19, 2020, 4:25 p.m. OK GNU C++11 TESTS 20 202 18022400 2400
73751991 dysyn1314 E March 20, 2020, 1:41 a.m. OK GNU C++11 TESTS 20 217 14233600 2400
73769823 UniverseofHK E March 20, 2020, 7:25 a.m. OK GNU C++11 TESTS 20 233 12083200 2400
73703752 stal_xy23z7b8 E March 19, 2020, 3:43 p.m. OK GNU C++11 TESTS 20 234 13209600 2400
73791038 wasa855 E March 20, 2020, 12:21 p.m. OK GNU C++11 TESTS 20 249 14438400 2400
73720878 Binary_Search_Tree E March 19, 2020, 4:27 p.m. OK GNU C++11 TESTS 20 249 64102400 2400
73708622 lzr_010506 E March 19, 2020, 3:55 p.m. OK GNU C++11 TESTS 20 249 72192000 2400
73713095 AutumnKite E March 19, 2020, 4:06 p.m. OK GNU C++11 TESTS 20 264 30003200 2400
73769617 mengbierr E March 20, 2020, 7:22 a.m. OK GNU C++11 TESTS 20 264 36044800 2400
73716045 bear77 E March 19, 2020, 4:14 p.m. OK GNU C++11 TESTS 20 280 11980800 2400
73754725 rainboy E March 20, 2020, 3:04 a.m. OK GNU C++14 TESTS 20 233 11673600 2400
73759634 phg0804 E March 20, 2020, 4:53 a.m. OK GNU C++14 TESTS 20 249 10854400 2400
73762303 tokitsukaze E March 20, 2020, 5:36 a.m. OK GNU C++14 TESTS 20 249 14540800 2400
73742385 mateusz E March 19, 2020, 9:08 p.m. OK GNU C++14 TESTS 20 264 11980800 2400
73706553 ainta E March 19, 2020, 3:50 p.m. OK GNU C++14 TESTS 20 295 11980800 2400
73806124 arjitkansal E March 20, 2020, 3:22 p.m. OK GNU C++14 TESTS 20 327 11161600 2400
73797308 lovehauhua E March 20, 2020, 1:36 p.m. OK GNU C++14 TESTS 20 327 13209600 2400
73747250 Bekh E March 19, 2020, 10:56 p.m. OK GNU C++14 TESTS 20 327 15667200 2400
73757643 rawnix E March 20, 2020, 4:13 a.m. OK GNU C++14 TESTS 20 342 10854400 2400
73794518 zh.forever E March 20, 2020, 1:04 p.m. OK GNU C++14 TESTS 20 342 13209600 2400
73822791 neal E March 20, 2020, 6:30 p.m. OK GNU C++17 TESTS 20 139 10854400 2400
73822465 neal E March 20, 2020, 6:26 p.m. OK GNU C++17 TESTS 20 140 10854400 2400
73822635 neal E March 20, 2020, 6:28 p.m. OK GNU C++17 TESTS 20 155 10854400 2400
73757038 _andyli E March 20, 2020, 4 a.m. OK GNU C++17 TESTS 20 187 28569600 2400
73710185 mnbvmar E March 19, 2020, 3:59 p.m. OK GNU C++17 TESTS 20 265 13209600 2400
73753609 limbo.null E March 20, 2020, 2:32 a.m. OK GNU C++17 TESTS 20 265 23142400 2400
73749786 ollpu E March 20, 2020, 12:26 a.m. OK GNU C++17 TESTS 20 280 9625600 2400
73741138 Felerius E March 19, 2020, 8:46 p.m. OK GNU C++17 TESTS 20 280 20480000 2400
73729235 Volkov_Ivan E March 19, 2020, 4:52 p.m. OK GNU C++17 TESTS 20 295 15769600 2400
73806453 evenharder E March 20, 2020, 3:26 p.m. OK GNU C++17 TESTS 20 295 19251200 2400
73825394 neal E March 20, 2020, 6:57 p.m. OK GNU C++17 (64) TESTS 20 140 10854400 2400
73825390 neal E March 20, 2020, 6:57 p.m. OK GNU C++17 (64) TESTS 20 249 10854400 2400
73827241 idgaf_99 E March 20, 2020, 7:19 p.m. OK GNU C++17 (64) TESTS 20 467 8396800 2400
73820291 PavelKunyavskiy E March 20, 2020, 6:07 p.m. OK GNU C++17 (64) TESTS 20 701 21606400 2400
73747973 polyakoff E March 19, 2020, 11:20 p.m. OK Java 11 TESTS 20 795 13414400 2400
73718349 uwi E March 19, 2020, 4:20 p.m. OK Java 11 TESTS 20 935 16691200 2400
73723456 cwise E March 19, 2020, 4:35 p.m. OK Java 8 TESTS 20 576 46796800 2400
73715457 Suzukaze E March 19, 2020, 4:12 p.m. OK Java 8 TESTS 20 1372 36864000 2400
73759461 Harpae E March 20, 2020, 4:50 a.m. OK Java 8 TESTS 20 1918 66764800 2400
73748138 surajchip2 E March 19, 2020, 11:26 p.m. OK Java 8 TESTS 20 2058 35737600 2400
73811315 Spheniscine E March 20, 2020, 4:38 p.m. OK Kotlin TESTS 20 576 18432000 2400
73753060 Hakiobo E March 20, 2020, 2:16 a.m. OK Kotlin TESTS 20 654 30617600 2400
73753627 Hakiobo E March 20, 2020, 2:33 a.m. OK Kotlin TESTS 20 764 30617600 2400
73722683 knightL E March 19, 2020, 4:33 p.m. OK Kotlin TESTS 20 826 46387200 2400
73728536 darnley E March 19, 2020, 4:50 p.m. OK Kotlin TESTS 20 904 38092800 2400
73810109 darnley E March 20, 2020, 4:18 p.m. OK Kotlin TESTS 20 919 37990400 2400
73702115 Tlatoani E March 19, 2020, 3:39 p.m. OK Kotlin TESTS 20 1091 32051200 2400
73800216 vjudge5 E March 20, 2020, 2:11 p.m. OK MS C++ TESTS 20 327 13209600 2400
73750225 math957963 E March 20, 2020, 12:40 a.m. OK MS C++ TESTS 20 592 36147200 2400
73741605 AleksanderBalobanov E March 19, 2020, 8:54 p.m. OK MS C++ 2017 TESTS 20 390 15667200 2400
73705238 kobae964 E March 19, 2020, 3:47 p.m. OK Rust TESTS 20 810 21913600 2400

remove filters

Back to search problems