結果
| 問題 | No.216 FAC |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-11-30 23:31:22 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 293 bytes |
| 記録 | |
| コンパイル時間 | 654 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 20,696 KB |
| 最終ジャッジ日時 | 2026-03-25 04:14:04 |
| 合計ジャッジ時間 | 6,590 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 RE * 5 |
ソースコード
n=int(input())
sl=list(map(int,input().split()))
tl=input().split()
d={}
for i in range(n):
if tl[i] not in d:
d[tl[i]]=sl[i]
else:
d[tl[i]]+=sl[i]
dic2 = sorted(d.items(), key=lambda x:x[1], reverse=True)
if d['0']==dic2[0][1]:
print("YES")
else:
print("NO")