Beakjoon&프로그래머스/파이썬

[백준/파이썬] 32762번 더치 페이

현장 2025. 6. 20. 19:45

-Code

from sys import stdin
input = stdin.readline

n, m = map(int, input().split())

for _ in range(n):
    s, t = map(int, input().split())

total = 0

for _ in range(m):
    t, p = map(int, input().split())
    total += p

print(f"{total / n:.4f}")