Codeforces Round 770 (Div. 2)

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
1634 Codeforces Round 770 (Div. 2) FINISHED False 9000 87665099 Feb. 6, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1615 ) F Fibonacci Additions PROGRAMMING brute force hashing math

B'Fibonacci addition is an operation on an array X of integers, parametrized by indices l and r . Fibonacci addition increases X_l by F_1 , increases X_{l + 1} by F_2 , and so on up to X_r which is increased by F_{r - l + 1} . F_i denotes the i -th Fibonacci number ( F_1 = 1 , F_2 = 1 , F_{i} = F_{i - 1} + F_{i - 2} for i > 2 ), and all operations are performed modulo MOD . You are given two arrays A and B of the same length. We will ask you to perform several Fibonacci additions on these arrays with different parameters, and after each operation you have to report whether arrays A and B are equal modulo MOD . The first line contains 3 numbers n , q and MOD ( 1 <= n, q <= 3 cdot 10^5, 1 <= MOD <= 10^9+7 ) -- the length of the arrays, the number of operations, and the number modulo which all operations are performed. The second line contains n numbers -- array A ( 0 <= A_i < MOD ). The third line also contains n numbers -- array B ( 0 <= B_i < MOD ). The next q lines contain character c and two numbers l and r ( 1 <= l <= r <= n ) -- operation parameters. If c is "A", Fibonacci addition is to be performed on array A , and if it is is "B", the operation is to be performed on B . After each operation, print "YES" (without quotes) if the arrays are equal and "NO" otherwise. Letter case does not matter. Explanation of the test from the condition: '...

Tutorials

Codeforces Round #770 (Div. 2) editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
145491732 syksykCCC F Feb. 7, 2022, 2:47 a.m. OK GNU C++14 TESTS 179 109 5734400
145480297 YOLO_Martinek69 F Feb. 6, 2022, 8:13 p.m. OK GNU C++14 TESTS 179 311 9625600
145500175 grass8cow F Feb. 7, 2022, 5:20 a.m. OK GNU C++14 TESTS 180 327 3584000
145492178 L7-56 F Feb. 7, 2022, 2:57 a.m. OK GNU C++14 TESTS 179 327 6041600
145483983 liympanda F Feb. 6, 2022, 10:03 p.m. OK GNU C++14 TESTS 179 327 6246400
145470480 srikkanthr F Feb. 6, 2022, 5:58 p.m. OK GNU C++14 TESTS 179 343 3584000
145492348 0wuming0 F Feb. 7, 2022, 3 a.m. OK GNU C++14 TESTS 179 358 2457600
145469833 CaiLiyi F Feb. 6, 2022, 5:53 p.m. OK GNU C++14 TESTS 179 358 3584000
145499254 SookeAKIOI F Feb. 7, 2022, 5:06 a.m. OK GNU C++14 TESTS 180 358 8396800
145498721 Mckenna_Grace F Feb. 7, 2022, 4:58 a.m. OK GNU C++14 TESTS 179 358 8396800
145491352 hotpotcondiment F Feb. 7, 2022, 2:38 a.m. OK GNU C++17 TESTS 179 343 2457600
145488575 houzhiyuan123 F Feb. 7, 2022, 1:16 a.m. OK GNU C++17 TESTS 179 343 2457600
145477344 _LeMur_ F Feb. 6, 2022, 7:18 p.m. OK GNU C++17 TESTS 179 343 2457600
145468161 psc233 F Feb. 6, 2022, 5:45 p.m. OK GNU C++17 TESTS 179 343 7270400
145491783 KING_OF_TURTLE F Feb. 7, 2022, 2:48 a.m. OK GNU C++17 TESTS 179 358 3584000
145489701 DerekFeng F Feb. 7, 2022, 1:51 a.m. OK GNU C++17 TESTS 179 358 3584000
145495975 Vivek.yadav F Feb. 7, 2022, 4:11 a.m. OK GNU C++17 TESTS 179 358 4710400
145469586 A-SOUL_Diana F Feb. 6, 2022, 5:51 p.m. OK GNU C++17 TESTS 179 358 8192000
145479597 _FireGhost_ F Feb. 6, 2022, 7:59 p.m. OK GNU C++17 TESTS 179 373 3584000
145500034 abc864197532 F Feb. 7, 2022, 5:18 a.m. OK GNU C++17 TESTS 180 374 2457600
145490988 ecnerwala F Feb. 7, 2022, 2:29 a.m. OK GNU C++17 (64) TESTS 179 234 2457600
145476425 Renauga F Feb. 6, 2022, 7:03 p.m. OK GNU C++17 (64) TESTS 179 234 7270400
145497757 HNO2 F Feb. 7, 2022, 4:43 a.m. OK GNU C++17 (64) TESTS 179 249 2457600
145492650 froggyzhang F Feb. 7, 2022, 3:06 a.m. OK GNU C++17 (64) TESTS 179 249 2457600
145486248 neal F Feb. 6, 2022, 11:36 p.m. OK GNU C++17 (64) TESTS 179 249 3584000
145469814 neal F Feb. 6, 2022, 5:53 p.m. OK GNU C++17 (64) TESTS 179 249 3584000
145490624 765 F Feb. 7, 2022, 2:19 a.m. OK GNU C++17 (64) TESTS 179 249 12083200
145490510 hellojim F Feb. 7, 2022, 2:17 a.m. OK GNU C++17 (64) TESTS 179 249 12083200
145488174 ecnerwala F Feb. 7, 2022, 1 a.m. OK GNU C++17 (64) TESTS 179 264 2457600
145486221 CartesianTree F Feb. 6, 2022, 11:34 p.m. OK GNU C++17 (64) TESTS 179 264 29798400
145470261 BurnoutAg7 F Feb. 6, 2022, 5:56 p.m. OK GNU C++20 (64) TESTS 179 187 2457600
145476506 SSerxhs F Feb. 6, 2022, 7:04 p.m. OK GNU C++20 (64) TESTS 179 202 2457600
145503192 geospiza F Feb. 7, 2022, 6:01 a.m. OK GNU C++20 (64) TESTS 180 202 3584000
145469998 A_G F Feb. 6, 2022, 5:54 p.m. OK GNU C++20 (64) TESTS 179 202 4812800
145500696 wakaka F Feb. 7, 2022, 5:27 a.m. OK GNU C++20 (64) TESTS 180 202 6041600
145489522 smax F Feb. 7, 2022, 1:45 a.m. OK GNU C++20 (64) TESTS 179 202 9625600
145471083 Krolo7 F Feb. 6, 2022, 6:02 p.m. OK GNU C++20 (64) TESTS 179 217 4710400
145486659 Meul F Feb. 6, 2022, 11:56 p.m. OK GNU C++20 (64) TESTS 179 218 2457600
145468266 WeakestTopology F Feb. 6, 2022, 5:45 p.m. OK GNU C++20 (64) TESTS 179 218 2457600
145483821 IsaacMoris F Feb. 6, 2022, 9:57 p.m. OK GNU C++20 (64) TESTS 179 218 3174400
145471593 clyring F Feb. 6, 2022, 6:07 p.m. OK Haskell TESTS 179 904 78848000
145471376 sdr04055 F Feb. 6, 2022, 6:05 p.m. OK MS C++ 2017 TESTS 179 436 6041600
145481481 fatvlad_ F Feb. 6, 2022, 8:41 p.m. OK MS C++ 2017 TESTS 179 436 7270400
145487083 qwerty787788 F Feb. 7, 2022, 12:13 a.m. OK Rust 2021 TESTS 179 233 12185600
145487144 qwerty787788 F Feb. 7, 2022, 12:16 a.m. OK Rust 2021 TESTS 179 249 12185600

remove filters

Back to search problems