結果
| 問題 | No.216 FAC |
| コンテスト | |
| ユーザー |
compass19
|
| 提出日時 | 2016-06-03 22:30:10 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 236 bytes |
| 記録 | |
| コンパイル時間 | 55 ms |
| コンパイル使用メモリ | 15,232 KB |
| 実行使用メモリ | 13,440 KB |
| 最終ジャッジ日時 | 2026-09-11 21:49:38 |
| 合計ジャッジ時間 | 2,304 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 15 WA * 3 RE * 6 |
ソースコード
n = int(input())
a = list(map(int, input().split()))
b = list(map(int, input().split()))
c = [0 for i in range(n)]
for i in range(n):
c[n-1-b[i]] = c[n-1-b[i]] + a[i]
if c.index(max(c)) == n-1:
print('YES')
else:
print('NO')
compass19