Skip to content

Instantly share code, notes, and snippets.

View Chirkeshoff's full-sized avatar
🏠
Работа на дому

Chirkeshoff

🏠
Работа на дому
  • Joined Sep 1, 2025
View GitHub Profile
@Chirkeshoff
Chirkeshoff / gist:b79707acd9bea20bb8af58106e70425c
Created September 4, 2025 18:26
Mad Titan Thanos has collected all 6 Infinity Stones and intends to wipe out half the population of the Universe with a snap of his fingers. However, if the population of the Universe is an odd number, the Titan will show mercy and round up the number of survivors.
n = int(input())
survivors = (n + 1) // 2
print(survivors)