Shattered Cake

This commit is contained in:
2023-06-23 23:19:18 +02:00
parent ab487f6d40
commit b0eafc3be0

9
shatteredcake.py Normal file
View 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)