Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- current_doctors = 7
- days_to_count = int(input())
- day_counter = 0
- treated_pations_total = 0
- untreated_pations_total = 0
- for days in range(days_to_count):
- visitors = int(input())
- day_counter += 1
- if day_counter == 3 and untreated_pations_total > treated_pations_total:
- current_doctors += 1
- day_counter = 0
- if visitors > current_doctors:
- dayly_treated_pations = current_doctors
- else:
- dayly_treated_pations = visitors
- dayly_untreated_pations = visitors - dayly_treated_pations
- treated_pations_total += dayly_treated_pations
- untreated_pations_total += dayly_untreated_pations
- print(f"Treated patients: {treated_pations_total}.")
- print(f"Untreated patients: {untreated_pations_total}.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement