結果
問題 |
No.216 FAC
|
ユーザー |
![]() |
提出日時 | 2015-08-14 14:46:11 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 238 bytes |
コンパイル時間 | 36 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-18 09:22:33 |
合計ジャッジ時間 | 1,269 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 WA * 9 |
ソースコード
N = int(raw_input()) score = map(int,raw_input().split()) solve = map(int,raw_input().split()) scoreSum = sum(score) scoreMod = sum([score[i] for i in range(N) if solve[i] == 0]) if scoreMod >= scoreSum / 2: print "YES" else: print "NO"