Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- days = int(input())
- total_treated = 0
- total_untreated = 0
- treated = 0
- untreated = 0
- docs = 7
- for i in range(1, days+1):
- if i % 3 == 0:
- if total_untreated > total_treated:
- docs += 1
- patients = int(input())
- if patients <= docs:
- treated = patients
- untreated = 0
- else:
- treated = docs
- untreated = (patients-docs)
- total_treated += treated
- total_untreated += untreated
- print(f'Treated patients: {total_treated}.')
- print(f'Untreated patients: {total_untreated}.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement