結果

問題 No.200 カードファイト!
ユーザー gew1fw
提出日時 2025-06-12 21:45:49
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 336 bytes
コンパイル時間 156 ms
コンパイル使用メモリ 81,880 KB
実行使用メモリ 54,044 KB
最終ジャッジ日時 2025-06-12 21:49:45
合計ジャッジ時間 2,150 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 14 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = int(input())
A = list(map(int, input().split()))
c = int(input())
C = list(map(int, input().split()))

A_sorted = sorted(A, reverse=True)
C_sorted = sorted(C)

count = 0
i = 0

for _ in range(n):
    current_c = C_sorted[i % len(C_sorted)]
    if A_sorted[0] > current_c:
        count += 1
    i += 1

print(count)
0