結果
| 問題 |
No.216 FAC
|
| コンテスト | |
| ユーザー |
naoe123
|
| 提出日時 | 2020-01-14 00:26:56 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 32 ms / 1,000 ms |
| コード長 | 186 bytes |
| コンパイル時間 | 127 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-12-23 07:21:33 |
| 合計ジャッジ時間 | 1,961 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
ソースコード
N=int(input())
a=list(map(int,input().split()))
b=list(map(int,input().split()))
l=[0]*101
for i in range(N):
l[b[i]]+=a[i]
if l[0]==max(l):
print('YES')
else:
print('NO')
naoe123