Educational Codeforces Round 86 (Rated for 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
1342 Educational Codeforces Round 86 (Rated for Div. 2) FINISHED False 7200 149441111 April 26, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 14210 ) C Yet Another Counting Problem PROGRAMMING math number theory 1700

B'You are given two integers a and b , and q queries. The i -th query consists of two numbers l_i and r_i , and the answer to it is the number of integers x such that l_i <= x <= r_i , and ((x bmod a) bmod b) ne ((x bmod b) bmod a) . Calculate the answer for each query. Recall that y bmod z is the remainder of the division of y by z . For example, 5 bmod 3 = 2 , 7 bmod 8 = 7 , 9 bmod 4 = 1 , 9 bmod 9 = 0 . The first line contains one integer t ( 1 <= t <= 100 ) -- the number of test cases. Then the test cases follow. The first line of each test case contains three integers a , b and q ( 1 <= a, b <= 200 ; 1 <= q <= 500 ). Then q lines follow, each containing two integers l_i and r_i ( 1 <= l_i <= r_i <= 10^{18} ) for the corresponding query. For each test case, print q integers -- the answers to the queries of this test case in the order they appear. '...

Tutorials

76633

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
78426390 JoseTomas01 C April 28, 2020, 9:36 p.m. OK GNU C11 TESTS 67 249 0 1700
78316887 pallavpp C April 27, 2020, 5:33 p.m. OK GNU C11 TESTS 67 265 0 1700
78207210 prashan_yadav C April 26, 2020, 4:30 p.m. OK GNU C11 TESTS 67 265 0 1700
78316290 pallavpp C April 27, 2020, 5:25 p.m. OK GNU C11 TESTS 67 265 0 1700
78204612 alllife C April 26, 2020, 4:25 p.m. OK GNU C11 TESTS 67 265 512000 1700
78211956 Beku.sh C April 26, 2020, 4:45 p.m. OK GNU C11 TESTS 67 265 512000 1700
78397558 hnust_zengwei1 C April 28, 2020, 3:10 p.m. OK GNU C11 TESTS 67 280 307200 1700
78396921 hnust_zengwei1 C April 28, 2020, 3:04 p.m. OK GNU C11 TESTS 67 280 614400 1700
78397126 hnust_zengwei1 C April 28, 2020, 3:06 p.m. OK GNU C11 TESTS 67 295 307200 1700
78397258 hnust_zengwei1 C April 28, 2020, 3:07 p.m. OK GNU C11 TESTS 67 312 307200 1700
78576141 luogu_bot4 C April 30, 2020, 2:28 p.m. OK GNU C++11 TESTS 67 46 0 1700
78323207 okwedook C April 27, 2020, 6:59 p.m. OK GNU C++11 TESTS 67 46 0 1700
78246624 chenshouao C April 27, 2020, 1:33 a.m. OK GNU C++11 TESTS 67 61 0 1700
78207779 wannaPP C April 26, 2020, 4:31 p.m. OK GNU C++11 TESTS 67 61 0 1700
78553760 prodipdatta7 C April 30, 2020, 9:51 a.m. OK GNU C++11 TESTS 67 61 307200 1700
78247094 wang9897 C April 27, 2020, 1:48 a.m. OK GNU C++11 TESTS 67 61 8396800 1700
78652552 zyl072 C May 1, 2020, 12:26 p.m. OK GNU C++11 TESTS 67 62 0 1700
78584158 Megrez.P C April 30, 2020, 4:03 p.m. OK GNU C++11 TESTS 67 62 0 1700
78581695 luogu_bot3 C April 30, 2020, 3:33 p.m. OK GNU C++11 TESTS 67 62 0 1700
78545873 syy123456 C April 30, 2020, 8:01 a.m. OK GNU C++11 TESTS 67 62 0 1700
78264104 QAQAutoMaton C April 27, 2020, 7:48 a.m. OK GNU C++14 TESTS 67 46 4198400 1700
78207409 vishnu_m C April 26, 2020, 4:31 p.m. OK GNU C++14 TESTS 67 61 0 1700
78206996 prashan_yadav C April 26, 2020, 4:30 p.m. OK GNU C++14 TESTS 67 77 0 1700
78318950 namanj401 C April 27, 2020, 5:59 p.m. OK GNU C++14 TESTS 67 77 0 1700
78333958 mahadi97 C April 27, 2020, 10:23 p.m. OK GNU C++14 TESTS 67 77 0 1700
78536007 Rohit_varma C April 30, 2020, 5:33 a.m. OK GNU C++14 TESTS 67 78 0 1700
78619503 swagchicken C May 1, 2020, 3:57 a.m. OK GNU C++14 TESTS 67 78 0 1700
78481014 Protik_7 C April 29, 2020, 1:37 p.m. OK GNU C++14 TESTS 67 78 0 1700
78528079 CallmeChallenger C April 30, 2020, 2:39 a.m. OK GNU C++14 TESTS 67 78 0 1700
78658819 Robin C May 1, 2020, 1:48 p.m. OK GNU C++14 TESTS 67 78 0 1700
78262958 defntvdm C April 27, 2020, 7:33 a.m. OK GNU C++17 TESTS 67 77 0 1700
78284217 me1me1 C April 27, 2020, 11:34 a.m. OK GNU C++17 TESTS 67 77 0 1700
78293131 cjhxqdt C April 27, 2020, 1:08 p.m. OK GNU C++17 TESTS 67 77 0 1700
78529865 danielcm583 C April 30, 2020, 3:06 a.m. OK GNU C++17 TESTS 67 77 0 1700
78374412 person123 C April 28, 2020, 11:13 a.m. OK GNU C++17 TESTS 67 77 204800 1700
78219868 Lenick C April 26, 2020, 5:31 p.m. OK GNU C++17 TESTS 67 77 2560000 1700
78637873 violet.evergarden C May 1, 2020, 9:01 a.m. OK GNU C++17 TESTS 67 78 0 1700
78556828 hzeroto C April 30, 2020, 10:28 a.m. OK GNU C++17 TESTS 67 78 0 1700
78523187 leocjy105 C April 29, 2020, 11:38 p.m. OK GNU C++17 TESTS 67 78 0 1700
78518273 _Anton C April 29, 2020, 9:15 p.m. OK GNU C++17 TESTS 67 78 0 1700
78214488 okwedook C April 26, 2020, 5:02 p.m. OK GNU C++17 (64) TESTS 67 46 0 1700
78239403 yash_daga C April 26, 2020, 9:45 p.m. OK GNU C++17 (64) TESTS 67 61 0 1700
78208112 defntvdm C April 26, 2020, 4:32 p.m. OK GNU C++17 (64) TESTS 67 61 0 1700
78312612 Uosmoy_A. C April 27, 2020, 4:37 p.m. OK GNU C++17 (64) TESTS 67 61 0 1700
78399624 rky673 C April 28, 2020, 3:30 p.m. OK GNU C++17 (64) TESTS 67 62 0 1700
78480760 haruki_K C April 29, 2020, 1:34 p.m. OK GNU C++17 (64) TESTS 67 62 0 1700
78336270 fresco_ferdini C April 27, 2020, 11:40 p.m. OK GNU C++17 (64) TESTS 67 62 0 1700
78360589 alif_cse_ju C April 28, 2020, 8:28 a.m. OK GNU C++17 (64) TESTS 67 62 0 1700
78397595 huangxiaohua C April 28, 2020, 3:10 p.m. OK GNU C++17 (64) TESTS 67 62 0 1700
78399498 rishabh1889 C April 28, 2020, 3:28 p.m. OK GNU C++17 (64) TESTS 67 62 0 1700
78245953 synapse C April 27, 2020, 1:08 a.m. OK Go TESTS 67 187 102400 1700
78307565 armoking C April 27, 2020, 3:37 p.m. OK Go TESTS 67 234 5734400 1700
78555658 dblokhin C April 30, 2020, 10:14 a.m. OK Go TESTS 67 421 5734400 1700
78330810 Orfest C April 27, 2020, 9:04 p.m. OK Haskell TESTS 67 1200 6348800 1700
78274671 DreamInfinite C April 27, 2020, 9:57 a.m. OK Java 11 TESTS 67 218 0 1700
78635781 cribabby C May 1, 2020, 8:32 a.m. OK Java 11 TESTS 67 233 9011200 1700
78207268 slow_AF C April 26, 2020, 4:30 p.m. OK Java 11 TESTS 67 233 9011200 1700
78211282 Anonymous C April 26, 2020, 4:41 p.m. OK Java 11 TESTS 67 249 0 1700
78207928 wabadabakalakaboo C April 26, 2020, 4:31 p.m. OK Java 11 TESTS 67 249 0 1700
78746361 zhsmy_Q C May 1, 2020, 5:18 p.m. OK Java 11 TESTS 67 264 0 1700
78551264 nagabhushan C April 30, 2020, 9:17 a.m. OK Java 11 TESTS 67 264 0 1700
78218032 Leewings C April 26, 2020, 5:19 p.m. OK Java 11 TESTS 67 264 0 1700
78264535 sajith C April 27, 2020, 7:53 a.m. OK Java 11 TESTS 67 265 0 1700
78412695 nickleoden299 C April 28, 2020, 6:03 p.m. OK Java 11 TESTS 67 280 0 1700
78248527 saurabhs1206 C April 27, 2020, 2:33 a.m. OK Java 8 TESTS 67 139 0 1700
78277693 ragnarok001 C April 27, 2020, 10:30 a.m. OK Java 8 TESTS 67 140 0 1700
78328082 K.A.R.M.A C April 27, 2020, 8:15 p.m. OK Java 8 TESTS 67 140 0 1700
78277937 ragnarok001 C April 27, 2020, 10:32 a.m. OK Java 8 TESTS 67 140 0 1700
78382960 MubtasimShahriar C April 28, 2020, 12:41 p.m. OK Java 8 TESTS 67 155 0 1700
78329189 K.A.R.M.A C April 27, 2020, 8:34 p.m. OK Java 8 TESTS 67 155 0 1700
78329018 K.A.R.M.A C April 27, 2020, 8:32 p.m. OK Java 8 TESTS 67 155 0 1700
78383442 MubtasimShahriar C April 28, 2020, 12:46 p.m. OK Java 8 TESTS 67 155 0 1700
78657709 nandit C May 1, 2020, 1:34 p.m. OK Java 8 TESTS 67 155 0 1700
78383024 MubtasimShahriar C April 28, 2020, 12:42 p.m. OK Java 8 TESTS 67 155 0 1700
78516159 DeadInsideOnTest993 C April 29, 2020, 8:35 p.m. OK Kotlin TESTS 67 187 0 1700
78209305 MikasaAckermann C April 26, 2020, 4:33 p.m. OK Kotlin TESTS 67 202 0 1700
78340182 Spheniscine C April 28, 2020, 2:12 a.m. OK Kotlin TESTS 67 249 1126400 1700
78651484 ilmaxwell C May 1, 2020, 12:12 p.m. OK Kotlin TESTS 67 265 716800 1700
78302475 bohuss C April 27, 2020, 2:46 p.m. OK Kotlin TESTS 67 358 512000 1700
78313476 dkozak94 C April 27, 2020, 4:49 p.m. OK Kotlin TESTS 67 389 716800 1700
78242981 abdukodir C April 26, 2020, 11:24 p.m. OK Kotlin TESTS 67 577 1433600 1700
78344197 mah_python C April 28, 2020, 4:01 a.m. OK Kotlin TESTS 67 623 204800 1700
78428200 MaxPylypovych C April 28, 2020, 10:22 p.m. OK Kotlin TESTS 67 717 307200 1700
78254347 szzz- C April 27, 2020, 4:44 a.m. OK Mono C# TESTS 67 140 9113600 1700
78500882 InCorCadit C April 29, 2020, 5:01 p.m. OK Mono C# TESTS 67 280 3072000 1700
78334460 thetansquared C April 27, 2020, 10:38 p.m. OK Mono C# TESTS 67 327 3276800 1700
78270629 PPons C April 27, 2020, 9:09 a.m. OK Mono C# TESTS 67 373 10137600 1700
78274982 kuuso C April 27, 2020, 10:01 a.m. OK Mono C# TESTS 67 405 9625600 1700
78254588 xh_Dopamine C April 27, 2020, 4:49 a.m. OK MS C++ 2017 TESTS 67 93 0 1700
78528631 Accelerating C April 30, 2020, 2:55 a.m. OK MS C++ 2017 TESTS 67 93 0 1700
78208437 dundae C April 26, 2020, 4:32 p.m. OK MS C++ 2017 TESTS 67 93 0 1700
78205271 2019030005407 C April 26, 2020, 4:27 p.m. OK MS C++ 2017 TESTS 67 93 0 1700
78243418 BingHui C April 26, 2020, 11:38 p.m. OK MS C++ 2017 TESTS 67 109 0 1700
78240214 P___ C April 26, 2020, 10:05 p.m. OK MS C++ 2017 TESTS 67 124 204800 1700
78405960 Kirill456Z C April 28, 2020, 4:38 p.m. OK MS C++ 2017 TESTS 67 124 307200 1700
78254593 Laaahu_ C April 27, 2020, 4:49 a.m. OK MS C++ 2017 TESTS 67 124 819200 1700
78252260 Libra_Glow C April 27, 2020, 4 a.m. OK MS C++ 2017 TESTS 67 171 716800 1700
78250976 Libra_Glow C April 27, 2020, 3:33 a.m. OK MS C++ 2017 TESTS 67 187 716800 1700
78222298 xhhmylxrd C April 26, 2020, 5:56 p.m. OK PascalABC.NET TESTS 67 950 307200 1700
78239376 snape_here C April 26, 2020, 9:44 p.m. OK PyPy 2 TESTS 67 280 7680000 1700
78262416 mo-hit C April 27, 2020, 7:26 a.m. OK PyPy 2 TESTS 67 327 16588800 1700
78426072 yougaindra C April 28, 2020, 9:29 p.m. OK PyPy 2 TESTS 67 499 6860800 1700
78484032 dunjen_master C April 29, 2020, 2:09 p.m. OK PyPy 2 TESTS 67 576 9523200 1700
78314651 zaceleiseliakai C April 27, 2020, 5:05 p.m. OK PyPy 2 TESTS 67 592 9113600 1700
78297780 chaudhary_19 C April 27, 2020, 1:59 p.m. OK PyPy 3 TESTS 67 326 9830400 1700
78450193 juppy C April 29, 2020, 7:25 a.m. OK PyPy 3 TESTS 67 327 9216000 1700
78237715 gintoki_s C April 26, 2020, 9:10 p.m. OK PyPy 3 TESTS 67 342 7168000 1700
78266354 snape_here C April 27, 2020, 8:15 a.m. OK PyPy 3 TESTS 67 342 9011200 1700
78231748 robert_nabil20022002 C April 26, 2020, 7:48 p.m. OK PyPy 3 TESTS 67 343 9318400 1700
78306256 vishwesh20 C April 27, 2020, 3:23 p.m. OK PyPy 3 TESTS 67 389 10240000 1700
78206901 wilkinson C April 26, 2020, 4:30 p.m. OK PyPy 3 TESTS 67 405 9523200 1700
78290818 PracticeAccountICL C April 27, 2020, 12:42 p.m. OK PyPy 3 TESTS 67 420 10854400 1700
78355083 neweekoff C April 28, 2020, 7:09 a.m. OK PyPy 3 TESTS 67 452 9625600 1700
78304440 aberent C April 27, 2020, 3:06 p.m. OK PyPy 3 TESTS 67 452 9830400 1700
78209046 otaran C April 26, 2020, 4:33 p.m. OK Python 2 TESTS 67 404 512000 1700
78618436 ComptineDunAutreEte C May 1, 2020, 3:30 a.m. OK Python 2 TESTS 67 405 0 1700
78283318 shubhankarsharma00 C April 27, 2020, 11:25 a.m. OK Python 2 TESTS 67 436 0 1700
78247730 khoatran_viet C April 27, 2020, 2:08 a.m. OK Python 2 TESTS 67 483 5324800 1700
78244767 jooj C April 27, 2020, 12:25 a.m. OK Python 2 TESTS 67 499 5324800 1700
78267384 SoSooding C April 27, 2020, 8:28 a.m. OK Python 2 TESTS 67 2074 5324800 1700
78541104 ssreeramj C April 30, 2020, 6:52 a.m. OK Python 3 TESTS 67 311 512000 1700
78219177 bhavik07 C April 26, 2020, 5:25 p.m. OK Python 3 TESTS 67 342 409600 1700
78227653 Alex_Savitskiy C April 26, 2020, 6:55 p.m. OK Python 3 TESTS 67 358 409600 1700
78207640 black_bird101 C April 26, 2020, 4:31 p.m. OK Python 3 TESTS 67 358 614400 1700
78218053 Nhemisirmkow C April 26, 2020, 5:20 p.m. OK Python 3 TESTS 67 374 1228800 1700
78496544 marroncastle C April 29, 2020, 4:11 p.m. OK Python 3 TESTS 67 389 307200 1700
78495955 marroncastle C April 29, 2020, 4:05 p.m. OK Python 3 TESTS 67 389 307200 1700
78212073 jatinpapreja C April 26, 2020, 4:45 p.m. OK Python 3 TESTS 67 390 307200 1700
78210312 redpokerchip C April 26, 2020, 4:34 p.m. OK Python 3 TESTS 67 390 1740800 1700
78322752 akay_99 C April 27, 2020, 6:52 p.m. OK Python 3 TESTS 67 405 307200 1700
78224388 Roka C April 26, 2020, 6:21 p.m. OK Rust TESTS 67 233 2150400 1700
78325640 Kaa C April 27, 2020, 7:35 p.m. OK Rust TESTS 67 811 1638400 1700
78306664 IvanDyachenko C April 27, 2020, 3:27 p.m. OK Scala TESTS 67 794 102400 1700
78245836 IvanDyachenko C April 27, 2020, 1:04 a.m. OK Scala TESTS 67 1154 307200 1700

remove filters

Back to search problems