結果
| 問題 | 
                            No.512 魔法少女の追いかけっこ
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2021-05-03 18:56:00 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 376 bytes | 
| コンパイル時間 | 394 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 10,624 KB | 
| 最終ジャッジ日時 | 2024-07-22 09:46:05 | 
| 合計ジャッジ時間 | 3,900 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 47 WA * 6 | 
ソースコード
import sys
 
sys.setrecursionlimit(10 ** 6)
stdin = sys.stdin
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().strip()
x, y = na()
x = x * 1000 / 3600
y = y * 1000 / 3600
n = ni()
A = na()
for i in range(1, n):
    if A[i - 1] / x <= A[i] / y:
        pass
    else:
        print('NO')
        exit()
print('YES')