Submission details
Task:Lukujono
Sender:JuusoH
Submission time:2025-11-09 18:16:37 +0200
Language:text
Status:READY
Result:44
Feedback
groupverdictscore
#1ACCEPTED44
Test results
testverdicttimescore
#1ACCEPTED0.00 s44details

Code

# Assign big num for loop (113)
INCREASE L INCREASE L INCREASE L INCREASE L INCREASE L
REPEAT L TIMES (
    INCREASE L INCREASE L INCREASE L INCREASE L
)
REPEAT L TIMES (
    INCREASE L INCREASE L INCREASE L
)
INCREASE L INCREASE L INCREASE L INCREASE L INCREASE L INCREASE L INCREASE L INCREASE L INCREASE L INCREASE L INCREASE L INCREASE L INCREASE L

# PRINT L
 
INCREASE B
 
# I: bool - is iteration ongoing (hasn't reached 1 and should still iterate)
 
# check: do we start iterating (is x > 1) --> I
REPEAT X TIMES ( 
    # if K is true: set I to true
    REPEAT K TIMES (
        CLEAR I INCREASE I
        CLEAR K
    )
    # set K to true
    INCREASE K
)

REPEAT L TIMES (
    REPEAT I TIMES (
        # Print number of the series

        PRINT X
        
        # calculate halved X to H and find out if X is even in B
        CLEAR H # halved value
        REPEAT X TIMES (
            CLEAR B
            # increment accumulation H if iteration is even
            REPEAT A TIMES (
                INCREASE H
                #CLEAR A
                INCREASE B
            )
            INCREASE A REPEAT B TIMES ( CLEAR A )
        )
        
        # if X is even: move H value to X
        REPEAT B TIMES ( 
            CLEAR I
            CLEAR K
            CLEAR X REPEAT H TIMES ( 
                INCREASE X

                # check if H > 1
                # if K is true: set I to true
                REPEAT K TIMES (
                    CLEAR I INCREASE I
                    CLEAR K
                )
                # set K to true
                INCREASE K
            )
        )
        
        # if x not even
        REPEAT A TIMES (
            # setup for next iter
            CLEAR A
            INCREASE B

            # perform X += 2 * X + 1 and print X

            REPEAT X TIMES (
                INCREASE X
                INCREASE X
            )
            INCREASE X
            PRINT X

            # X is guaranteed to be even and the next num is 3 * H + 2
            CLEAR X REPEAT H TIMES ( INCREASE X INCREASE X INCREASE X )
            INCREASE X INCREASE X
        )
    )
)
INCREASE S
PRINT S

Test details

Test 1 (public)

Verdict: ACCEPTED

input
(empty)

correct output
(empty)

user output
# Assign big num for loop (113...

Feedback: 446 tests processed (command limit exceeded)