Shattered Cake
This commit is contained in:
1 parent
ab487f6d40
commit
b0eafc3be0
1 file changed
+9
@@ -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