結果
| 問題 | No.216 FAC |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-27 19:24:47 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 24 ms / 1,000 ms |
| コード長 | 249 bytes |
| 記録 | |
| コンパイル時間 | 1,489 ms |
| コンパイル使用メモリ | 85,572 KB |
| 実行使用メモリ | 53,696 KB |
| 最終ジャッジ日時 | 2026-05-08 07:48:01 |
| 合計ジャッジ時間 | 3,754 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
ソースコード
N = int(input())
score = [0] * (101)
A = list(map(int, input().split()))
B = list(map(int, input().split()))
for i in range(N):
score[B[i]] += A[i]
if max(score) == score[0]:
print('YES')
else:
print('NO')