Shattered Cake

This commit is contained in:
jadmin committed 2023-06-23 23:19:18 +02:00
1 parent ab487f6d40
commit b0eafc3be0
1 file changed
+9
+9
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)