Codeforces Global Round 3

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
1148 Codeforces Global Round 3 FINISHED False 8100 172423499 June 1, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 267 ) H Holy Diver PROGRAMMING data structures 3600

B"You are given an array which is initially empty. You need to perform n operations of the given format: The elements of the array are numerated from 1 in the order they are added to the array. To make this problem more tricky we don't say your real parameters of the queries. Instead your are given a' , l' , r' , k' . To get a , l , r , k on the i -th operation you need to perform the following: The operatorname{mex}(S) , where S is a multiset of non-negative integers, is the smallest non-negative integer which does not appear in the set. For example, operatorname{mex}( {2, 2, 3 }) = 0 and operatorname{mex} ( {0, 1, 4, 1, 6 }) = 2 . The first line contains a single integer n ( 1 <= q n <= q 2 cdot 10^5 ) -- the length of the array. The next n lines contain the description of queries. Each of them n lines contains four non-negative integers a' , l' , r' , k' ( 0, <= q a', l', r', k' <= q 10^9 ), describing one operation. For each query print a single integer -- the answer to this query. For the first example the decoded values of a , l , r , k are the following: a_1=0,l_1=1,r_1=1,k_1=1 a_2=1,l_2=1,r_2=2,k_2=0 a_3=0,l_3=1,r_3=3,k_3=1 a_4=1,l_4=1,r_4=4,k_4=2 a_5=2,l_5=1,r_5=5,k_5=3 For the second example the decoded values of a , l , r , k are the following: a_1=2,l_1=1,r_1=1,k_1=2 a_2=2,l_2=1,r_2=2,k_2=1 a_3=0,l_3=1,r_3=3,k_3=0 a_4=0,l_4=2,r_4=2,k_4=3 a_5=0,l_5=3,r_5=4,k_5=0 "...

Tutorials

Codeforces Global Round 3 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
55334448 zx2003 H June 9, 2019, 12:54 p.m. OK GNU C++11 TESTS 95 249 50688000 3600
55333828 zx2003 H June 9, 2019, 12:33 p.m. OK GNU C++11 TESTS 95 639 38092800 3600
57955712 Black_deVil H July 29, 2019, 6:36 p.m. OK GNU C++11 TESTS 95 654 38092800 3600
57866404 lopare H July 27, 2019, 9:21 p.m. OK GNU C++11 TESTS 95 654 38092800 3600
57710344 py_ultron H July 24, 2019, 11:17 p.m. OK GNU C++11 TESTS 95 701 38092800 3600
61346828 frodakcin H Sept. 27, 2019, 5:34 a.m. OK GNU C++11 TESTS 95 764 363520000 3600
63188504 vjudge1 H Oct. 22, 2019, 4:49 p.m. OK GNU C++11 TESTS 95 1200 21401600 3600
55014539 cdkrot H June 3, 2019, 11:42 a.m. OK GNU C++11 TESTS 95 1996 689254400 3600
55576568 apiadu H June 15, 2019, 1:53 a.m. OK GNU C++11 TESTS 95 2074 287846400 3600
55992139 vjudge3 H June 24, 2019, 8:16 a.m. OK GNU C++11 TESTS 95 2152 491417600 3600
55610332 ReaLNero1 H June 16, 2019, 5:16 a.m. OK GNU C++14 TESTS 95 312 26214400 3600
55279440 krijgertje H June 7, 2019, 10:30 p.m. OK GNU C++14 TESTS 95 343 26214400 3600
55233536 Created_equal H June 7, 2019, 7:06 a.m. OK GNU C++14 TESTS 95 498 1016627200 3600
55007587 BSBandme H June 3, 2019, 8:24 a.m. OK GNU C++14 TESTS 95 732 61542400 3600
55007516 BSBandme H June 3, 2019, 8:22 a.m. OK GNU C++14 TESTS 95 748 61542400 3600
59516044 Heltion H Aug. 26, 2019, 10:10 a.m. OK GNU C++14 TESTS 95 919 21606400 3600
62576342 virajudaysingh H Oct. 14, 2019, 4:01 p.m. OK GNU C++14 TESTS 95 920 21606400 3600
59529683 Heltion H Aug. 26, 2019, 2:34 p.m. OK GNU C++14 TESTS 95 920 21606400 3600
66504705 Toxel H Dec. 8, 2019, 1:54 p.m. OK GNU C++14 TESTS 95 1044 103628800 3600
55317486 newbiegcz H June 9, 2019, 12:23 a.m. OK GNU C++14 TESTS 95 1356 979456000 3600
57470093 Benq H July 21, 2019, 5:41 p.m. OK GNU C++17 TESTS 95 389 47923200 3600
57745735 The_Lost_Desu H July 25, 2019, 12:57 p.m. OK GNU C++17 TESTS 95 420 38092800 3600
60767728 4d2 H Sept. 18, 2019, 11:35 a.m. OK GNU C++17 TESTS 95 436 38092800 3600
59978897 7202amin H Sept. 4, 2019, 7:20 a.m. OK GNU C++17 TESTS 95 779 61542400 3600
62454398 gongsuidashen H Oct. 13, 2019, 5:49 a.m. OK GNU C++17 TESTS 95 951 21606400 3600
68862748 kzo-07-yerhan H Jan. 15, 2020, 12:37 p.m. OK GNU C++17 TESTS 95 998 21606400 3600
68610362 Dmitriy.Belichenko H Jan. 11, 2020, 3:29 p.m. OK GNU C++17 TESTS 95 1076 496128000 3600
56839686 Kmcode H July 11, 2019, 10:54 a.m. OK GNU C++17 TESTS 95 1091 496128000 3600
55502102 maroonrk H June 12, 2019, 3:38 p.m. OK GNU C++17 TESTS 95 1403 81305600 3600
55014211 sewa.bulgakov H June 3, 2019, 11:34 a.m. OK GNU C++17 TESTS 95 2059 294195200 3600

remove filters

Back to search problems