結果
問題 | No.216 FAC |
ユーザー |
|
提出日時 | 2020-09-24 14:23:33 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 418 bytes |
コンパイル時間 | 116 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-06-28 04:54:01 |
合計ジャッジ時間 | 1,757 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 WA * 6 |
ソースコード
# coding=utf-8:n = int(input())q = list(map(int ,input().split()))p = list(map(int, input().split()))score = list()o_score = 0k_score = 0for i, j in zip(q, p):if j == 0:k_score += ielse:score.append(i)if len(score) == 0:o_score = 0elif len(score) == 1:o_score = score[0]else:o_score = min(set(score))if k_score >= o_score:print("YES")else:print("NO")