Codeforces Round 935 (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
1945 Codeforces Round 935 (Div. 3) FINISHED False 8100 26344463 March 19, 2024, 8:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 23379 ) B Fireworks PROGRAMMING math number theory

B'One of the days of the hike coincided with a holiday, so in the evening at the camp, it was decided to arrange a festive fireworks display. For this purpose, the organizers of the hike bought two installations for launching fireworks and a huge number of shells for launching. Both installations are turned on simultaneously. The first installation launches fireworks every a minutes (i.e., after a, 2 cdot a, 3 cdot a, ... minutes after launch). The second installation launches fireworks every b minutes (i.e., after b, 2 cdot b, 3 cdot b, ... minutes after launch). Each firework is visible in the sky for m + 1 minutes after launch, i.e., if a firework was launched after x minutes after the installations were turned on, it will be visible every minute from x to x + m , inclusive. If one firework was launched m minutes after another, both fireworks will be visible for one minute. What is the maximum number of fireworks that could be seen in the sky at the same time? Each test consists of several test cases. The first line contains a single integer t ( 1 <= t <= 10^4 ) -- the number of test cases. Then follow the descriptions of the test cases. The first and only line of each test case contains integers a , b , m ( 1 <= a, b, m <= 10^{18} ) -- the frequency of launching for the first installation, the second installation, and the time the firework is visible in the sky. For each set of input data, output a single number -- the maximum number of fireworks that can be seen simultaneously. In the first set of input data, the fireworks are visible in the sky for 5 minutes. Since the first installation launches fireworks every 6 minutes, and the second one every 7 minutes, two fireworks launched from the same installation will not be visible in the sky at the same time. At the same time, after 7 minutes from the start of the holiday, one firewo'...

Tutorials

127377

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
252391727 zhujiangyuan B March 20, 2024, 4:47 a.m. OK C++14 (GCC 6-32) TESTS 6 15 0
252391256 l1ability B March 20, 2024, 4:40 a.m. OK C++14 (GCC 6-32) TESTS 6 15 0
252384994 _Lactosi B March 20, 2024, 3:02 a.m. OK C++14 (GCC 6-32) TESTS 6 15 0
252380364 Osama.Rafat100 B March 20, 2024, 1:41 a.m. OK C++14 (GCC 6-32) TESTS 6 15 0
252378875 nijuusei_A B March 20, 2024, 1:13 a.m. OK C++14 (GCC 6-32) TESTS 6 15 0
252364126 Mohmed-gado B March 19, 2024, 8:57 p.m. OK C++14 (GCC 6-32) TESTS 6 15 0
252361942 sstojilkovic19 B March 19, 2024, 8:31 p.m. OK C++14 (GCC 6-32) TESTS 6 15 0
252347591 mathilde B March 19, 2024, 6:14 p.m. OK C++14 (GCC 6-32) TESTS 6 15 0
252346199 negetive_iq B March 19, 2024, 6:04 p.m. OK C++14 (GCC 6-32) TESTS 6 15 0
252345399 piyush1577 B March 19, 2024, 5:58 p.m. OK C++14 (GCC 6-32) TESTS 6 15 0
252394025 Cu_OH_2 B March 20, 2024, 5:15 a.m. OK C++17 (GCC 7-32) TESTS 6 0 0
252388385 nihal_gupta B March 20, 2024, 3:56 a.m. OK C++17 (GCC 7-32) TESTS 6 0 0
252382476 Sealy B March 20, 2024, 2:20 a.m. OK C++17 (GCC 7-32) TESTS 6 0 0
252360629 ShahdAbdelaziz B March 19, 2024, 8:15 p.m. OK C++17 (GCC 7-32) TESTS 6 0 0
252355535 Hotasha B March 19, 2024, 7:24 p.m. OK C++17 (GCC 7-32) TESTS 6 0 0
252336125 leonardonm15 B March 19, 2024, 4:51 p.m. OK C++17 (GCC 7-32) TESTS 6 0 0
252334247 CutSandstone B March 19, 2024, 4:38 p.m. OK C++17 (GCC 7-32) TESTS 3 0 0
252324562 coder_ritz B March 19, 2024, 3:39 p.m. OK C++17 (GCC 7-32) TESTS 3 0 0
252320139 vyshnavchayi B March 19, 2024, 3:14 p.m. OK C++17 (GCC 7-32) TESTS 3 0 0
252310041 Royal_Guard_S B March 19, 2024, 2:16 p.m. OK C++17 (GCC 7-32) TESTS 3 0 0
252386625 _GOM3A_ B March 20, 2024, 3:29 a.m. OK C++20 (GCC 13-64) TESTS 6 0 0
252316897 C0ldSmi1e B March 19, 2024, 2:56 p.m. OK C++20 (GCC 13-64) TESTS 3 0 0
252314061 Wangshushushu B March 19, 2024, 2:39 p.m. OK C++20 (GCC 13-64) TESTS 3 0 0
252396863 YSGU B March 20, 2024, 5:46 a.m. OK C++20 (GCC 13-64) TESTS 6 15 0
252392757 1Notorious B March 20, 2024, 5 a.m. OK C++20 (GCC 13-64) TESTS 6 15 0
252392700 meanup- B March 20, 2024, 4:59 a.m. OK C++20 (GCC 13-64) TESTS 6 15 0
252384166 Marckess B March 20, 2024, 2:48 a.m. OK C++20 (GCC 13-64) TESTS 6 15 0
252379077 Narcissu233 B March 20, 2024, 1:17 a.m. OK C++20 (GCC 13-64) TESTS 6 15 0
252374273 cotato B March 19, 2024, 11:36 p.m. OK C++20 (GCC 13-64) TESTS 6 15 0
252370568 battledragon B March 19, 2024, 10:24 p.m. OK C++20 (GCC 13-64) TESTS 6 15 0
252347794 makia B March 19, 2024, 6:16 p.m. OK GNU C11 TESTS 6 46 0
252331891 Anonymous_HF B March 19, 2024, 4:23 p.m. OK GNU C11 TESTS 3 46 0
252329375 sujal22514 B March 19, 2024, 4:07 p.m. OK GNU C11 TESTS 3 46 0
252320921 Humaira228 B March 19, 2024, 3:19 p.m. OK GNU C11 TESTS 3 46 0
252360707 Homaira_Jahan128 B March 19, 2024, 8:16 p.m. OK GNU C11 TESTS 6 46 307200
252343214 Szzzp B March 19, 2024, 5:41 p.m. OK GNU C11 TESTS 6 46 307200
252342338 ArafSPiDEY B March 19, 2024, 5:35 p.m. OK GNU C11 TESTS 6 46 307200
252336071 CHYShin B March 19, 2024, 4:51 p.m. OK GNU C11 TESTS 6 46 307200
252326257 acAI_X B March 19, 2024, 3:49 p.m. OK GNU C11 TESTS 3 46 307200
252315941 _mizu15 B March 19, 2024, 2:51 p.m. OK GNU C11 TESTS 3 61 0
252315113 Shaker_32 B March 19, 2024, 2:46 p.m. OK Java 21 TESTS 3 218 0
252369076 flickflock B March 19, 2024, 9:59 p.m. OK Java 21 TESTS 6 233 0
252314364 Fightmonger B March 19, 2024, 2:41 p.m. OK Java 21 TESTS 3 249 0
252354029 bytecoder18943 B March 19, 2024, 7:09 p.m. OK Java 21 TESTS 6 264 0
252317246 Eslam_Ahmed B March 19, 2024, 2:58 p.m. OK Java 21 TESTS 3 264 102400
252365969 ktranada1403 B March 19, 2024, 9:19 p.m. OK Java 21 TESTS 6 265 102400
252311047 clinkz_hater B March 19, 2024, 2:22 p.m. OK Java 21 TESTS 3 280 0
252328291 RiceTofu B March 19, 2024, 4:01 p.m. OK Java 21 TESTS 3 311 0
252321041 beatboy B March 19, 2024, 3:20 p.m. OK Java 21 TESTS 3 311 0
252305037 tejas.morajkar B March 19, 2024, 1:47 p.m. OK Java 21 TESTS 3 311 0
252392562 51Hz B March 20, 2024, 4:57 a.m. OK Java 8 TESTS 6 109 0
252316949 etian6795 B March 19, 2024, 2:56 p.m. OK Java 8 TESTS 3 124 0
252347509 yellowflash B March 19, 2024, 6:13 p.m. OK Java 8 TESTS 6 140 0
252320421 Siddharth_78 B March 19, 2024, 3:16 p.m. OK Java 8 TESTS 3 155 0
252302157 Billert B March 19, 2024, 1:31 p.m. OK Java 8 TESTS 3 171 0
252363951 Mrituinjayy4 B March 19, 2024, 8:55 p.m. OK Java 8 TESTS 6 186 0
252352065 Sumitsingh7 B March 19, 2024, 6:51 p.m. OK Java 8 TESTS 6 186 5836800
252363146 Shenta B March 19, 2024, 8:45 p.m. OK Java 8 TESTS 6 187 0
252354678 HardikG12 B March 19, 2024, 7:15 p.m. OK Java 8 TESTS 6 218 0
252346305 _kk_10 B March 19, 2024, 6:04 p.m. OK Java 8 TESTS 6 218 0
252313514 Alexanderter10 B March 19, 2024, 2:36 p.m. OK PascalABC.NET TESTS 3 264 0
252393096 zhengyi20thu B March 20, 2024, 5:04 a.m. OK PyPy 3 TESTS 6 155 5120000
252346130 jana.glavac B March 19, 2024, 6:03 p.m. OK PyPy 3 TESTS 6 280 6451200
252330275 VPriya B March 19, 2024, 4:13 p.m. OK PyPy 3 TESTS 3 280 6451200
252341688 venkata_narendra B March 19, 2024, 5:30 p.m. OK PyPy 3 TESTS 6 295 6451200
252333110 EvGen1u5 B March 19, 2024, 4:30 p.m. OK PyPy 3 TESTS 3 311 7168000
252346855 devjain1028 B March 19, 2024, 6:09 p.m. OK PyPy 3-64 TESTS 6 62 6246400
252340178 gardengnome B March 19, 2024, 5:20 p.m. OK PyPy 3-64 TESTS 6 77 3379200
252365473 DRDIV B March 19, 2024, 9:13 p.m. OK PyPy 3-64 TESTS 6 77 4198400
252347455 mythicalrocket B March 19, 2024, 6:13 p.m. OK PyPy 3-64 TESTS 6 77 4505600
252321728 InHng B March 19, 2024, 3:24 p.m. OK PyPy 3-64 TESTS 3 77 6144000
252372586 OmarMoBadr B March 19, 2024, 11:03 p.m. OK PyPy 3-64 TESTS 6 77 6246400
252350020 singh.eureka B March 19, 2024, 6:34 p.m. OK PyPy 3-64 TESTS 6 92 6041600
252384589 Drunkula B March 20, 2024, 2:56 a.m. OK PyPy 3-64 TESTS 6 92 6144000
252307596 Pronoy_Deb B March 19, 2024, 2:02 p.m. OK PyPy 3-64 TESTS 3 93 4096000
252386166 Youarenotgood B March 20, 2024, 3:21 a.m. OK PyPy 3-64 TESTS 6 93 6144000
252333642 22H51A6762-Manikanta B March 19, 2024, 4:34 p.m. OK Python 3 TESTS 3 46 1433600
252312587 cmr_22r01a04g1 B March 19, 2024, 2:31 p.m. OK Python 3 TESTS 3 46 1433600
252310321 22R01A6261 B March 19, 2024, 2:18 p.m. OK Python 3 TESTS 3 46 1433600
252309653 22r01a04g4 B March 19, 2024, 2:14 p.m. OK Python 3 TESTS 3 46 1433600
252303927 22R01A04G5 B March 19, 2024, 1:41 p.m. OK Python 3 TESTS 3 46 1433600
252301699 100987654321 B March 19, 2024, 1:28 p.m. OK Python 3 TESTS 3 46 1433600
252324754 zc2707 B March 19, 2024, 3:40 p.m. OK Python 3 TESTS 3 61 614400
252366643 r_us B March 19, 2024, 9:27 p.m. OK Python 3 TESTS 6 62 614400
252381404 funseeker B March 20, 2024, 2 a.m. OK Python 3 TESTS 6 62 716800
252395115 wudid B March 20, 2024, 5:27 a.m. OK Python 3 TESTS 6 92 102400
252319722 rob.xu.meng B March 19, 2024, 3:12 p.m. OK Rust 2021 TESTS 3 93 0

remove filters

Back to search problems