Created
November 13, 2015 12:48
-
-
Save ZeronSix/9cbd648559f4930d237b to your computer and use it in GitHub Desktop.
15. Дороги
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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