結果
問題 |
No.216 FAC
|
ユーザー |
|
提出日時 | 2018-01-18 22:40:34 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 334 bytes |
コンパイル時間 | 107 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-12-24 07:46:18 |
合計ジャッジ時間 | 2,191 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 19 RE * 5 |
ソースコード
def main(): N = int(input()) a = list(map(int, input().split())) b = list(map(int, input().split())) ab = {i:0 for i in set(b)} for x in range(N): ab[b[x]] += a[x] if max(ab.values()) == ab[0]: print('YES') else: print('NO') if __name__ == '__main__': main()