結果
問題 | No.216 FAC |
ユーザー | トミー |
提出日時 | 2024-04-30 00:43:22 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 388 bytes |
コンパイル時間 | 194 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 52,224 KB |
最終ジャッジ日時 | 2024-11-19 10:40:26 |
合計ジャッジ時間 | 2,441 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 WA * 2 |
ソースコード
def main(): n = int(input()) a = list(map(int, input().split())) b = list(map(int, input().split())) scores = [0 for i in range(100)] score = 0 for i, j in enumerate(b): if j == 0: score += a[i] else: scores[i] += a[i] ans = "YES" if score >= max(scores) else "NO" print(ans) if __name__ == "__main__": main()