結果
問題 | No.216 FAC |
ユーザー |
👑 |
提出日時 | 2020-06-09 21:14:34 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 35 ms / 1,000 ms |
コード長 | 288 bytes |
コンパイル時間 | 166 ms |
コンパイル使用メモリ | 12,160 KB |
実行使用メモリ | 10,368 KB |
最終ジャッジ日時 | 2025-01-02 19:32:08 |
合計ジャッジ時間 | 2,058 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 |
ソースコード
n = int(input())a_s = list(map(int, input().split()))b_s = list(map(int, input().split()))lst = [0 for _ in range(100)]point = 0for a, b in zip(a_s, b_s):if b == 0:point += aelse:lst[b - 1] += aif point >= max(lst):print("YES")else:print("NO")