11 lines
209 B
Python
11 lines
209 B
Python
cost = float(input())
|
|
nb_lawns = int(input())
|
|
|
|
total = 0
|
|
for i in range(nb_lawns):
|
|
line = input()
|
|
width, length = line.split(' ')
|
|
total = float(width)* float(length)*cost + total
|
|
|
|
print(total)
|