fork(3) download
  1. n = input()
  2. ans = 0
  3. mn = 200
  4. for i in range(n):
  5. a, p = map(int, raw_input().split(' '))
  6. mn = min(mn, p)
  7. ans += a * mn
  8. print ans
  9.  
Runtime error #stdin #stdout #stderr 0.01s 9016KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "prog.py", line 1, in <module>
EOFError: EOF when reading a line