Submission details
Task:Lukujono
Sender:MattiDragon
Submission time:2025-10-27 22:02:45 +0200
Language:text
Status:READY
Result:25
Feedback
groupverdictscore
#1ACCEPTED25
Test results
testverdicttimescore
#1ACCEPTED0.00 s25details

Code

# Set max iterations
INCREASE A
INCREASE A
REPEAT A TIMES ( INCREASE A )
REPEAT A TIMES ( INCREASE A )
REPEAT A TIMES ( INCREASE A )
REPEAT A TIMES ( INCREASE A )
#REPEAT A TIMES ( INCREASE A )
#REPEAT A TIMES ( INCREASE A )

INCREASE Z # Set main loop flag

REPEAT A TIMES (
REPEAT A TIMES (
REPEAT Z TIMES (
PRINT X

# check if X is even
#   in X: number to check
#   out E: number divided by 2
#   out I: 1 if X == 1 else 0
#   out F: 1 if number is odd, else 0
#   out G: 1 if number is even, else 0
#   uses H
CLEAR E
CLEAR F
CLEAR G INCREASE G
CLEAR H
CLEAR I INCREASE I
REPEAT X TIMES (
    REPEAT G TIMES (
        INCREASE H
        CLEAR G
    )
    REPEAT F TIMES (
        INCREASE E
        INCREASE G
        CLEAR F
        CLEAR H
        CLEAR I
    )
    REPEAT H TIMES (
        INCREASE F
    )
)

# if one, clear Z
REPEAT I TIMES (
    CLEAR Z
    CLEAR F # prevent odd branch from running
)

# if even, set X = E
REPEAT G TIMES (
    CLEAR X
    REPEAT E TIMES (
        INCREASE X
    )
)

# if odd, do X += 2X + 1
REPEAT F TIMES (
    REPEAT X TIMES (
        INCREASE X
        INCREASE X
    )
    INCREASE X
)

) ) )

Test details

Test 1 (public)

Verdict: ACCEPTED

input
(empty)

correct output
(empty)

user output
# Set max iterations
INCREASE A
INCREASE A
REPEAT A TIMES ( INCREASE A )
REPEAT A TIMES ( INCREASE A )
...

Feedback: 253 tests processed (command limit exceeded)