Shattered Cake
This commit is contained in:
9
shatteredcake.py
Normal file
9
shatteredcake.py
Normal file
@@ -0,0 +1,9 @@
|
||||
w = int(input())
|
||||
n = int(input())
|
||||
|
||||
s = 0
|
||||
for _ in range(n):
|
||||
x, y = map(int, input().split())
|
||||
s += x * y
|
||||
|
||||
print(s // w)
|
||||
Reference in New Issue
Block a user