Codeforces Round 813 (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
1712 Codeforces Round 813 (Div. 2) FINISHED False 8100 76865063 Aug. 13, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1393 ) E2 LCM Sum (hard version) PROGRAMMING combinatorics data structures math number theory two pointers

B'This version of the problem differs from the previous one only in the constraint on t . You can make hacks only if both versions of the problem are solved. You are given two positive integers l and r . Count the number of distinct triplets of integers (i, j, k) such that l <= i < j < k <= r and operatorname{lcm}(i,j,k) ge i + j + k . Here operatorname{lcm}(i, j, k) denotes the least common multiple (LCM) of integers i , j , and k . Each test contains multiple test cases. The first line contains the number of test cases t ( bf{1 <= t <= 10^5} ). Description of the test cases follows. The only line for each test case contains two integers l and r ( 1 <= l <= r <= 2 cdot 10^5 , l + 2 <= r ). For each test case print one integer -- the number of suitable triplets. In the first test case, there are 3 suitable triplets: In the second test case, there is 1 suitable triplet: '...

Tutorials

Codeforces Round #813 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
168171332 temp06 E2 Aug. 13, 2022, 4:30 p.m. OK GNU C++14 TESTS 14 156 5222400
168219156 jrscy E2 Aug. 14, 2022, 3:22 a.m. OK GNU C++14 TESTS 14 187 7987200
168178640 zmj2008AKIOI E2 Aug. 13, 2022, 4:49 p.m. OK GNU C++14 TESTS 14 234 8704000
168224003 bin9638 E2 Aug. 14, 2022, 4:52 a.m. OK GNU C++14 TESTS 14 405 23142400
168178264 BARBARIANNNNN E2 Aug. 13, 2022, 4:49 p.m. OK GNU C++14 TESTS 14 436 46694400
168223702 wuhudsm E2 Aug. 14, 2022, 4:47 a.m. OK GNU C++14 TESTS 14 468 5734400
168224359 Acfboy E2 Aug. 14, 2022, 4:57 a.m. OK GNU C++14 TESTS 14 468 15462400
168181420 Kaitokid E2 Aug. 13, 2022, 5:32 p.m. OK GNU C++14 TESTS 14 529 24064000
168223790 Leonador E2 Aug. 14, 2022, 4:48 a.m. OK GNU C++14 TESTS 14 592 11366400
168217122 ZillionX E2 Aug. 14, 2022, 2:40 a.m. OK GNU C++14 TESTS 14 608 10137600
168184586 priemniygeniy E2 Aug. 13, 2022, 5:51 p.m. OK GNU C++17 TESTS 14 140 4403200
168172187 CWB_the_most_powerful E2 Aug. 13, 2022, 4:32 p.m. OK GNU C++17 TESTS 14 156 6451200
168196494 G_X_J E2 Aug. 13, 2022, 7:35 p.m. OK GNU C++17 TESTS 14 187 7168000
168177312 Atreus E2 Aug. 13, 2022, 4:47 p.m. OK GNU C++17 TESTS 14 187 8601600
168226270 _BottomCoder_ E2 Aug. 14, 2022, 5:28 a.m. OK GNU C++17 TESTS 14 202 12390400
168220219 _BottomCoder_ E2 Aug. 14, 2022, 3:42 a.m. OK GNU C++17 TESTS 14 202 12390400
168195240 LLL_2820 E2 Aug. 13, 2022, 7:21 p.m. OK GNU C++17 TESTS 14 202 14336000
168182768 magga E2 Aug. 13, 2022, 5:39 p.m. OK GNU C++17 TESTS 14 295 9625600
168220242 rrta E2 Aug. 14, 2022, 3:42 a.m. OK GNU C++17 TESTS 14 296 16998400
168217491 T_yunhui E2 Aug. 14, 2022, 2:48 a.m. OK GNU C++17 TESTS 14 327 27136000
168220246 Cherumi E2 Aug. 14, 2022, 3:42 a.m. OK GNU C++17 (64) TESTS 14 140 4403200
168181662 TheLostCookie E2 Aug. 13, 2022, 5:33 p.m. OK GNU C++17 (64) TESTS 14 140 5632000
168225997 alif_cse_ju E2 Aug. 14, 2022, 5:24 a.m. OK GNU C++17 (64) TESTS 14 155 10956800
168197289 BruceKZ E2 Aug. 13, 2022, 7:45 p.m. OK GNU C++17 (64) TESTS 14 171 13619200
168220221 Cherumi E2 Aug. 14, 2022, 3:42 a.m. OK GNU C++17 (64) TESTS 14 343 33587200
168227793 wuhypzz E2 Aug. 14, 2022, 5:49 a.m. OK GNU C++17 (64) TESTS 14 358 33792000
168219395 brown_toad E2 Aug. 14, 2022, 3:27 a.m. OK GNU C++17 (64) TESTS 14 436 11264000
168212149 xiaoziyao E2 Aug. 14, 2022, 12:46 a.m. OK GNU C++17 (64) TESTS 14 514 14950400
168173456 BucketPotato E2 Aug. 13, 2022, 4:36 p.m. OK GNU C++17 (64) TESTS 14 561 50176000
168171567 _su1sen E2 Aug. 13, 2022, 4:31 p.m. OK GNU C++17 (64) TESTS 14 623 53452800
168211764 forgothandle E2 Aug. 14, 2022, 12:35 a.m. OK GNU C++20 (64) TESTS 14 93 4403200
168214446 -is-this-fft- E2 Aug. 14, 2022, 1:43 a.m. OK GNU C++20 (64) TESTS 14 109 17100800
168198989 A_G E2 Aug. 13, 2022, 8:06 p.m. OK GNU C++20 (64) TESTS 14 124 10137600
168218329 rt3 E2 Aug. 14, 2022, 3:05 a.m. OK GNU C++20 (64) TESTS 14 139 11673600
168219629 rankYu E2 Aug. 14, 2022, 3:32 a.m. OK GNU C++20 (64) TESTS 14 140 8089600
168199812 kfqg E2 Aug. 13, 2022, 8:17 p.m. OK GNU C++20 (64) TESTS 14 140 11059200
168197335 Bruce12138 E2 Aug. 13, 2022, 7:45 p.m. OK GNU C++20 (64) TESTS 14 140 13619200
168218115 rt3 E2 Aug. 14, 2022, 3:02 a.m. OK GNU C++20 (64) TESTS 14 171 11673600
168224068 ComplexPug E2 Aug. 14, 2022, 4:53 a.m. OK GNU C++20 (64) TESTS 14 171 72908800
168181597 PrideBlack E2 Aug. 13, 2022, 5:33 p.m. OK GNU C++20 (64) TESTS 14 187 7987200
168201937 Dukkha E2 Aug. 13, 2022, 8:48 p.m. OK Java 17 TESTS 14 1076 2252800
168172296 top27only E2 Aug. 13, 2022, 4:33 p.m. OK Kotlin 1.6 TESTS 14 1762 204083200
168206504 r57shell E2 Aug. 13, 2022, 10:09 p.m. OK MS C++ 2017 TESTS 14 624 40243200
168205504 r57shell E2 Aug. 13, 2022, 9:50 p.m. OK MS C++ 2017 TESTS 14 2370 257740800

remove filters

Back to search problems