Accepted
Code
x=int(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:54:37
- Judged At
- 2025-08-30 19:54:37
- Judged By
- Score
- 100
- Total Time
- 36ms
- Peak Memory
- 3.117 MiB