mirror of
https://github.com/Alexander-D-Karpov/scripts.git
synced 2024-11-24 12:33:45 +03:00
11 lines
251 B
Python
11 lines
251 B
Python
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))
|