結果
問題 | No.216 FAC |
ユーザー |
|
提出日時 | 2017-10-09 01:29:18 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 32 ms / 1,000 ms |
コード長 | 347 bytes |
コンパイル時間 | 89 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-11-17 05:51:51 |
合計ジャッジ時間 | 1,818 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 |
ソースコード
def main(): N = int(input()) A = tuple(map(int, input().split())) B = tuple(map(int, input().split())) score = {0: 0} for i, j in zip(A, B): score[j] = score.get(j, 0) + i k = score[0] for i in score.values(): if k < i: print('NO') break else: print('YES') main()