Skip to content

Instantly share code, notes, and snippets.

@ZeronSix
Created November 13, 2015 12:48
Show Gist options
  • Save ZeronSix/9cbd648559f4930d237b to your computer and use it in GitHub Desktop.
Save ZeronSix/9cbd648559f4930d237b to your computer and use it in GitHub Desktop.
15. Дороги
n = int(input())
k = 0
for _ in range(n):
for j in input().split():
if j == "1":
k += 1
print(k // 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment