結果
問題 |
No.216 FAC
|
ユーザー |
![]() |
提出日時 | 2025-08-26 22:39:30 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 61 ms / 1,000 ms |
コード長 | 223 bytes |
コンパイル時間 | 366 ms |
コンパイル使用メモリ | 82,156 KB |
実行使用メモリ | 53,812 KB |
最終ジャッジ日時 | 2025-08-26 22:39:33 |
合計ジャッジ時間 | 2,772 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 |
ソースコード
N = int(input()) A = list(map(int, input().split())) B = list(map(int, input().split())) scores = [0]*(100 + 1) for a, b in zip(A, B): scores[b] += a if max(scores) <= scores[0]: print('YES') else: print('NO')