結果

問題 No.200 カードファイト!
コンテスト
ユーザー gew1fw
提出日時 2025-06-12 21:45:49
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 336 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 221 ms
コンパイル使用メモリ 96,216 KB
実行使用メモリ 79,180 KB
最終ジャッジ日時 2026-07-12 04:31:33
合計ジャッジ時間 3,466 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 14 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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