Codeforces Round 830 (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
1732 Codeforces Round 830 (Div. 2) FINISHED False 7200 70660463 Oct. 23, 2022, 10:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 468 ) E Location PROGRAMMING data structures dp 2800

B'You are given two arrays of integers a_1, a_2, ldots, a_n and b_1, b_2, ldots, b_n . You need to handle q queries of the following two types: In this problem gcd(x, y) denotes the greatest common divisor of x and y , and operatorname{lcm}(x, y) denotes the least common multiple of x and y . The first line contains two integers n and q ( 1 <= q n, q <= q 5 cdot 10^4 ) -- the number of numbers in the arrays a and b and the number of queries. The second line contains n integers a_1, a_2, ldots, a_n ( 1 <= q a_i <= q 5 cdot 10^4 ) -- the elements of the array a . The third line contains n integers b_1, b_2, ldots, b_n ( 1 <= q b_i <= q 5 cdot 10^4 ) -- the elements of the array b . Then q lines follow, j -th of which starts with an integer t_j ( 1 <= q t_j <= q 2 ) and means that the j -th query has type t_j . If t_j = 1 , it is followed by three integers l_j , r_j , and x_j ( 1 <= q l_j <= q r_j <= q n , 1 <= q x_j <= q 5 cdot 10^4 ). If t_j = 2 , it is followed by two integers l_j and r_j ( 1 <= q l_j <= q r_j <= q n ). It is guaranteed that there is at least one query of type 2 . For each query of the second type, output the minimum value of the expression. In the first example: In the second: '...

Tutorials

108327

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
177703453 Y_B_X E Oct. 23, 2022, 11:25 p.m. OK GNU C++14 TESTS 63 1590 63180800 2800
177651428 Y_B_X E Oct. 23, 2022, 1:42 p.m. OK GNU C++14 TESTS 63 1669 63180800 2800
177651260 Y_B_X E Oct. 23, 2022, 1:41 p.m. OK GNU C++14 TESTS 63 1684 57139200 2800
177651598 Y_B_X E Oct. 23, 2022, 1:43 p.m. OK GNU C++14 TESTS 63 1684 63180800 2800
177720247 Obsession_de_Population E Oct. 24, 2022, 5:21 a.m. OK GNU C++14 TESTS 63 1903 108748800 2800
177651054 Y_B_X E Oct. 23, 2022, 1:40 p.m. OK GNU C++14 TESTS 63 1918 49152000 2800
177720166 Obsession_de_Population E Oct. 24, 2022, 5:20 a.m. OK GNU C++14 TESTS 63 1949 108748800 2800
177653487 wsyhb E Oct. 23, 2022, 1:55 p.m. OK GNU C++14 TESTS 63 2230 208486400 2800
177650750 Y_B_X E Oct. 23, 2022, 1:38 p.m. OK GNU C++14 TESTS 63 2355 41164800 2800
177722003 glegous E Oct. 24, 2022, 5:47 a.m. OK GNU C++14 TESTS 63 2355 312012800 2800
177674618 DerekFeng E Oct. 23, 2022, 4:44 p.m. OK GNU C++17 TESTS 63 1107 201830400 2800
177653979 chemthan E Oct. 23, 2022, 1:58 p.m. OK GNU C++17 TESTS 63 1528 189747200 2800
177654357 chemthan E Oct. 23, 2022, 2 p.m. OK GNU C++17 TESTS 63 1543 189747200 2800
177654276 Intercept E Oct. 23, 2022, 2 p.m. OK GNU C++17 TESTS 63 2152 311296000 2800
177630246 suclert E Oct. 23, 2022, 11:22 a.m. OK GNU C++17 TESTS 62 2417 312012800 2800
177654552 chemthan E Oct. 23, 2022, 2:02 p.m. OK GNU C++17 TESTS 63 2589 376832000 2800
177650489 mdshadesh E Oct. 23, 2022, 1:36 p.m. OK GNU C++17 TESTS 63 2745 35123200 2800
177653663 chemthan E Oct. 23, 2022, 1:56 p.m. OK GNU C++17 TESTS 63 2870 376832000 2800
177714189 Psaily E Oct. 24, 2022, 3:32 a.m. OK GNU C++17 TESTS 63 2932 107008000 2800
177640667 RGB_ICPC7 E Oct. 23, 2022, 11:59 a.m. OK GNU C++17 TESTS 62 2932 107110400 2800
177718915 CrTsIr E Oct. 24, 2022, 5 a.m. OK GNU C++17 (64) TESTS 63 842 186880000 2800
177695805 kotatsugame E Oct. 23, 2022, 8:19 p.m. OK GNU C++17 (64) TESTS 63 1777 56422400 2800
177695159 kotatsugame E Oct. 23, 2022, 8:09 p.m. OK GNU C++17 (64) TESTS 63 1949 56422400 2800
177714397 ezoilearner E Oct. 24, 2022, 3:36 a.m. OK GNU C++17 (64) TESTS 63 2121 38400000 2800
177664059 Bolshevik E Oct. 23, 2022, 3:14 p.m. OK GNU C++17 (64) TESTS 63 2214 110489600 2800
177709028 ZongDeChuangSiYiGeBa E Oct. 24, 2022, 2:02 a.m. OK GNU C++17 (64) TESTS 63 2277 172441600 2800
177709121 ZongDeChuangSiYiGeBa E Oct. 24, 2022, 2:04 a.m. OK GNU C++17 (64) TESTS 63 2323 172441600 2800
177709071 ZongDeChuangSiYiGeBa E Oct. 24, 2022, 2:03 a.m. OK GNU C++17 (64) TESTS 63 2386 172441600 2800
177704267 q-w-q-w-q E Oct. 23, 2022, 11:50 p.m. OK GNU C++17 (64) TESTS 63 2433 80384000 2800
177709269 ZongDeChuangSiYiGeBa E Oct. 24, 2022, 2:08 a.m. OK GNU C++17 (64) TESTS 63 2449 252620800 2800
177682944 HolyK E Oct. 23, 2022, 6:03 p.m. OK GNU C++20 (64) TESTS 63 858 164044800 2800
177718364 CrTsIr E Oct. 24, 2022, 4:51 a.m. OK GNU C++20 (64) TESTS 63 998 142745600 2800
177718836 sjc061031 E Oct. 24, 2022, 4:59 a.m. OK GNU C++20 (64) TESTS 63 1169 205312000 2800
177715656 sjc061031 E Oct. 24, 2022, 3:59 a.m. OK GNU C++20 (64) TESTS 63 1263 206131200 2800
177719950 ducati E Oct. 24, 2022, 5:17 a.m. OK GNU C++20 (64) TESTS 63 1294 326656000 2800
177720016 ducati E Oct. 24, 2022, 5:18 a.m. OK GNU C++20 (64) TESTS 63 1309 326656000 2800
177715947 sjc061031 E Oct. 24, 2022, 4:05 a.m. OK GNU C++20 (64) TESTS 63 1341 205926400 2800
177714936 sjc061031 E Oct. 24, 2022, 3:46 a.m. OK GNU C++20 (64) TESTS 63 1388 368537600 2800
177715031 sjc061031 E Oct. 24, 2022, 3:48 a.m. OK GNU C++20 (64) TESTS 63 1419 408576000 2800
177714979 sjc061031 E Oct. 24, 2022, 3:47 a.m. OK GNU C++20 (64) TESTS 63 1434 368537600 2800

remove filters

Back to search problems