Codeforces Round 958 (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
1988 Codeforces Round 958 (Div. 2) FINISHED False 7200 16125863 July 15, 2024, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 17397 ) C Increasing Sequence with Fixed OR PROGRAMMING bitmasks constructive algorithms greedy

B"You are given a positive integer n . Find the longest sequence of positive integers a=[a_1,a_2, ldots,a_k] that satisfies the following conditions, and print the sequence: Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= t <= 1000 ). Description of the test cases follows. The only line of each test case contains one integer n ( 1 <= n <= 10^{18} ). It's guaranteed that the sum of lengths of the longest valid sequences does not exceed 5 cdot 10^5 . For each testcase, print two lines. In the first line, print the length of your constructed sequence, k . In the second line, print k positive integers, denoting the sequence. If there are multiple longest sequences, you can print any of them. "...

Tutorials

Editorial of Codeforces Round 958 (Div. 2)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
270790456 huangjiarui C July 16, 2024, 1:39 a.m. OK C++14 (GCC 6-32) TESTS 6 46 0
270806681 QWQ_SenLin C July 16, 2024, 4:27 a.m. OK C++14 (GCC 6-32) TESTS 6 46 0
270796849 eileen8 C July 16, 2024, 2:46 a.m. OK C++14 (GCC 6-32) TESTS 6 46 0
270757372 idontknowwhat C July 15, 2024, 6:38 p.m. OK C++14 (GCC 6-32) TESTS 6 46 0
270793234 tryandtryagain C July 16, 2024, 2:09 a.m. OK C++14 (GCC 6-32) TESTS 6 46 3174400
270804133 lopzith C July 16, 2024, 3:57 a.m. OK C++14 (GCC 6-32) TESTS 6 46 3993600
270792635 luogu_bot3 C July 16, 2024, 2:03 a.m. OK C++14 (GCC 6-32) TESTS 6 46 3993600
270804372 stevenjoker C July 16, 2024, 4 a.m. OK C++14 (GCC 6-32) TESTS 6 61 0
270808292 bai_shan C July 16, 2024, 4:45 a.m. OK C++14 (GCC 6-32) TESTS 6 61 0
270803922 stevenjoker C July 16, 2024, 3:55 a.m. OK C++14 (GCC 6-32) TESTS 6 61 0
270807859 _Rafferty_ C July 16, 2024, 4:40 a.m. OK C++17 (GCC 7-32) TESTS 6 46 0
270815684 mishra_108 C July 16, 2024, 5:58 a.m. OK C++17 (GCC 7-32) TESTS 6 46 0
270815214 thisisms11 C July 16, 2024, 5:53 a.m. OK C++17 (GCC 7-32) TESTS 6 46 0
270808998 M79-TSV C July 16, 2024, 4:53 a.m. OK C++17 (GCC 7-32) TESTS 6 46 0
270808279 _jsgnt C July 16, 2024, 4:45 a.m. OK C++17 (GCC 7-32) TESTS 6 46 0
270805703 haochenkang C July 16, 2024, 4:16 a.m. OK C++17 (GCC 7-32) TESTS 6 46 0
270803720 z-y-h C July 16, 2024, 3:53 a.m. OK C++17 (GCC 7-32) TESTS 6 46 0
270803408 forIoop C July 16, 2024, 3:50 a.m. OK C++17 (GCC 7-32) TESTS 6 46 0
270801237 becomingPrimeVersion C July 16, 2024, 3:29 a.m. OK C++17 (GCC 7-32) TESTS 6 46 0
270799814 sahil_beck C July 16, 2024, 3:15 a.m. OK C++17 (GCC 7-32) TESTS 6 46 0
270745652 ByteSlinger C July 15, 2024, 5:26 p.m. OK C++20 (GCC 13-64) TESTS 6 30 0
270800358 cchhwala C July 16, 2024, 3:20 a.m. OK C++20 (GCC 13-64) TESTS 6 31 0
270791417 SakuruaPrime C July 16, 2024, 1:49 a.m. OK C++20 (GCC 13-64) TESTS 6 31 0
270751269 mcuadros C July 15, 2024, 5:56 p.m. OK C++20 (GCC 13-64) TESTS 6 31 0
270815338 _xqy_ C July 16, 2024, 5:54 a.m. OK C++20 (GCC 13-64) TESTS 6 46 0
270814872 Hitesh727 C July 16, 2024, 5:50 a.m. OK C++20 (GCC 13-64) TESTS 6 46 0
270815144 tai_lung_08 C July 16, 2024, 5:53 a.m. OK C++20 (GCC 13-64) TESTS 6 46 0
270814728 greeninja_21 C July 16, 2024, 5:49 a.m. OK C++20 (GCC 13-64) TESTS 6 46 0
270816245 HiteshYasam C July 16, 2024, 6:03 a.m. OK C++20 (GCC 13-64) TESTS 6 46 0
270815710 sweet_hope25 C July 16, 2024, 5:58 a.m. OK C++20 (GCC 13-64) TESTS 6 46 0
270785184 bluemegane C July 16, 2024, 12:39 a.m. OK C# 8 TESTS 6 140 3174400
270787716 .rain. C July 16, 2024, 1:12 a.m. OK GNU C11 TESTS 6 218 0
270766333 atharvatol04 C July 15, 2024, 8 p.m. OK GNU C11 TESTS 6 296 102400
270750812 SanjivDinakar C July 15, 2024, 5:54 p.m. OK GNU C11 TESTS 6 327 4096000
270792560 nguyenquocthao00 C July 16, 2024, 2:02 a.m. OK Go TESTS 6 77 4300800
270763731 bhataktaBhai C July 15, 2024, 7:34 p.m. OK Haskell TESTS 6 108 0
270805819 yang_wei C July 16, 2024, 4:17 a.m. OK Java 21 TESTS 6 233 102400
270800755 _global C July 16, 2024, 3:24 a.m. OK Java 21 TESTS 6 249 512000
270803838 susvant C July 16, 2024, 3:54 a.m. OK Java 21 TESTS 6 264 204800
270793246 amit_roy C July 16, 2024, 2:09 a.m. OK Java 21 TESTS 6 264 819200
270761713 PlayDate C July 15, 2024, 7:16 p.m. OK Java 21 TESTS 6 265 204800
270779946 mangos194 C July 15, 2024, 11:10 p.m. OK Java 21 TESTS 6 280 512000
270774359 Orange905 C July 15, 2024, 9:34 p.m. OK Java 21 TESTS 6 280 1024000
270750216 polsage C July 15, 2024, 5:50 p.m. OK Java 21 TESTS 6 296 819200
270766370 lightblz C July 15, 2024, 8 p.m. OK Java 21 TESTS 6 296 1126400
270760718 PlayDate C July 15, 2024, 7:06 p.m. OK Java 21 TESTS 6 311 1638400
270809847 kartik__sethi C July 16, 2024, 5:02 a.m. OK Java 8 TESTS 6 155 0
270789878 rjrajeevofficial C July 16, 2024, 1:32 a.m. OK Java 8 TESTS 6 171 0
270763631 aishwarykesarwani C July 15, 2024, 7:33 p.m. OK Java 8 TESTS 6 171 0
270763337 aishwarykesarwani C July 15, 2024, 7:31 p.m. OK Java 8 TESTS 6 171 0
270756404 amankimothi C July 15, 2024, 6:31 p.m. OK Java 8 TESTS 6 171 0
270798772 Jay08 C July 16, 2024, 3:05 a.m. OK Java 8 TESTS 6 171 39116800
270744206 CipherSphinx_Raj C July 15, 2024, 5:21 p.m. OK Java 8 TESTS 6 187 39219200
270747939 tirthgohil1410 C July 15, 2024, 5:37 p.m. OK Java 8 TESTS 6 202 0
270813706 Baidiki C July 16, 2024, 5:40 a.m. OK Java 8 TESTS 6 218 0
270809695 Mahf C July 16, 2024, 5 a.m. OK Java 8 TESTS 6 218 0
270747623 L-S-S C July 15, 2024, 5:36 p.m. OK Kotlin 1.9 TESTS 6 312 0
270771882 x3mka C July 15, 2024, 9:01 p.m. OK PyPy 3 TESTS 6 186 3584000
270796023 TheBestFromEast C July 16, 2024, 2:37 a.m. OK PyPy 3 TESTS 6 264 9625600
270802133 TheBestFromEast C July 16, 2024, 3:37 a.m. OK PyPy 3 TESTS 6 281 9523200
270798823 Giantpanda C July 16, 2024, 3:05 a.m. OK PyPy 3 TESTS 6 296 7782400
270769518 MrPrince22 C July 15, 2024, 8:34 p.m. OK PyPy 3 TESTS 6 312 6246400
270794082 nealzane C July 16, 2024, 2:17 a.m. OK PyPy 3 TESTS 6 327 9728000
270747526 papdichaat C July 15, 2024, 5:35 p.m. OK PyPy 3 TESTS 6 452 8089600
270748776 ZzaZi C July 15, 2024, 5:42 p.m. OK PyPy 3 TESTS 6 530 9318400
270770997 MdAbedin C July 15, 2024, 8:50 p.m. OK PyPy 3-64 TESTS 6 108 3686400
270814733 master_JD C July 16, 2024, 5:49 a.m. OK PyPy 3-64 TESTS 6 108 3788800
270767849 azizrocky1951 C July 15, 2024, 8:16 p.m. OK PyPy 3-64 TESTS 6 108 3891200
270755730 Om_Singh_ C July 15, 2024, 6:26 p.m. OK PyPy 3-64 TESTS 6 109 2457600
270767430 NitroSpear C July 15, 2024, 8:11 p.m. OK PyPy 3-64 TESTS 6 109 2969600
270790058 hello_world0421 C July 16, 2024, 1:35 a.m. OK PyPy 3-64 TESTS 6 109 7065600
270806597 snowball_ice_cream C July 16, 2024, 4:26 a.m. OK PyPy 3-64 TESTS 6 124 2969600
270791989 uma_6850 C July 16, 2024, 1:56 a.m. OK PyPy 3-64 TESTS 6 124 2969600
270755477 ab2009 C July 15, 2024, 6:25 p.m. OK PyPy 3-64 TESTS 6 124 2969600
270773565 DerWilleZurMacht C July 15, 2024, 9:22 p.m. OK PyPy 3-64 TESTS 6 124 3072000
270796670 Torge C July 16, 2024, 2:44 a.m. OK Python 3 TESTS 6 78 0
270796429 Torge C July 16, 2024, 2:42 a.m. OK Python 3 TESTS 6 93 0
270794596 YangJJie C July 16, 2024, 2:22 a.m. OK Python 3 TESTS 6 124 0
270792059 eugalt C July 16, 2024, 1:56 a.m. OK Python 3 TESTS 6 124 0
270755609 nazeeftham007 C July 15, 2024, 6:25 p.m. OK Python 3 TESTS 6 124 0
270797544 eugalt C July 16, 2024, 2:53 a.m. OK Python 3 TESTS 6 125 0
270760584 DrMurad C July 15, 2024, 7:05 p.m. OK Python 3 TESTS 6 125 0
270813006 hkd85 C July 16, 2024, 5:34 a.m. OK Python 3 TESTS 6 140 0
270803600 bnuwjy C July 16, 2024, 3:52 a.m. OK Python 3 TESTS 6 140 0
270800232 ironwaste C July 16, 2024, 3:19 a.m. OK Python 3 TESTS 6 140 0
270756000 fieubat2x C July 15, 2024, 6:28 p.m. OK Rust 2021 TESTS 6 46 0
270752302 Cheshulko C July 15, 2024, 6:02 p.m. OK Rust 2021 TESTS 6 77 0

remove filters

Back to search problems