結果

問題 No.216 FAC
ユーザー tookunn_1213tookunn_1213
提出日時 2015-08-14 14:46:11
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 238 bytes
コンパイル時間 51 ms
コンパイル使用メモリ 6,636 KB
実行使用メモリ 6,076 KB
最終ジャッジ日時 2023-09-25 11:37:21
合計ジャッジ時間 1,561 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,976 KB
testcase_01 AC 11 ms
6,000 KB
testcase_02 AC 12 ms
5,988 KB
testcase_03 AC 11 ms
5,924 KB
testcase_04 AC 11 ms
5,840 KB
testcase_05 AC 11 ms
6,024 KB
testcase_06 AC 11 ms
6,020 KB
testcase_07 AC 11 ms
5,996 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 10 ms
5,844 KB
testcase_14 WA -
testcase_15 AC 11 ms
5,836 KB
testcase_16 AC 11 ms
5,928 KB
testcase_17 AC 11 ms
6,024 KB
testcase_18 WA -
testcase_19 AC 11 ms
5,876 KB
testcase_20 WA -
testcase_21 AC 10 ms
5,836 KB
testcase_22 AC 11 ms
5,888 KB
testcase_23 AC 11 ms
5,856 KB
testcase_24 WA -
testcase_25 AC 10 ms
5,880 KB
testcase_26 AC 11 ms
5,912 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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"
0