15 lines
228 B
Python
15 lines
228 B
Python
# Python!
|
|
|
|
with open('03.txt') as file:
|
|
sets = file.read().splitlines()
|
|
|
|
count = 0
|
|
|
|
for i, s in enumerate(sets):
|
|
set = [int(n) for n in s.split()]
|
|
set.sort()
|
|
if set[0] + set[1] > set[2]:
|
|
count += 1
|
|
|
|
print('Total:', count)
|