結果

問題 No.216 FAC
ユーザー pluto77pluto77
提出日時 2016-02-11 10:49:59
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 236 bytes
コンパイル時間 550 ms
コンパイル使用メモリ 7,072 KB
実行使用メモリ 6,416 KB
最終ジャッジ日時 2023-10-21 22:54:20
合計ジャッジ時間 2,015 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 10 ms
6,328 KB
testcase_01 AC 9 ms
6,328 KB
testcase_02 AC 10 ms
6,328 KB
testcase_03 AC 10 ms
6,328 KB
testcase_04 AC 9 ms
6,328 KB
testcase_05 AC 8 ms
6,328 KB
testcase_06 AC 8 ms
6,328 KB
testcase_07 AC 11 ms
6,328 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 10 ms
6,328 KB
testcase_12 WA -
testcase_13 AC 9 ms
6,328 KB
testcase_14 WA -
testcase_15 AC 9 ms
6,328 KB
testcase_16 AC 9 ms
6,328 KB
testcase_17 AC 10 ms
6,328 KB
testcase_18 WA -
testcase_19 AC 10 ms
6,328 KB
testcase_20 WA -
testcase_21 AC 10 ms
6,328 KB
testcase_22 AC 10 ms
6,328 KB
testcase_23 AC 10 ms
6,328 KB
testcase_24 WA -
testcase_25 AC 10 ms
6,328 KB
testcase_26 AC 9 ms
6,328 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#coding: utf-8
##yuki_216

n=int(raw_input())
a=[]
b=[]
a=map(int,raw_input().split())
b=map(int,raw_input().split())

K=0
L=0
for i in xrange(n):
 if b[i]==0:
  K+=a[i]
 elif b[i]!=0:
  L+=a[i]

if K>=L:
 print "YES"
else:
 print "NO"
0