/ SeriousOJ /

Record Detail

Runtime Error


  
# Status Time Cost Memory Cost
#1 Runtime Error Traceback (most recent call last): File "foo.py", line 3, in <module> TypeError: '>=' not supported between instances of 'str' and 'int' 14ms 3.02 MiB
#2 Runtime Error Traceback (most recent call last): File "foo.py", line 3, in <module> TypeError: '>=' not supported between instances of 'str' and 'int' 13ms 3.098 MiB

Code

x=(input())
num=x
while(x>=2):
    num=num+x//2
    x=(x//2)+x%2
print(num)

Information

Submit By
Type
Submission
Problem
P1176 Free chocolate
Language
Python 3 (Python 3.12.3)
Submit At
2025-08-30 19:37:25
Judged At
2025-08-30 19:37:25
Judged By
Score
0
Total Time
14ms
Peak Memory
3.098 MiB