結果
問題 |
No.200 カードファイト!
|
ユーザー |
![]() |
提出日時 | 2025-06-12 17:02:42 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 336 bytes |
コンパイル時間 | 330 ms |
コンパイル使用メモリ | 82,328 KB |
実行使用メモリ | 54,196 KB |
最終ジャッジ日時 | 2025-06-12 17:02:44 |
合計ジャッジ時間 | 2,475 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 WA * 12 |
ソースコード
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)