Codeforces Global Round 14

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
1515 Codeforces Global Round 14 FINISHED False 10800 117300262 May 2, 2021, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 257 ) H Phoenix and Bits PROGRAMMING bitmasks data structures

B'Phoenix loves playing with bits -- specifically, by using the bitwise operations AND, OR, and XOR. He has n integers a_1, a_2, ... , a_n , and will perform q of the following queries: For each query, Phoenix is given l , r , and x . Note that he is considering the values of the numbers, not their indices. The first line contains two integers n and q ( 1 <= n <= 2 cdot 10^5 ; 1 <= q <= 10^5 ) -- the number of integers and the number of queries, respectively. The second line contains n integers a_1, a_2, ... , a_n ( 0 <= a_i < 2^{20} ) -- the integers that Phoenix starts with. The next q lines contain the queries. For each query, the first integer of each line is t ( 1 <= t <= 4 ) -- the type of query. If t in {1, 2, 3 } , then three integers l_i , r_i , and x_i will follow ( 0 <= l_i, r_i, x_i < 2^{20} ; l_i <= r_i ). Otherwise, if t=4 , two integers l_i and r_i will follow ( 0 <= l_i <= r_i < 2^{20} ). It is guaranteed that there is at least one query where t=4 . Print the answer for each query where t=4 . In the first example: '...

Tutorials

Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
114992589 sh1194 H May 3, 2021, 5:23 a.m. OK GNU C11 TESTS 74 529 202035200
114992847 sh1194 H May 3, 2021, 5:25 a.m. OK GNU C11 TESTS 74 530 202035200
114971590 rainboy H May 2, 2021, 9:52 p.m. OK GNU C11 TESTS 74 545 202035200
114979009 Dev.Zaki H May 3, 2021, 1:50 a.m. OK GNU C++11 TESTS 74 2355 24576000
114971639 rainboy H May 2, 2021, 9:53 p.m. OK GNU C++17 (64) TESTS 74 405 201932800
114962620 jiangly H May 2, 2021, 7:04 p.m. OK GNU C++17 (64) TESTS 74 436 44748800
114960283 jiangly H May 2, 2021, 6:47 p.m. OK GNU C++17 (64) TESTS 74 577 44748800
114951348 Um_nik H May 2, 2021, 5:08 p.m. OK GNU C++17 (64) TESTS 74 3213 819200

remove filters

Back to search problems