백준 24077번: 比較 (Comparison) #Python

ColorlessDia·2026년 2월 16일

algorithm/baekjoon

목록 보기
821/836
N, M = map(int, input().split())
A_list = list(map(int, input().split()))
B_list = list(map(int, input().split()))

count = 0

for i in range(N):
    A = A_list[i]

    for j in range(M):
        B = B_list[j]

        if A <= B:
            count += 1

print(count)

0개의 댓글