結果
問題 | No.216 FAC |
ユーザー | y_nakamura_CC2 |
提出日時 | 2018-02-04 22:42:42 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 32 ms / 1,000 ms |
コード長 | 279 bytes |
コンパイル時間 | 83 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-06-30 04:05:21 |
合計ジャッジ時間 | 1,788 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 |
ソースコード
N = int (input()) S = [int(x) for x in input().split()] P = [int(x) for x in input().split()] PS = [0 for x in range(101)] isWin = True for i in range(N): PS[P[i]] += S[i] for i in range(1, len(PS)): if PS[0] < PS[i]: isWin = False print(("NO","YES")[isWin])