結果
問題 | No.216 FAC |
ユーザー |
![]() |
提出日時 | 2019-03-24 17:17:55 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 255 bytes |
コンパイル時間 | 134 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-10-02 13:40:07 |
合計ジャッジ時間 | 1,728 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 RE * 11 |
ソースコード
N=int(input()) a=[int(i) for i in input().split()] b=[int(i) for i in input().split()] score=[0 for i in range(100)] for i in range(N): if b[i]!=0: score[b[i]]+=a[i] a[i]=0 if sum(a)>=max(score): print("YES") else: print("NO")