nq1s788

9

Oct 29th, 2025
453
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. #https://inf-ege.sdamgia.ru/problem?id=58321
  2. data = open('9.txt').readlines()
  3. a = []
  4. for e in data:
  5.     a.append(list(map(int, e.split())))
  6. answ = 0
  7. for e in a:
  8.     e.sort()
  9.     if e[0] * 6 < e[1] + e[2] + e[3] and e[0] * e[3] > e[1] * e[2]:
  10.         answ += 1
  11. print(answ)
Advertisement
Add Comment
Please, Sign In to add comment