結果
問題 | No.216 FAC |
ユーザー |
![]() |
提出日時 | 2021-05-24 06:08:49 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 42 ms / 1,000 ms |
コード長 | 181 bytes |
コンパイル時間 | 226 ms |
コンパイル使用メモリ | 82,044 KB |
実行使用メモリ | 52,480 KB |
最終ジャッジ日時 | 2024-10-12 12:04:15 |
合計ジャッジ時間 | 2,198 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 |
ソースコード
n=int(input())a=list(map(int,input().split()))b=list(map(int,input().split()))ct=[0]*101for i in range(n):ct[b[i]]+=a[i]if max(ct)==ct[0]:print('YES')else:print('NO')