結果
| 問題 |
No.216 FAC
|
| コンテスト | |
| ユーザー |
bellangeldindon
|
| 提出日時 | 2019-05-09 13:21:00 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 13 ms / 1,000 ms |
| コード長 | 318 bytes |
| コンパイル時間 | 47 ms |
| コンパイル使用メモリ | 6,784 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2024-07-02 00:48:24 |
| 合計ジャッジ時間 | 1,412 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
ソースコード
N = int(raw_input()) score = map(int, raw_input().split()) solver = map(int, raw_input().split()) totalscore = [] for i in range(0, 101): totalscore.append(0) for i in range(0, N): totalscore[solver[i]] += score[i] ans = 'YES' for i in range(1, 101): if totalscore[0] < totalscore[i]: ans = 'NO' break print ans
bellangeldindon