Accepted
Code
n = int(input())
reminder = n % 3
if reminder == 0:
print(n // 3)
elif reminder == 1:
print(max((n // 3) - 1, 0) + 2)
else:
print((n // 3) + 1)
Information
- Submit By
- Type
- Submission
- Problem
- P1106 too easy or three easy
- Language
- Python 3 (Python 3.12.3)
- Submit At
- 2024-11-04 15:15:07
- Judged At
- 2024-11-11 02:33:48
- Judged By
- Score
- 100
- Total Time
- 15ms
- Peak Memory
- 3.016 MiB