Advertisement
Guest User

Untitled

a guest
Dec 8th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. m = int(input())
  2. res = []
  3. ans = 0
  4. b = ""
  5. for i in range(m):
  6.     b = input()
  7.     c = b.split()
  8.     list1 = [int(i) for i in c]
  9.     res.append(list1)
  10. n = int(input())
  11. for i in range(m):
  12.     if len(res[i]) > n:
  13.         ans += (res[i][n - 1] * res[i][-1]) / 100
  14.     else:
  15.         ans += 1
  16. print(ans)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement