/ 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: unsupported operand type(s) for //: 'str' and 'int' 14ms 3.109 MiB
#2 Runtime Error Traceback (most recent call last): File "foo.py", line 3, in <module> TypeError: unsupported operand type(s) for //: 'str' and 'int' 14ms 3.113 MiB

Code

x=(input())
num=x
y=x//2
while(x>=2):
    num=num+y
    x=y+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:39:01
Judged At
2025-08-30 19:39:01
Judged By
Score
0
Total Time
14ms
Peak Memory
3.113 MiB