Codeforces Round 938 (Div. 3)

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
1955 Codeforces Round 938 (Div. 3) FINISHED False 8100 19236299 April 8, 2024, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 43738 ) A Yogurt Sale PROGRAMMING math

B'The price of one yogurt at the "Vosmiorochka" store is a burles, but there is a promotion where you can buy two yogurts for b burles. Maxim needs to buy exactly n yogurts. When buying two yogurts, he can choose to buy them at the regular price or at the promotion price. What is the minimum amount of burles Maxim should spend to buy n yogurts? The first line contains a single integer t ( 1 <= t <= {10}^{4} ) -- the number of test cases. The first and only line of each test case contains three integers n , a , and b ( 1 <= n <= 100 , 1 <= a, b <= 30 ) -- the number of yogurts Maxim wants to buy, the price for one yogurt, and the price for two yogurts on promotion. For each test case, print in a separate line the minimum cost of buying n yogurts at "Vosmiorochka". In the third test case of the example, it is more advantageous to buy three yogurts for 15 burles than two for 11 and one for 5 . In the fourth test case of the example, you need to buy four yogurts, each for 5 burles. '...

Tutorials

128243

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
255823357 _nirjhor A April 9, 2024, 5:40 a.m. OK C# 10 TESTS 3 77 2048000
255799503 karamkontar A April 9, 2024, 12:21 a.m. OK C# 10 TESTS 3 78 2969600
255788298 orrall A April 8, 2024, 9:03 p.m. OK C# 10 TESTS 3 93 1945600
255771034 Mentgreen A April 8, 2024, 6:11 p.m. OK C++14 (GCC 6-32) TESTS 3 30 0
255785864 vishal2045ks A April 8, 2024, 8:34 p.m. OK C++14 (GCC 6-32) TESTS 3 31 0
255776035 master_fuad A April 8, 2024, 6:52 p.m. OK C++14 (GCC 6-32) TESTS 3 46 0
255771217 _Guess_My_Name_ A April 8, 2024, 6:13 p.m. OK C++14 (GCC 6-32) TESTS 3 46 0
255767631 expertcoderhk A April 8, 2024, 5:48 p.m. OK C++14 (GCC 6-32) TESTS 3 46 0
255822611 N0V1CE A April 9, 2024, 5:33 a.m. OK C++14 (GCC 6-32) TESTS 3 46 0
255806404 taejjeon A April 9, 2024, 2:18 a.m. OK C++14 (GCC 6-32) TESTS 3 46 0
255806162 harshscool955952 A April 9, 2024, 2:14 a.m. OK C++14 (GCC 6-32) TESTS 3 46 0
255777195 tellowart A April 8, 2024, 7:03 p.m. OK C++14 (GCC 6-32) TESTS 3 46 0
255821173 zhaoyuxiang A April 9, 2024, 5:20 a.m. OK C++14 (GCC 6-32) TESTS 3 46 102400
255805119 PanSPW A April 9, 2024, 1:59 a.m. OK C++17 (GCC 7-32) TESTS 3 30 0
255777618 Akshat09072004 A April 8, 2024, 7:07 p.m. OK C++17 (GCC 7-32) TESTS 3 30 0
255820339 Daksh158 A April 9, 2024, 5:12 a.m. OK C++17 (GCC 7-32) TESTS 3 31 0
255824357 uthfolghosh A April 9, 2024, 5:50 a.m. OK C++17 (GCC 7-32) TESTS 3 31 0
255821999 shreyansh._ A April 9, 2024, 5:28 a.m. OK C++17 (GCC 7-32) TESTS 3 31 0
255819036 KXD04 A April 9, 2024, 4:58 a.m. OK C++17 (GCC 7-32) TESTS 3 31 0
255813207 patilkalash33 A April 9, 2024, 3:46 a.m. OK C++17 (GCC 7-32) TESTS 3 31 0
255810454 5720226849 A April 9, 2024, 3:11 a.m. OK C++17 (GCC 7-32) TESTS 3 31 0
255810345 _mirupi. A April 9, 2024, 3:10 a.m. OK C++17 (GCC 7-32) TESTS 3 31 0
255805005 thuannohope1 A April 9, 2024, 1:57 a.m. OK C++17 (GCC 7-32) TESTS 3 31 0
255792214 GG_Panda A April 8, 2024, 9:59 p.m. OK C++20 (GCC 13-64) TESTS 3 30 0
255821245 hanmx A April 9, 2024, 5:21 a.m. OK C++20 (GCC 13-64) TESTS 3 31 0
255819235 qwedc001 A April 9, 2024, 5 a.m. OK C++20 (GCC 13-64) TESTS 3 31 0
255818606 A_Greedy_Gunner A April 9, 2024, 4:53 a.m. OK C++20 (GCC 13-64) TESTS 3 31 0
255817134 Sy03 A April 9, 2024, 4:36 a.m. OK C++20 (GCC 13-64) TESTS 3 31 0
255814751 S_Voloch A April 9, 2024, 4:05 a.m. OK C++20 (GCC 13-64) TESTS 3 31 0
255814328 Harsh_Chanchlani A April 9, 2024, 3:59 a.m. OK C++20 (GCC 13-64) TESTS 3 31 0
255806710 jackylova_fan_fan_fan A April 9, 2024, 2:23 a.m. OK C++20 (GCC 13-64) TESTS 3 31 0
255800698 yell_ A April 9, 2024, 12:42 a.m. OK C++20 (GCC 13-64) TESTS 3 31 0
255801354 burning_ASH A April 9, 2024, 12:54 a.m. OK C++20 (GCC 13-64) TESTS 3 31 0
255791976 bluemegane A April 8, 2024, 9:55 p.m. OK C# 8 TESTS 3 92 2150400
255780779 NenadDapic A April 8, 2024, 7:38 p.m. OK FPC TESTS 3 62 0
255779983 SkylineFX A April 8, 2024, 7:31 p.m. OK GNU C11 TESTS 3 61 0
255781189 Iftyyy_ A April 8, 2024, 7:43 p.m. OK GNU C11 TESTS 3 61 102400
255816476 wzsy A April 9, 2024, 4:28 a.m. OK GNU C11 TESTS 3 62 102400
255796718 EmOn698 A April 8, 2024, 11:23 p.m. OK GNU C11 TESTS 3 62 102400
255771929 Nishat_26 A April 8, 2024, 6:19 p.m. OK GNU C11 TESTS 3 62 102400
255769995 Mohaimen_Hridoy A April 8, 2024, 6:04 p.m. OK GNU C11 TESTS 3 62 102400
255769609 11017 A April 8, 2024, 6:01 p.m. OK GNU C11 TESTS 3 62 102400
255818156 tahminatipti A April 9, 2024, 4:48 a.m. OK GNU C11 TESTS 3 77 0
255823113 TasniaRysa A April 9, 2024, 5:38 a.m. OK GNU C11 TESTS 3 77 0
255781782 Surjo007 A April 8, 2024, 7:49 p.m. OK GNU C11 TESTS 3 77 0
255812998 123_wby A April 9, 2024, 3:44 a.m. OK Go TESTS 3 46 512000
255815211 Lee123 A April 9, 2024, 4:11 a.m. OK Java 21 TESTS 3 186 614400
255814330 _ShenHua_ A April 9, 2024, 3:59 a.m. OK Java 21 TESTS 3 218 307200
255800472 Abood19 A April 9, 2024, 12:38 a.m. OK Java 21 TESTS 3 218 921600
255770740 alpha_boy A April 8, 2024, 6:09 p.m. OK Java 21 TESTS 3 249 0
255795283 ItsLever A April 8, 2024, 10:53 p.m. OK Java 21 TESTS 3 249 409600
255769942 sukesh_2707 A April 8, 2024, 6:03 p.m. OK Java 21 TESTS 3 249 512000
255767805 bytecoder18943 A April 8, 2024, 5:49 p.m. OK Java 21 TESTS 3 249 512000
255791798 SourPatch A April 8, 2024, 9:52 p.m. OK Java 21 TESTS 3 265 307200
255767752 dineshchandran311 A April 8, 2024, 5:49 p.m. OK Java 21 TESTS 3 265 614400
255821550 Margylan A April 9, 2024, 5:24 a.m. OK Java 21 TESTS 3 265 921600
255818822 Mr.Numerator_007 A April 9, 2024, 4:56 a.m. OK Java 8 TESTS 3 124 0
255796986 NerfThis A April 8, 2024, 11:28 p.m. OK Java 8 TESTS 3 139 0
255796180 NESEGEMAA A April 8, 2024, 11:12 p.m. OK Java 8 TESTS 3 140 0
255775947 Safawt A April 8, 2024, 6:51 p.m. OK Java 8 TESTS 3 140 0
255807690 QYSLBLSHzz A April 9, 2024, 2:35 a.m. OK Java 8 TESTS 3 155 0
255788473 Sumitsingh7 A April 8, 2024, 9:05 p.m. OK Java 8 TESTS 3 171 6758400
255825008 SecondThread A April 9, 2024, 5:56 a.m. OK Java 8 TESTS 3 171 39014400
255810248 _z_ZZ A April 9, 2024, 3:09 a.m. OK Java 8 TESTS 3 186 0
255773287 formidablechief27 A April 8, 2024, 6:29 p.m. OK Java 8 TESTS 3 187 39321600
255824885 siddhi_04 A April 9, 2024, 5:55 a.m. OK Java 8 TESTS 3 202 0
255798737 MaxiBlue A April 9, 2024, 12:06 a.m. OK Node.js TESTS 3 218 9625600
255798564 Bulaisien A April 9, 2024, 12:02 a.m. OK PyPy 3 TESTS 3 202 5632000
255797188 fathurwy A April 8, 2024, 11:32 p.m. OK PyPy 3 TESTS 3 218 5836800
255791263 arfouchem A April 8, 2024, 9:44 p.m. OK PyPy 3 TESTS 3 218 5939200
255789502 bkifhr9 A April 8, 2024, 9:18 p.m. OK PyPy 3 TESTS 3 233 7270400
255809561 MY963 A April 9, 2024, 3:01 a.m. OK PyPy 3 TESTS 3 249 5734400
255798980 bboo_123 A April 9, 2024, 12:11 a.m. OK PyPy 3 TESTS 3 249 6246400
255820046 abhay_30281125 A April 9, 2024, 5:09 a.m. OK PyPy 3 TESTS 3 265 6451200
255797249 jongwoo0101 A April 8, 2024, 11:33 p.m. OK PyPy 3 TESTS 3 265 6963200
255822511 oneman38669 A April 9, 2024, 5:32 a.m. OK PyPy 3-64 TESTS 3 93 2560000
255812850 tccx18 A April 9, 2024, 3:41 a.m. OK PyPy 3-64 TESTS 3 108 3481600
255786126 OmarMoBadr A April 8, 2024, 8:37 p.m. OK PyPy 3-64 TESTS 3 109 6553600
255823247 blue_ice_yj A April 9, 2024, 5:39 a.m. OK PyPy 3-64 TESTS 3 124 5324800
255815868 Mohamed_Hamed A April 9, 2024, 4:20 a.m. OK PyPy 3-64 TESTS 3 124 7577600
255800580 Drought A April 9, 2024, 12:40 a.m. OK PyPy 3-64 TESTS 3 124 7680000
255785877 takijkstra A April 8, 2024, 8:34 p.m. OK PyPy 3-64 TESTS 3 140 6860800
255788545 kinglykang A April 8, 2024, 9:06 p.m. OK PyPy 3-64 TESTS 3 140 7065600
255774192 pratikagarwal4250 A April 8, 2024, 6:37 p.m. OK PyPy 3-64 TESTS 3 140 7065600
255783440 cybsbbb A April 8, 2024, 8:07 p.m. OK PyPy 3-64 TESTS 3 140 8089600
255776909 rhea.sheth03 A April 8, 2024, 7 p.m. OK Python 3 TESTS 3 62 307200
255784878 ttssgulu A April 8, 2024, 8:23 p.m. OK Python 3 TESTS 3 77 0
255766891 maajid A April 8, 2024, 5:43 p.m. OK Python 3 TESTS 3 77 0
255824661 ravi395 A April 9, 2024, 5:53 a.m. OK Python 3 TESTS 3 92 0
255824466 maks236562 A April 9, 2024, 5:51 a.m. OK Python 3 TESTS 3 93 0
255818207 ra__hul A April 9, 2024, 4:49 a.m. OK Python 3 TESTS 3 93 0
255815676 nihal_shenkeshi A April 9, 2024, 4:18 a.m. OK Python 3 TESTS 3 93 0
255810918 tjai8597 A April 9, 2024, 3:17 a.m. OK Python 3 TESTS 3 93 0
255805641 Daniel_14 A April 9, 2024, 2:07 a.m. OK Python 3 TESTS 3 93 0
255804958 celestes A April 9, 2024, 1:56 a.m. OK Python 3 TESTS 3 93 0

remove filters

Back to search problems