結果

問題 No.216 FAC
ユーザー szkake
提出日時 2015-08-26 23:47:18
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 270 bytes
コンパイル時間 297 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-07-18 14:46:28
合計ジャッジ時間 1,836 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19 RE * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding:utf-8 -*-
if __name__ == '__main__':
    n = int(input())
    abn = tuple(zip(map(int, input().split()), map(int, input().split())))
    l = {b: 0 for a, b in abn}
    for a, b in abn:
        l[b] += a
    print("YES" if l[0] == max(l.values()) else "NO")
0