結果
問題 | No.216 FAC |
ユーザー |
![]() |
提出日時 | 2018-12-18 17:36:26 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 34 ms / 1,000 ms |
コード長 | 219 bytes |
コンパイル時間 | 97 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-09-25 07:45:07 |
合計ジャッジ時間 | 1,874 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 |
ソースコード
n = int(input())a = [int(x) for x in input().split()]b = [int(x) for x in input().split()]score = [0] * 101for i in range(n):score[b[i]] += a[i]if score[0] >= max(score[1:]):print('YES')else:print('NO')