結果
| 問題 |
No.216 FAC
|
| コンテスト | |
| ユーザー |
もぐら 3.0
|
| 提出日時 | 2023-11-14 07:54:54 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 38 ms / 1,000 ms |
| コード長 | 213 bytes |
| コンパイル時間 | 141 ms |
| コンパイル使用メモリ | 82,252 KB |
| 実行使用メモリ | 52,352 KB |
| 最終ジャッジ日時 | 2024-09-26 03:30:30 |
| 合計ジャッジ時間 | 2,077 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
ソースコード
N = int(input())
a=list(map(int,input().split()))
b=list(map(int,input().split()))
scores = [0]*101
for i in range(N):
scores[b[i]]+=a[i]
if scores[0]>=max(scores[1:]):
print("YES")
else:
print("NO")
もぐら 3.0