結果

問題 No.216 FAC
ユーザー testtesttesttest
提出日時 2020-09-18 12:46:00
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 257 bytes
コンパイル時間 693 ms
コンパイル使用メモリ 10,504 KB
実行使用メモリ 8,004 KB
最終ジャッジ日時 2023-09-04 08:47:21
合計ジャッジ時間 2,928 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,844 KB
testcase_01 AC 16 ms
7,744 KB
testcase_02 AC 16 ms
7,808 KB
testcase_03 AC 16 ms
7,760 KB
testcase_04 AC 16 ms
7,836 KB
testcase_05 AC 16 ms
7,824 KB
testcase_06 AC 16 ms
7,784 KB
testcase_07 AC 16 ms
7,812 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 15 ms
7,840 KB
testcase_12 WA -
testcase_13 AC 16 ms
7,852 KB
testcase_14 WA -
testcase_15 AC 16 ms
7,792 KB
testcase_16 AC 16 ms
7,796 KB
testcase_17 AC 16 ms
7,744 KB
testcase_18 WA -
testcase_19 AC 15 ms
7,792 KB
testcase_20 WA -
testcase_21 AC 16 ms
7,816 KB
testcase_22 AC 16 ms
7,828 KB
testcase_23 AC 16 ms
7,852 KB
testcase_24 WA -
testcase_25 AC 16 ms
7,840 KB
testcase_26 AC 16 ms
7,792 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
a = input().split()
b = input().split()

K_pt = 0
pt = 0

n = 0

while n < N:
    if int(b[n]) == 0:
        K_pt = K_pt + int(a[n])
    else:
        pt = pt + int(a[n])
    n = n + 1

if K_pt >= pt:
    print("YES")
else:
    print("NO")
0