Codeforces Round 927 (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
1932 Codeforces Round 927 (Div. 3) FINISHED False 8100 28922063 Feb. 18, 2024, 12:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 21362 ) B Chaya Calendar PROGRAMMING number theory

B'The Chaya tribe believes that there are n signs of the apocalypse. Over time, it has been found out that the i -th sign occurs every a_i years (in years a_i , 2 cdot a_i , 3 cdot a_i , ... ). According to the legends, for the apocalypse to happen, the signs must occur sequentially. That is, first they wait for the first sign to occur, then strictly after it, the second sign will occur, and so on. That is, if the i -th sign occurred in the year x , the tribe starts waiting for the occurrence of the (i+1) -th sign, starting from the year x+1 . In which year will the n -th sign occur and the apocalypse will happen? The first line of the input contains a single integer t ( 1 <= t <= 1000 ) -- the number of test cases. Then follow the descriptions of the test cases. The first line of each test case contains a single integer n ( 1 <= n <= 100 ) -- the number of signs. The second line of each test case contains n integers a_1, a_2, a_3, ... , a_n ( 1 <= a_i <= 10^6 ) -- the periodicities of the signs. For each test case, output a single integer -- the year in which all n signs will occur. In the first set of input data of the example: '...

Tutorials

126196

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
247195314 YoussefAmr_ B Feb. 19, 2024, 11:24 a.m. OK C# 10 TESTS 98 77 3379200
247205060 mban259 B Feb. 19, 2024, 12:45 p.m. OK C# 10 TESTS 98 108 4300800
247148280 bluemegane B Feb. 18, 2024, 10:15 p.m. OK C# 8 TESTS 98 155 3174400
247188023 sriramt234 B Feb. 19, 2024, 10:18 a.m. OK Clang++17 Diagnostics TESTS 98 405 0
247159170 emo. B Feb. 19, 2024, 5:22 a.m. OK Clang++17 Diagnostics TESTS 98 405 1843200
247206549 sumit3355 B Feb. 19, 2024, 12:56 p.m. OK Clang++17 Diagnostics TESTS 98 498 0
247172854 funnyguyz B Feb. 19, 2024, 8:17 a.m. OK Clang++20 Diagnostics TESTS 98 405 0
247199029 Schoolbag B Feb. 19, 2024, 11:55 a.m. OK Clang++20 Diagnostics TESTS 98 436 0
247405300 Zhennor B Feb. 19, 2024, 11:20 p.m. OK Clang++20 Diagnostics TESTS 98 436 1024000
247153407 vjudge4 B Feb. 19, 2024, 4:16 a.m. OK Clang++20 Diagnostics TESTS 98 451 0
247145806 Bazinga_2004 B Feb. 18, 2024, 9:28 p.m. OK Clang++20 Diagnostics TESTS 98 467 1024000
247158411 bebopboi B Feb. 19, 2024, 5:15 a.m. OK Clang++20 Diagnostics TESTS 98 514 3174400
247398458 iffatul_anon B Feb. 19, 2024, 9:10 p.m. OK GNU C11 TESTS 98 46 307200
247430459 eddeepneau B Feb. 20, 2024, 5:52 a.m. OK GNU C11 TESTS 98 46 307200
247398611 iffatul_anon B Feb. 19, 2024, 9:12 p.m. OK GNU C11 TESTS 98 46 307200
247242233 lazychen B Feb. 19, 2024, 2:43 p.m. OK GNU C11 TESTS 98 46 307200
247218422 moankaee B Feb. 19, 2024, 2:21 p.m. OK GNU C11 TESTS 98 46 307200
247206457 sparshsinha11 B Feb. 19, 2024, 12:55 p.m. OK GNU C11 TESTS 98 46 307200
247186518 huymd B Feb. 19, 2024, 10:05 a.m. OK GNU C11 TESTS 98 46 307200
247173959 ROCKSTAR291003 B Feb. 19, 2024, 8:25 a.m. OK GNU C11 TESTS 98 46 307200
247172817 TuNguyen2005 B Feb. 19, 2024, 8:16 a.m. OK GNU C11 TESTS 98 46 307200
247126337 jit10920 B Feb. 18, 2024, 5:49 p.m. OK GNU C11 TESTS 98 46 307200
247405732 Student_7 B Feb. 19, 2024, 11:32 p.m. OK GNU C++17 TESTS 98 31 0
247160336 SaMuEl0516 B Feb. 19, 2024, 5:35 a.m. OK GNU C++17 TESTS 98 31 0
247176532 sqqmr B Feb. 19, 2024, 8:45 a.m. OK GNU C++17 TESTS 98 31 0
247189861 rahulk736694 B Feb. 19, 2024, 10:34 a.m. OK GNU C++17 TESTS 98 31 0
247192804 ashu_bhatta B Feb. 19, 2024, 11:01 a.m. OK GNU C++17 TESTS 98 31 0
247290802 neal27 B Feb. 19, 2024, 3:16 p.m. OK GNU C++17 TESTS 98 31 0
247379257 RnMnBtTime B Feb. 19, 2024, 6:03 p.m. OK GNU C++17 TESTS 98 31 0
247383176 GuiRaps B Feb. 19, 2024, 6:33 p.m. OK GNU C++17 TESTS 98 31 0
247387309 dionysios B Feb. 19, 2024, 7:09 p.m. OK GNU C++17 TESTS 98 31 0
247399357 syrusua_t B Feb. 19, 2024, 9:22 p.m. OK GNU C++17 TESTS 98 31 102400
247427317 wxll B Feb. 20, 2024, 5:16 a.m. OK GNU C++17 (64) TESTS 98 31 0
247425286 Zenocr735 B Feb. 20, 2024, 4:53 a.m. OK GNU C++17 (64) TESTS 98 31 0
247416035 YinDouKi B Feb. 20, 2024, 2:48 a.m. OK GNU C++17 (64) TESTS 98 31 0
247414167 Swing1 B Feb. 20, 2024, 2:20 a.m. OK GNU C++17 (64) TESTS 98 31 0
247413796 Demo88 B Feb. 20, 2024, 2:13 a.m. OK GNU C++17 (64) TESTS 98 31 0
247410380 jdurie B Feb. 20, 2024, 1:13 a.m. OK GNU C++17 (64) TESTS 98 31 0
247407279 enslaved B Feb. 20, 2024, 12:10 a.m. OK GNU C++17 (64) TESTS 98 31 0
247405276 Aang__ B Feb. 19, 2024, 11:19 p.m. OK GNU C++17 (64) TESTS 98 31 0
247398661 HelmOptimum B Feb. 19, 2024, 9:13 p.m. OK GNU C++17 (64) TESTS 98 31 0
247373665 xiaoshao B Feb. 19, 2024, 5:26 p.m. OK GNU C++17 (64) TESTS 98 31 0
247207544 s_w_z B Feb. 19, 2024, 1:02 p.m. OK GNU C++20 (64) TESTS 98 15 204800
247133339 Ranjith09 B Feb. 18, 2024, 6:53 p.m. OK GNU C++20 (64) TESTS 98 30 0
247144012 SearchMeLater B Feb. 18, 2024, 9 p.m. OK GNU C++20 (64) TESTS 98 30 0
247210544 tlsgusrb314 B Feb. 19, 2024, 1:24 p.m. OK GNU C++20 (64) TESTS 98 30 3686400
247428344 kekokl B Feb. 20, 2024, 5:27 a.m. OK GNU C++20 (64) TESTS 98 31 0
247426714 Md_Abu_Taleb B Feb. 20, 2024, 5:09 a.m. OK GNU C++20 (64) TESTS 98 31 0
247429482 300pq B Feb. 20, 2024, 5:41 a.m. OK GNU C++20 (64) TESTS 98 31 0
247429705 Hossam_Zein_14 B Feb. 20, 2024, 5:43 a.m. OK GNU C++20 (64) TESTS 98 31 0
247430381 codesmash_nandini B Feb. 20, 2024, 5:51 a.m. OK GNU C++20 (64) TESTS 98 31 0
247430563 abc864197532 B Feb. 20, 2024, 5:53 a.m. OK GNU C++20 (64) TESTS 98 31 0
247172899 foolcoder B Feb. 19, 2024, 8:17 a.m. OK Java 21 TESTS 98 280 409600
247419263 net12k44 B Feb. 20, 2024, 3:30 a.m. OK Java 21 TESTS 98 280 409600
247207700 leoncn B Feb. 19, 2024, 1:04 p.m. OK Java 21 TESTS 98 295 204800
247193288 Shaker_32 B Feb. 19, 2024, 11:06 a.m. OK Java 21 TESTS 98 296 0
247150246 DOOMJUICE B Feb. 18, 2024, 11:01 p.m. OK Java 21 TESTS 98 296 102400
247196997 ramitg254 B Feb. 19, 2024, 11:38 a.m. OK Java 21 TESTS 98 296 204800
247173066 santuan B Feb. 19, 2024, 8:18 a.m. OK Java 21 TESTS 98 311 204800
247156299 AkshatSaxena_05 B Feb. 19, 2024, 4:53 a.m. OK Java 21 TESTS 98 311 614400
247141809 VvyLw B Feb. 18, 2024, 8:28 p.m. OK Java 21 TESTS 98 311 716800
247178797 Last-Huntsman B Feb. 19, 2024, 9:04 a.m. OK Java 21 TESTS 98 312 307200
247149245 Darko B Feb. 18, 2024, 10:36 p.m. OK Java 8 TESTS 98 124 0
247185503 i_ujjwal B Feb. 19, 2024, 9:57 a.m. OK Java 8 TESTS 98 140 0
247190493 Gavind B Feb. 19, 2024, 10:40 a.m. OK Java 8 TESTS 98 155 0
247150737 tinku_vishnu B Feb. 19, 2024, 3:40 a.m. OK Java 8 TESTS 98 155 0
247130292 shukla_ji_123 B Feb. 18, 2024, 6:22 p.m. OK Java 8 TESTS 98 155 0
247130095 etian6795 B Feb. 18, 2024, 6:21 p.m. OK Java 8 TESTS 98 171 0
247394744 alifahmy1 B Feb. 19, 2024, 8:25 p.m. OK Java 8 TESTS 98 249 0
247211408 harshitha_77 B Feb. 19, 2024, 1:29 p.m. OK Java 8 TESTS 98 249 0
247150788 Sumitsingh7 B Feb. 19, 2024, 3:41 a.m. OK Java 8 TESTS 98 249 5836800
247189892 vedikasawant275 B Feb. 19, 2024, 10:34 a.m. OK Java 8 TESTS 98 264 0
247189272 vikaskajla B Feb. 19, 2024, 10:28 a.m. OK JavaScript TESTS 98 62 2252800
247191821 vikaskajla B Feb. 19, 2024, 10:52 a.m. OK JavaScript TESTS 98 62 2355200
247209273 stillnotyet B Feb. 19, 2024, 1:15 p.m. OK Kotlin 1.7 TESTS 98 545 26214400
247159739 LightYagami674 B Feb. 19, 2024, 5:29 a.m. OK Kotlin 1.9 TESTS 98 155 0
247401681 janpe B Feb. 19, 2024, 9:58 p.m. OK Kotlin 1.9 TESTS 98 187 0
247125429 Krantzy B Feb. 18, 2024, 5:40 p.m. OK Kotlin 1.9 TESTS 98 327 0
247396686 Gadi B Feb. 19, 2024, 8:48 p.m. OK MS C++ 2017 TESTS 98 78 0
247174299 aluckyboy B Feb. 19, 2024, 8:27 a.m. OK MS C++ 2017 TESTS 98 78 0
247153330 wondering001 B Feb. 19, 2024, 4:14 a.m. OK MS C++ 2017 TESTS 98 78 0
247182197 Ling_hui B Feb. 19, 2024, 9:29 a.m. OK MS C++ 2017 TESTS 98 78 16076800
247286797 tb663871 B Feb. 19, 2024, 3:12 p.m. OK MS C++ 2017 TESTS 98 93 0
247132588 KasD B Feb. 18, 2024, 6:45 p.m. OK MS C++ 2017 TESTS 98 93 0
247127890 Sofi_ B Feb. 18, 2024, 6:02 p.m. OK MS C++ 2017 TESTS 98 93 0
247191666 BAKUBAM B Feb. 19, 2024, 10:51 a.m. OK MS C++ 2017 TESTS 98 93 409600
247131823 Rajat31 B Feb. 18, 2024, 6:37 p.m. OK MS C++ 2017 TESTS 98 108 0
247190029 twispifoxy B Feb. 19, 2024, 10:35 a.m. OK MS C++ 2017 TESTS 98 109 0
247212820 vikaskajla B Feb. 19, 2024, 1:39 p.m. OK Node.js TESTS 98 124 5632000
247274959 sushilm2011 B Feb. 19, 2024, 3:03 p.m. OK Node.js TESTS 98 155 6656000
247195754 crapcode B Feb. 19, 2024, 11:28 a.m. OK PHP TESTS 98 46 0
247152664 nealzane B Feb. 19, 2024, 4:06 a.m. OK PyPy 3 TESTS 98 233 6041600
247386105 Kintsugi B Feb. 19, 2024, 6:58 p.m. OK PyPy 3 TESTS 98 233 7065600
247149517 v.bonifaci B Feb. 18, 2024, 10:44 p.m. OK PyPy 3 TESTS 98 233 7168000
247188475 Nikhil0007 B Feb. 19, 2024, 10:21 a.m. OK PyPy 3 TESTS 98 280 6758400
247135748 ErikUs B Feb. 18, 2024, 7:17 p.m. OK PyPy 3 TESTS 98 436 7270400
247196139 GirirajParik_08 B Feb. 19, 2024, 11:31 a.m. OK PyPy 3-64 TESTS 98 93 3993600
247393885 titia B Feb. 19, 2024, 8:16 p.m. OK PyPy 3-64 TESTS 98 93 4096000
247191923 sorcerer_21 B Feb. 19, 2024, 10:53 a.m. OK PyPy 3-64 TESTS 98 108 4915200
247417558 MdAbedin B Feb. 20, 2024, 3:09 a.m. OK PyPy 3-64 TESTS 98 109 4198400
247128130 cybsbbb B Feb. 18, 2024, 6:05 p.m. OK PyPy 3-64 TESTS 98 109 4198400
247150797 InHng B Feb. 19, 2024, 3:41 a.m. OK PyPy 3-64 TESTS 98 124 3891200
247143921 jvatsal0709 B Feb. 18, 2024, 8:59 p.m. OK PyPy 3-64 TESTS 98 124 4096000
247141342 anaghninja432 B Feb. 18, 2024, 8:22 p.m. OK PyPy 3-64 TESTS 98 124 4096000
247417632 cperkkk B Feb. 20, 2024, 3:10 a.m. OK PyPy 3-64 TESTS 98 124 4505600
247136187 abenezer_m54 B Feb. 18, 2024, 7:22 p.m. OK PyPy 3-64 TESTS 98 124 4505600
247381170 boogeymanJW B Feb. 19, 2024, 6:17 p.m. OK Python 2 TESTS 98 124 204800
247425865 dhrubomondol66 B Feb. 20, 2024, 5 a.m. OK Python 3 TESTS 98 77 409600
247390296 Ratery B Feb. 19, 2024, 7:39 p.m. OK Python 3 TESTS 98 78 409600
247216129 Yanzx B Feb. 19, 2024, 2:03 p.m. OK Python 3 TESTS 98 78 409600
247206962 Asnnk B Feb. 19, 2024, 12:59 p.m. OK Python 3 TESTS 98 78 409600
247199297 comptinedunautreete B Feb. 19, 2024, 11:58 a.m. OK Python 3 TESTS 98 78 409600
247188153 tepamid B Feb. 19, 2024, 10:19 a.m. OK Python 3 TESTS 98 78 409600
247181284 darkgodsr B Feb. 19, 2024, 9:22 a.m. OK Python 3 TESTS 98 78 409600
247177287 dase25 B Feb. 19, 2024, 8:52 a.m. OK Python 3 TESTS 98 78 409600
247172309 Risshun B Feb. 19, 2024, 8:12 a.m. OK Python 3 TESTS 98 78 409600
247387102 atulaman7401 B Feb. 19, 2024, 7:08 p.m. OK Python 3 TESTS 98 93 409600
247193175 robostac B Feb. 19, 2024, 11:05 a.m. OK Rust 2021 TESTS 98 15 0
247180270 Hyrulia B Feb. 19, 2024, 9:15 a.m. OK Rust 2021 TESTS 98 31 2150400

remove filters

Back to search problems