Codeforces Round 940 (Div. 2) and CodeCraft-23

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
1957 Codeforces Round 940 (Div. 2) and CodeCraft-23 FINISHED False 8100 23469863 April 21, 2024, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 18376 ) B A BIT of a Construction PROGRAMMING bitmasks constructive algorithms greedy implementation 1100

B'Given integers n and k , construct a sequence of n non-negative (i.e. geq 0 ) integers a_1, a_2, ldots, a_n such that The first line contains a single integer t ( 1 <= q t <= q 10^4 ) -- the number of test cases. The only line of each test case contains two integers n and k ( 1 <= q n <= q 2 cdot 10^5 , 1 <= q k <= q 10^9 ) -- the number of non-negative integers to be printed and the sum respectively. It is guaranteed that the sum of n over all test cases does not exceed 2 cdot 10^5 . For each test case, output a sequence a_1, a_2, ldots, a_n on a new line that satisfies the conditions given above. If there are multiple solutions, print any of them. In the first test case, we have to print exactly one integer, hence we can only output 5 as the answer. In the second test case, we output 1, 2 which sum up to 3 , and 1 | 2 = (11)_2 has two 1 s in its binary representation, which is the maximum we can achieve in these constraints. In the fourth test case, we output 3, 1, 1, 32, 2, 12 which sum up to 51 , and 3 | 1 | 1 | 32 | 2 | 12 = (101 ,111)_2 has five 1 s in its binary representation, which is the maximum we can achieve in these constraints. '...

Tutorials

Codeforces Round #940 and CodeCraft-23 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
258682973 x1f0cb32d3_ B April 29, 2024, 12:08 p.m. OK C# 10 TESTS 15 93 3481600 1100
262367746 A1ternate B May 24, 2024, 10:14 a.m. OK C# 10 TESTS 15 312 3891200 1100
261591543 FishNotebook B May 19, 2024, 2:33 a.m. OK C++14 (GCC 6-32) TESTS 15 61 0 1100
260082705 frost_ B May 9, 2024, 7 a.m. OK C++14 (GCC 6-32) TESTS 15 61 0 1100
258590110 lixuanta B April 28, 2024, 4:01 p.m. OK C++14 (GCC 6-32) TESTS 15 61 0 1100
258173858 maiducbinh B April 26, 2024, 1:36 a.m. OK C++14 (GCC 6-32) TESTS 15 61 0 1100
262340118 samid_sid B May 24, 2024, 6:02 a.m. OK C++14 (GCC 6-32) TESTS 15 62 0 1100
261986209 lwj1239 B May 21, 2024, 8:56 a.m. OK C++14 (GCC 6-32) TESTS 15 62 0 1100
261514141 CF_xyy B May 18, 2024, 10:30 a.m. OK C++14 (GCC 6-32) TESTS 15 62 0 1100
261322359 bkifhr8 B May 17, 2024, 11:41 a.m. OK C++14 (GCC 6-32) TESTS 15 62 0 1100
261319265 bkifhr7 B May 17, 2024, 11:17 a.m. OK C++14 (GCC 6-32) TESTS 15 62 0 1100
261270499 shaurya.deoria B May 17, 2024, 3:34 a.m. OK C++14 (GCC 6-32) TESTS 15 62 0 1100
263055155 aymanrs B May 28, 2024, 6:49 p.m. OK C++17 (GCC 7-32) TESTS 15 46 0 1100
263011592 Qiu_yi B May 28, 2024, 12:42 p.m. OK C++17 (GCC 7-32) TESTS 15 46 0 1100
260983925 whuang369 B May 14, 2024, 9:33 p.m. OK C++17 (GCC 7-32) TESTS 15 46 0 1100
259657895 Nitroprusside B May 5, 2024, 4:21 p.m. OK C++17 (GCC 7-32) TESTS 15 46 0 1100
259627917 AlTarek B May 5, 2024, 11:53 a.m. OK C++17 (GCC 7-32) TESTS 15 46 0 1100
259510204 Daisy B May 4, 2024, 12:52 p.m. OK C++17 (GCC 7-32) TESTS 15 46 0 1100
259074119 YaeSaraki B May 2, 2024, 3:03 a.m. OK C++17 (GCC 7-32) TESTS 15 46 0 1100
259055960 bkifhr10 B May 1, 2024, 8:31 p.m. OK C++17 (GCC 7-32) TESTS 15 46 0 1100
258792834 vjudge.8 B April 29, 2024, 9:38 p.m. OK C++17 (GCC 7-32) TESTS 15 46 0 1100
258590022 nishkarsh B April 28, 2024, 4 p.m. OK C++17 (GCC 7-32) TESTS 15 46 0 1100
263134773 guptafactory B May 29, 2024, 11:43 a.m. OK C++20 (GCC 13-64) TESTS 15 46 0 1100
262413972 Ashraf_A11 B May 24, 2024, 4:32 p.m. OK C++20 (GCC 13-64) TESTS 15 46 0 1100
262283037 Naman1213 B May 23, 2024, 3:57 p.m. OK C++20 (GCC 13-64) TESTS 15 46 0 1100
262019131 SSKMF B May 21, 2024, 12:49 p.m. OK C++20 (GCC 13-64) TESTS 15 46 0 1100
261928968 Andwerp B May 20, 2024, 7:22 p.m. OK C++20 (GCC 13-64) TESTS 15 46 0 1100
261733870 aviral_yadav B May 20, 2024, 7:08 a.m. OK C++20 (GCC 13-64) TESTS 15 46 0 1100
261241376 Sam1110 B May 16, 2024, 6:30 p.m. OK C++20 (GCC 13-64) TESTS 15 46 0 1100
260931699 fibbb B May 14, 2024, 1:13 p.m. OK C++20 (GCC 13-64) TESTS 15 46 0 1100
260797924 strneko B May 13, 2024, 12:43 p.m. OK C++20 (GCC 13-64) TESTS 15 46 0 1100
260790662 Ladamalina B May 13, 2024, 11:53 a.m. OK C++20 (GCC 13-64) TESTS 15 46 0 1100
258299156 wyv-75 B April 27, 2024, 12:10 a.m. OK GNU C11 TESTS 15 108 102400 1100
260774551 anirudh2005 B May 13, 2024, 9:53 a.m. OK GNU C11 TESTS 15 765 102400 1100
263058984 mohamed_M_hassan B May 28, 2024, 7:34 p.m. OK GNU C11 TESTS 15 781 0 1100
261730961 atharvatol04 B May 20, 2024, 6:39 a.m. OK GNU C11 TESTS 15 781 102400 1100
262480833 L3002 B May 25, 2024, 8:27 a.m. OK GNU C11 TESTS 15 796 102400 1100
260634008 yui0 B May 12, 2024, 8:31 a.m. OK GNU C11 TESTS 15 827 0 1100
261959482 Utkarsh.iitkgp B May 21, 2024, 4:04 a.m. OK GNU C11 TESTS 15 827 1638400 1100
259357165 cccccqw B May 3, 2024, 12:40 p.m. OK GNU C11 TESTS 15 874 0 1100
261232736 PepRe B May 16, 2024, 5:16 p.m. OK Go TESTS 15 62 921600 1100
258662769 nguyenquocthao00 B April 29, 2024, 9:26 a.m. OK Go TESTS 15 92 6451200 1100
261294796 nguyenquocthao00 B May 17, 2024, 7:46 a.m. OK Go TESTS 15 93 5632000 1100
259027528 hencoappel B May 1, 2024, 3:26 p.m. OK Go TESTS 15 249 204800 1100
260553535 The-Winner B May 11, 2024, 3:17 p.m. OK Haskell TESTS 15 108 0 1100
258540590 gaju_01 B April 28, 2024, 9:13 a.m. OK Java 21 TESTS 15 249 614400 1100
258386553 Hala245 B April 27, 2024, 12:18 p.m. OK Java 21 TESTS 15 265 921600 1100
260267615 rishit164 B May 10, 2024, 2:36 p.m. OK Java 21 TESTS 15 281 614400 1100
261219314 ramitg254 B May 16, 2024, 3:32 p.m. OK Java 21 TESTS 15 296 204800 1100
260261464 iamdimonis B May 10, 2024, 2:20 p.m. OK Java 21 TESTS 15 296 512000 1100
259347010 bhavaharan B May 3, 2024, 11:16 a.m. OK Java 21 TESTS 15 296 512000 1100
260261494 iamdimonis B May 10, 2024, 2:21 p.m. OK Java 21 TESTS 15 296 716800 1100
260261396 iamdimonis B May 10, 2024, 2:20 p.m. OK Java 21 TESTS 15 296 716800 1100
258541400 gaju_01 B April 28, 2024, 9:21 a.m. OK Java 21 TESTS 15 296 819200 1100
261214405 christmas964 B May 16, 2024, 2:53 p.m. OK Java 21 TESTS 15 296 921600 1100
260066718 AC_or_suicide B May 9, 2024, 3:51 a.m. OK Java 8 TESTS 15 140 0 1100
262672801 tittiesboy99 B May 26, 2024, 8:20 a.m. OK Java 8 TESTS 15 155 0 1100
258667794 nithin_bharathi B April 29, 2024, 10:22 a.m. OK Java 8 TESTS 15 171 0 1100
262885019 Ovetsar_ilish B May 27, 2024, 1:11 p.m. OK Java 8 TESTS 15 187 0 1100
258212498 Nagendravarma B April 26, 2024, 10:12 a.m. OK Java 8 TESTS 15 187 0 1100
258332336 ajay.code04 B April 27, 2024, 5:55 a.m. OK Java 8 TESTS 15 421 0 1100
260109879 Kahananghan B May 9, 2024, 11:10 a.m. OK Java 8 TESTS 15 436 0 1100
259665670 adarsh400 B May 5, 2024, 5:39 p.m. OK Java 8 TESTS 15 436 0 1100
259062111 saksham_goel05 B May 1, 2024, 9:58 p.m. OK Java 8 TESTS 15 436 0 1100
260606881 om172 B May 12, 2024, 4:31 a.m. OK Java 8 TESTS 15 437 0 1100
262370409 Mugiwara_HS B May 24, 2024, 10:37 a.m. OK Kotlin 1.7 TESTS 15 640 60928000 1100
258326235 borainc B April 27, 2024, 4:35 a.m. OK Kotlin 1.7 TESTS 15 640 70860800 1100
261023768 A_23 B May 15, 2024, 8:31 a.m. OK Kotlin 1.9 TESTS 15 436 0 1100
259698070 gouravasdeo11 B May 6, 2024, 2:36 a.m. OK Kotlin 1.9 TESTS 15 484 0 1100
258223714 amar_nandikol B April 26, 2024, 12:03 p.m. OK Node.js TESTS 15 234 16179200 1100
258842966 Para_D_ox B April 30, 2024, 11:07 a.m. OK Node.js TESTS 15 249 21196800 1100
258360246 sahild2003 B April 27, 2024, 8:32 a.m. OK Node.js TESTS 15 656 23756800 1100
258981235 Kevin8502 B May 1, 2024, 7:59 a.m. OK PHP TESTS 15 296 102400 1100
259945506 Samaritan02 B May 8, 2024, 3:52 a.m. OK PyPy 3 TESTS 15 296 9728000 1100
259033941 SakshamK6 B May 1, 2024, 4:28 p.m. OK PyPy 3 TESTS 15 311 9011200 1100
258614547 FelixNotter B April 28, 2024, 8:14 p.m. OK PyPy 3 TESTS 15 327 10956800 1100
258411058 tan_delhi B April 27, 2024, 1:29 p.m. OK PyPy 3 TESTS 15 358 12492800 1100
258304522 imkindabad B April 27, 2024, 2:17 a.m. OK PyPy 3 TESTS 15 359 13516800 1100
260438830 mahnameisayush B May 10, 2024, 6:08 p.m. OK PyPy 3 TESTS 15 374 12492800 1100
258275833 MarcoReusKross B April 26, 2024, 6:09 p.m. OK PyPy 3 TESTS 15 405 12595200 1100
259969544 JiaoXingK B May 8, 2024, 8:20 a.m. OK PyPy 3 TESTS 15 406 9318400 1100
258260896 thenima B April 26, 2024, 4:09 p.m. OK PyPy 3 TESTS 15 421 9932800 1100
258777077 pukpukpon B April 29, 2024, 6:07 p.m. OK PyPy 3 TESTS 15 452 9625600 1100
259443665 gardengnome B May 4, 2024, 4:15 a.m. OK PyPy 3-64 TESTS 15 108 6144000 1100
258180129 hxu10 B April 26, 2024, 3:45 a.m. OK PyPy 3-64 TESTS 15 155 13004800 1100
263132535 acorn11 B May 29, 2024, 11:24 a.m. OK PyPy 3-64 TESTS 15 156 5836800 1100
258456356 pizet B April 27, 2024, 4:02 p.m. OK PyPy 3-64 TESTS 15 156 8704000 1100
258220365 PainMaster B April 26, 2024, 11:36 a.m. OK PyPy 3-64 TESTS 15 156 13312000 1100
258183883 Remineva B April 26, 2024, 4:48 a.m. OK PyPy 3-64 TESTS 15 156 13619200 1100
259785592 VijayBalaji B May 6, 2024, 5:32 p.m. OK PyPy 3-64 TESTS 15 171 9216000 1100
262445049 NitroSpear B May 25, 2024, 12:20 a.m. OK PyPy 3-64 TESTS 15 171 10342400 1100
258229823 a_nanas B April 26, 2024, 12:52 p.m. OK PyPy 3-64 TESTS 15 171 10956800 1100
261698529 Lone_Wolf17 B May 19, 2024, 7:56 p.m. OK PyPy 3-64 TESTS 15 171 13004800 1100
262702410 dhruvdd8888 B May 26, 2024, 12:20 p.m. OK Python 3 TESTS 15 109 512000 1100
259354367 ALT_Ka_14 B May 3, 2024, 12:19 p.m. OK Python 3 TESTS 15 109 3481600 1100
262334242 buddyram B May 24, 2024, 4:50 a.m. OK Python 3 TESTS 15 155 17203200 1100
260716193 nhienlh94 B May 12, 2024, 9:40 p.m. OK Python 3 TESTS 15 171 18227200 1100
260716123 nhienlh94 B May 12, 2024, 9:38 p.m. OK Python 3 TESTS 15 187 18124800 1100
262854121 klu-2100030642 B May 27, 2024, 9 a.m. OK Python 3 TESTS 15 234 2560000 1100
262629516 ngocle2001 B May 25, 2024, 10:30 p.m. OK Python 3 TESTS 15 249 2560000 1100
259550198 kapopenko Gegedosh MakShon B May 4, 2024, 6:57 p.m. OK Python 3 TESTS 15 249 2560000 1100
260712465 Achrafmm B May 12, 2024, 8:33 p.m. OK Python 3 TESTS 15 249 2969600 1100
260014242 amrutha1610 B May 8, 2024, 2:39 p.m. OK Python 3 TESTS 15 249 2969600 1100
260070634 BetterThanNobita B May 9, 2024, 4:57 a.m. OK Rust 2021 TESTS 15 46 0 1100
263378249 abdessamad.anssem B May 30, 2024, 6:56 p.m. OK Rust 2021 TESTS 15 61 0 1100
259708572 cck111 B May 6, 2024, 5:57 a.m. OK Rust 2021 TESTS 15 61 0 1100
259415589 _Mus B May 3, 2024, 8:15 p.m. OK Rust 2021 TESTS 15 77 0 1100
262507290 NNxe B May 25, 2024, 12:09 p.m. OK Rust 2021 TESTS 15 93 0 1100
261494160 Qumeric B May 18, 2024, 8:50 a.m. OK Rust 2021 TESTS 15 93 512000 1100
258274718 RED_INSIDE B April 26, 2024, 6:01 p.m. OK Rust 2021 TESTS 15 108 0 1100

remove filters

Back to search problems