fork download
  1. # your code goes here
  2. v=input
  3. n = int(v())
  4. answer = 0
  5. while(n) :
  6. n-=1
  7. a, b = [float(x) for x in input().split()]
  8. answer += a*b
  9. print(answer)
Success #stdin #stdout 0.02s 9420KB
stdin
5
1.0 12.0
0.7 5.2
0.9 10.7
0.5 20.4
0.2 30.0
stdout
41.47