Advertisement
nq1s788

9(2)

May 8th, 2024
453
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. #https://inf-ege.sdamgia.ru/problem?id=38943
  2. data = open('09 (1).csv').readlines()
  3. answ = 0
  4. for s in data:
  5.     a = list(map(int, s.split(';')[:3]))
  6.     a.sort()
  7.     if a[0] ** 2 + a[1] ** 2 > a[2] ** 2:
  8.         answ += 1
  9. print(answ)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement