Submission details
Task:Lukujono
Sender:sevti
Submission time:2025-10-31 01:43:48 +0200
Language:text
Status:READY
Result:0
Feedback
groupverdictscore
#10
Test results
testverdicttimescore
#10.00 s0details

Code

x = int(input())
ans = []


while True:
    ans.append(str(x))
    if x == 1:
        break
    if x % 2 == 0:
        x //= 2
    else:
        x = 3 * x + 1
        
print(" ".join(ans))

Test details

Test 1 (public)

Verdict:

input
(empty)

correct output
(empty)

user output
x = int(input())
ans = []


while True:
...

Feedback: Error: invalid command x