結果

問題 No.512 魔法少女の追いかけっこ
ユーザー takakin
提出日時 2020-04-19 11:30:10
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 259 bytes
コンパイル時間 113 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-10-04 21:27:16
合計ジャッジ時間 3,522 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 49 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=lambda: sys.stdin.readline().rstrip()
x,y=map(int,input().split())
n=int(input())
A=[int(i) for i in input().split()]
tx,ty=0,A[0]/y
for i in range(n-1):
  tx+=A[i]/x
  ty+=A[i+1]/y
  if ty<tx:
    print("NO")
    break
else:
  print("YES")

0