結果
| 問題 | 
                            No.216 FAC
                             | 
                    
| コンテスト | |
| ユーザー | 
                             matsu7874
                         | 
                    
| 提出日時 | 2015-10-07 02:21:12 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 200 bytes | 
| コンパイル時間 | 85 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,624 KB | 
| 最終ジャッジ日時 | 2024-07-20 01:49:27 | 
| 合計ジャッジ時間 | 1,795 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 WA * 2 | 
| other | AC * 15 WA * 9 | 
ソースコード
N = int(input())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
P = [0] * 101
for i in range(N):
    P[A[i]] += B[i]
if max(P) == P[0]:
    print('YES')
else:
    print('NO')
            
            
            
        
            
matsu7874