scripts/ege/26.py
2023-05-05 00:45:01 +03:00

11 lines
251 B
Python
Vendored

with open("26-84.txt") as f:
data = f.read().splitlines()
n = int(data[0])
groups = list(map(int, data[1].split()))
rooms = list(map(int, data[2].split()))
min_r = min(rooms)
min_g = [x for x in groups if x <= min_r]
print(len(min_g))