Codeforces Round 815 (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
1720 Codeforces Round 815 (Div. 2) FINISHED False 7200 70993499 Aug. 18, 2022, 1:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 22505 ) A Burenka Plays with Fractions PROGRAMMING math number theory

B"Burenka came to kindergarden. This kindergarten is quite strange, so each kid there receives two fractions ( frac{a}{b} and frac{c}{d} ) with integer numerators and denominators. Then children are commanded to play with their fractions. Burenka is a clever kid, so she noticed that when she claps once, she can multiply numerator or denominator of one of her two fractions by any integer of her choice (but she can't multiply denominators by 0 ). Now she wants know the minimal number of claps to make her fractions equal (by value). Please help her and find the required number of claps! The first line contains one integer t ( 1 <= q t <= q 10^4 ) -- the number of test cases. Then follow the descriptions of each test case. The only line of each test case contains four integers a , b , c and d ( 0 <= q a, c <= q 10^9 , 1 <= q b, d <= q 10^9 ) -- numerators and denominators of the fractions given to Burenka initially. For each test case print a single integer -- the minimal number of claps Burenka needs to make her fractions equal. In the first case, Burenka can multiply c by 2 , then the fractions will be equal. In the second case, fractions are already equal. In the third case, Burenka can multiply a by 4 , then b by 3 . Then the fractions will be equal ( frac{1 cdot 4}{2 cdot 3} = frac{2}{3} ). "...

Tutorials

Codeforces Round #815 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
168896901 Muhammad.exe A Aug. 18, 2022, 9:13 p.m. OK C# 10 TESTS 39 77 3072000
168860707 ranahamid A Aug. 18, 2022, 3:26 p.m. OK C# 10 TESTS 39 78 3174400
168885334 Arshadshahoriar A Aug. 18, 2022, 6:44 p.m. OK C# 10 TESTS 39 109 2867200
168892310 Antroz A Aug. 18, 2022, 8:02 p.m. OK C# 10 TESTS 39 109 3072000
168905009 arafamin A Aug. 19, 2022, 12:41 a.m. OK C# 8 TESTS 39 108 2969600
168916877 RGodz A Aug. 19, 2022, 4:17 a.m. OK Clang++17 Diagnostics TESTS 39 296 0
168909869 TOKOMI A Aug. 19, 2022, 2:21 a.m. OK Clang++20 Diagnostics TESTS 39 46 0
168885544 CR7vsMESSI A Aug. 18, 2022, 6:47 p.m. OK Clang++20 Diagnostics TESTS 39 202 0
168889066 momoyuu A Aug. 18, 2022, 7:25 p.m. OK Clang++20 Diagnostics TESTS 39 311 0
168907564 Tawfica_Bhuiyan A Aug. 19, 2022, 1:36 a.m. OK GNU C11 TESTS 39 46 0
168907712 ArthurMorgan1 A Aug. 19, 2022, 1:40 a.m. OK GNU C11 TESTS 39 61 0
168890488 Cloud09 A Aug. 18, 2022, 7:41 p.m. OK GNU C11 TESTS 39 61 0
168890460 lifelike01 A Aug. 18, 2022, 7:40 p.m. OK GNU C11 TESTS 39 61 0
168889137 kushalguptadps1 A Aug. 18, 2022, 7:26 p.m. OK GNU C11 TESTS 39 62 0
168896331 Aahad810 A Aug. 18, 2022, 9:03 p.m. OK GNU C11 TESTS 39 62 0
168908659 Leasier A Aug. 19, 2022, 1:58 a.m. OK GNU C11 TESTS 39 62 0
168913640 CSonic A Aug. 19, 2022, 3:24 a.m. OK GNU C++14 TESTS 39 15 0
168913259 bijalwan_2000 A Aug. 19, 2022, 3:19 a.m. OK GNU C++14 TESTS 39 15 0
168913100 Dilute A Aug. 19, 2022, 3:16 a.m. OK GNU C++14 TESTS 39 15 0
168916262 ZY_JK A Aug. 19, 2022, 4:07 a.m. OK GNU C++14 TESTS 39 15 0
168915053 TurtleZW A Aug. 19, 2022, 3:47 a.m. OK GNU C++14 TESTS 39 15 0
168914639 Serendipity_Gary A Aug. 19, 2022, 3:39 a.m. OK GNU C++14 TESTS 39 15 0
168923208 ztl58553116 A Aug. 19, 2022, 5:43 a.m. OK GNU C++14 TESTS 39 15 0
168917392 Owaiter A Aug. 19, 2022, 4:26 a.m. OK GNU C++14 TESTS 39 15 0
168917015 arrryan_05 A Aug. 19, 2022, 4:19 a.m. OK GNU C++14 TESTS 39 15 0
168916563 happycrazzy A Aug. 19, 2022, 4:12 a.m. OK GNU C++14 TESTS 39 15 0
168922529 ooh_my_code A Aug. 19, 2022, 5:36 a.m. OK GNU C++17 TESTS 39 15 0
168922451 Amoo_Amir A Aug. 19, 2022, 5:35 a.m. OK GNU C++17 TESTS 39 15 0
168922362 Vivekvar_19 A Aug. 19, 2022, 5:34 a.m. OK GNU C++17 TESTS 39 15 0
168924584 ltq525 A Aug. 19, 2022, 5:58 a.m. OK GNU C++17 TESTS 39 15 0
168924677 terrydeng666 A Aug. 19, 2022, 5:59 a.m. OK GNU C++17 TESTS 39 15 0
168924197 Divya_Patel A Aug. 19, 2022, 5:54 a.m. OK GNU C++17 TESTS 39 15 0
168924176 loukik.naik A Aug. 19, 2022, 5:54 a.m. OK GNU C++17 TESTS 39 15 0
168924098 Beginner343 A Aug. 19, 2022, 5:53 a.m. OK GNU C++17 TESTS 39 15 0
168922815 Kiro4ka228 A Aug. 19, 2022, 5:39 a.m. OK GNU C++17 TESTS 39 15 0
168922654 _Ifty_ A Aug. 19, 2022, 5:37 a.m. OK GNU C++17 TESTS 39 15 0
168916655 Nirmit06 A Aug. 19, 2022, 4:13 a.m. OK GNU C++17 (64) TESTS 39 15 0
168924824 sabarnait24 A Aug. 19, 2022, 6:01 a.m. OK GNU C++17 (64) TESTS 39 15 0
168921503 AnuMax A Aug. 19, 2022, 5:23 a.m. OK GNU C++17 (64) TESTS 39 15 0
168919700 SANKI A Aug. 19, 2022, 5:01 a.m. OK GNU C++17 (64) TESTS 39 15 0
168917326 Ahnaf_ A Aug. 19, 2022, 4:25 a.m. OK GNU C++17 (64) TESTS 39 15 0
168915555 Nirvan147 A Aug. 19, 2022, 3:55 a.m. OK GNU C++17 (64) TESTS 39 15 0
168914248 Leonard A Aug. 19, 2022, 3:33 a.m. OK GNU C++17 (64) TESTS 39 15 0
168913384 No-Rain A Aug. 19, 2022, 3:20 a.m. OK GNU C++17 (64) TESTS 39 15 0
168912473 Messywind A Aug. 19, 2022, 3:06 a.m. OK GNU C++17 (64) TESTS 39 15 0
168908995 Sakib62 A Aug. 19, 2022, 2:04 a.m. OK GNU C++17 (64) TESTS 39 15 0
168923087 djay24 A Aug. 19, 2022, 5:42 a.m. OK GNU C++20 (64) TESTS 39 15 0
168922860 aniket145 A Aug. 19, 2022, 5:39 a.m. OK GNU C++20 (64) TESTS 39 15 0
168922392 anurag2121 A Aug. 19, 2022, 5:34 a.m. OK GNU C++20 (64) TESTS 39 15 0
168923199 yuuuuuuu09 A Aug. 19, 2022, 5:43 a.m. OK GNU C++20 (64) TESTS 39 15 0
168923583 Niloy_Das_19 A Aug. 19, 2022, 5:47 a.m. OK GNU C++20 (64) TESTS 39 15 0
168923602 xubo123 A Aug. 19, 2022, 5:48 a.m. OK GNU C++20 (64) TESTS 39 15 0
168923867 link_nlf A Aug. 19, 2022, 5:51 a.m. OK GNU C++20 (64) TESTS 39 15 0
168923983 IUHAquarius A Aug. 19, 2022, 5:52 a.m. OK GNU C++20 (64) TESTS 39 15 0
168924133 kunjthakkar65 A Aug. 19, 2022, 5:53 a.m. OK GNU C++20 (64) TESTS 39 15 0
168924795 Niloy_Das_19 A Aug. 19, 2022, 6:01 a.m. OK GNU C++20 (64) TESTS 39 15 0
168870161 koqo A Aug. 18, 2022, 4:45 p.m. OK Go TESTS 39 46 921600
168904323 nis1234 A Aug. 19, 2022, 12:22 a.m. OK Java 11 TESTS 39 171 0
168886900 PotatoLord A Aug. 18, 2022, 7:02 p.m. OK Java 11 TESTS 39 171 0
168880554 iamsoumik A Aug. 18, 2022, 6 p.m. OK Java 11 TESTS 39 171 0
168910177 rajneesh.osho A Aug. 19, 2022, 2:26 a.m. OK Java 11 TESTS 39 186 0
168878622 Prime369 A Aug. 18, 2022, 5:45 p.m. OK Java 11 TESTS 39 186 0
168873949 IanISam A Aug. 18, 2022, 5:10 p.m. OK Java 11 TESTS 39 186 0
168909260 VicG A Aug. 19, 2022, 2:08 a.m. OK Java 11 TESTS 39 187 0
168888650 tushar19280 A Aug. 18, 2022, 7:21 p.m. OK Java 11 TESTS 39 187 0
168874890 jyoti360 A Aug. 18, 2022, 5:17 p.m. OK Java 11 TESTS 39 187 0
168873554 princeayush04 A Aug. 18, 2022, 5:07 p.m. OK Java 11 TESTS 39 187 0
168885576 CrinklyGolem A Aug. 18, 2022, 6:47 p.m. OK Java 17 TESTS 39 187 614400
168898231 matzhao A Aug. 18, 2022, 9:42 p.m. OK Java 17 TESTS 39 217 512000
168869920 Pratham2908 A Aug. 18, 2022, 4:44 p.m. OK Java 17 TESTS 39 218 512000
168869619 harman1148 A Aug. 18, 2022, 4:43 p.m. OK Java 17 TESTS 39 218 716800
168911622 tony4875 A Aug. 19, 2022, 2:51 a.m. OK Java 17 TESTS 39 264 614400
168889687 dk.shivam916 A Aug. 18, 2022, 7:32 p.m. OK Java 17 TESTS 39 264 921600
168884043 Adarsh_Raj8 A Aug. 18, 2022, 6:31 p.m. OK Java 17 TESTS 39 296 716800
168916548 kiethuynh997 A Aug. 19, 2022, 4:12 a.m. OK Java 17 TESTS 39 296 1024000
168879740 Vibhu09 A Aug. 18, 2022, 5:53 p.m. OK Java 17 TESTS 39 326 614400
168893381 AdityaGupta19 A Aug. 18, 2022, 8:18 p.m. OK Java 17 TESTS 39 327 716800
168900611 RahulAhuja2901 A Aug. 18, 2022, 10:39 p.m. OK Java 8 TESTS 39 93 0
168910388 frey4 A Aug. 19, 2022, 2:29 a.m. OK Java 8 TESTS 39 109 0
168903159 Diaa12360 A Aug. 18, 2022, 11:52 p.m. OK Java 8 TESTS 39 109 0
168902126 Yousef_Badr A Aug. 18, 2022, 11:22 p.m. OK Java 8 TESTS 39 109 0
168900557 RahulAhuja2901 A Aug. 18, 2022, 10:38 p.m. OK Java 8 TESTS 39 109 0
168897286 xiuyuan-cao A Aug. 18, 2022, 9:21 p.m. OK Java 8 TESTS 39 109 0
168894948 javaisbetter A Aug. 18, 2022, 8:41 p.m. OK Java 8 TESTS 39 109 0
168893815 adi_7861 A Aug. 18, 2022, 8:24 p.m. OK Java 8 TESTS 39 109 0
168894823 javaisbetter A Aug. 18, 2022, 8:39 p.m. OK Java 8 TESTS 39 124 0
168875866 ahmedTarek28 A Aug. 18, 2022, 5:23 p.m. OK Java 8 TESTS 39 124 0
168912671 Alisafe A Aug. 19, 2022, 3:09 a.m. OK Kotlin 1.6 TESTS 39 327 0
168861774 Sanjana_naik29 A Aug. 18, 2022, 3:29 p.m. OK MS C++ 2017 TESTS 39 46 0
168893678 khrystyna_dol A Aug. 18, 2022, 8:22 p.m. OK MS C++ 2017 TESTS 39 46 102400
168876448 PyDi_MEHT A Aug. 18, 2022, 5:28 p.m. OK MS C++ 2017 TESTS 39 46 204800
168921688 vineet11 A Aug. 19, 2022, 5:25 a.m. OK MS C++ 2017 TESTS 39 77 0
168878197 Tan2K A Aug. 18, 2022, 5:41 p.m. OK MS C++ 2017 TESTS 39 77 0
168875899 cptahahab A Aug. 18, 2022, 5:24 p.m. OK MS C++ 2017 TESTS 39 77 0
168871408 teddybear2503 A Aug. 18, 2022, 4:53 p.m. OK MS C++ 2017 TESTS 39 77 0
168860765 ShanMaitzz31 A Aug. 18, 2022, 3:26 p.m. OK MS C++ 2017 TESTS 39 77 0
168860626 justc_o_d_e A Aug. 18, 2022, 3:26 p.m. OK MS C++ 2017 TESTS 39 77 0
168862346 cchung A Aug. 18, 2022, 3:30 p.m. OK MS C++ 2017 TESTS 39 78 0
168891284 chrisc A Aug. 18, 2022, 7:50 p.m. OK Node.js TESTS 39 327 6144000
168902620 WalrusRamen21 A Aug. 18, 2022, 11:38 p.m. OK PHP TESTS 39 61 0
168873269 1_2_3_4_5_9 A Aug. 18, 2022, 5:05 p.m. OK PyPy 2 TESTS 39 171 7987200
168892011 abcsumit A Aug. 18, 2022, 7:59 p.m. OK PyPy 3 TESTS 39 155 6553600
168873769 abineth A Aug. 18, 2022, 5:08 p.m. OK PyPy 3 TESTS 39 155 6963200
168876522 MohamedHamed123 A Aug. 18, 2022, 5:28 p.m. OK PyPy 3 TESTS 39 171 7782400
168896909 grawlixes A Aug. 18, 2022, 9:13 p.m. OK PyPy 3 TESTS 39 248 10240000
168876732 depressed_UG A Aug. 18, 2022, 5:30 p.m. OK PyPy 3 TESTS 39 249 7987200
168887442 NotGil A Aug. 18, 2022, 7:07 p.m. OK PyPy 3 TESTS 39 280 7372800
168883348 yashsarda2002 A Aug. 18, 2022, 6:25 p.m. OK PyPy 3 TESTS 39 296 7168000
168881542 JustJie A Aug. 18, 2022, 6:08 p.m. OK PyPy 3 TESTS 39 296 7372800
168872651 chicosena A Aug. 18, 2022, 5:01 p.m. OK PyPy 3 TESTS 39 296 7372800
168870293 WHg00 A Aug. 18, 2022, 4:46 p.m. OK PyPy 3 TESTS 39 296 7372800
168880903 IkshitG A Aug. 18, 2022, 6:03 p.m. OK PyPy 3-64 TESTS 39 108 5734400
168884234 iska_terminator A Aug. 18, 2022, 6:33 p.m. OK PyPy 3-64 TESTS 39 108 7065600
168910679 InariInDream A Aug. 19, 2022, 2:35 a.m. OK PyPy 3-64 TESTS 39 108 7168000
168913193 Keval_78 A Aug. 19, 2022, 3:18 a.m. OK PyPy 3-64 TESTS 39 109 6963200
168898282 ASawe2.6Main A Aug. 18, 2022, 9:43 p.m. OK PyPy 3-64 TESTS 39 109 9011200
168880944 Code_Breaker101 A Aug. 18, 2022, 6:03 p.m. OK PyPy 3-64 TESTS 39 109 9011200
168891787 dunkin_shepherd A Aug. 18, 2022, 7:56 p.m. OK PyPy 3-64 TESTS 39 109 9216000
168868992 biglunchdude A Aug. 18, 2022, 4:40 p.m. OK PyPy 3-64 TESTS 39 109 9216000
168868245 shubh1815 A Aug. 18, 2022, 4:37 p.m. OK PyPy 3-64 TESTS 39 124 8294400
168902265 voicon A Aug. 18, 2022, 11:26 p.m. OK PyPy 3-64 TESTS 39 124 9728000
168912328 J0o. A Aug. 19, 2022, 3:04 a.m. OK Python 3 TESTS 39 77 716800
168898315 1429_FowL A Aug. 18, 2022, 9:44 p.m. OK Python 3 TESTS 39 77 716800
168923659 Batzzz A Aug. 19, 2022, 5:48 a.m. OK Python 3 TESTS 39 93 0
168861810 bissenbay A Aug. 18, 2022, 3:29 p.m. OK Python 3 TESTS 39 93 0
168922486 sheknows A Aug. 19, 2022, 5:35 a.m. OK Python 3 TESTS 39 124 0
168901281 khaledrajaie5 A Aug. 18, 2022, 10:58 p.m. OK Python 3 TESTS 39 124 0
168899178 abdelrahman1810 A Aug. 18, 2022, 10:04 p.m. OK Python 3 TESTS 39 124 0
168898106 amitchaurasiya10279 A Aug. 18, 2022, 9:39 p.m. OK Python 3 TESTS 39 124 0
168895893 elistark A Aug. 18, 2022, 8:55 p.m. OK Python 3 TESTS 39 124 0
168893065 HemanthRoy A Aug. 18, 2022, 8:13 p.m. OK Python 3 TESTS 39 124 0
168903208 kena0ki A Aug. 18, 2022, 11:54 p.m. OK Rust 2021 TESTS 39 15 0
168872603 Ryuk10 A Aug. 18, 2022, 5 p.m. OK Rust 2021 TESTS 39 15 0
168880492 magnus.hegdahl A Aug. 18, 2022, 5:59 p.m. OK Rust 2021 TESTS 39 15 102400
168874492 LittleFall A Aug. 18, 2022, 5:13 p.m. OK Rust 2021 TESTS 39 15 1024000

remove filters

Back to search problems