結果

問題 No.512 魔法少女の追いかけっこ
ユーザー sue_charosue_charo
提出日時 2017-05-05 22:29:53
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 769 bytes
コンパイル時間 86 ms
コンパイル使用メモリ 10,896 KB
実行使用メモリ 10,176 KB
最終ジャッジ日時 2023-09-09 12:50:00
合計ジャッジ時間 3,703 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
9,968 KB
testcase_01 AC 31 ms
10,064 KB
testcase_02 AC 32 ms
10,028 KB
testcase_03 AC 31 ms
10,008 KB
testcase_04 AC 31 ms
10,056 KB
testcase_05 AC 31 ms
10,040 KB
testcase_06 AC 31 ms
9,956 KB
testcase_07 AC 31 ms
9,972 KB
testcase_08 AC 33 ms
10,152 KB
testcase_09 AC 32 ms
10,092 KB
testcase_10 AC 31 ms
10,076 KB
testcase_11 AC 32 ms
10,104 KB
testcase_12 AC 32 ms
10,020 KB
testcase_13 AC 32 ms
9,964 KB
testcase_14 AC 32 ms
10,104 KB
testcase_15 AC 32 ms
9,972 KB
testcase_16 AC 31 ms
10,152 KB
testcase_17 AC 32 ms
10,080 KB
testcase_18 AC 31 ms
10,064 KB
testcase_19 AC 31 ms
10,148 KB
testcase_20 AC 31 ms
10,008 KB
testcase_21 AC 32 ms
10,020 KB
testcase_22 AC 31 ms
10,112 KB
testcase_23 AC 30 ms
10,040 KB
testcase_24 AC 31 ms
10,060 KB
testcase_25 AC 31 ms
9,968 KB
testcase_26 AC 31 ms
9,984 KB
testcase_27 AC 31 ms
10,168 KB
testcase_28 AC 32 ms
9,980 KB
testcase_29 AC 31 ms
10,080 KB
testcase_30 AC 33 ms
9,960 KB
testcase_31 AC 32 ms
10,060 KB
testcase_32 AC 31 ms
10,020 KB
testcase_33 AC 31 ms
10,176 KB
testcase_34 AC 31 ms
10,088 KB
testcase_35 AC 32 ms
10,096 KB
testcase_36 AC 31 ms
10,040 KB
testcase_37 AC 32 ms
9,968 KB
testcase_38 AC 32 ms
10,008 KB
testcase_39 AC 32 ms
9,960 KB
testcase_40 AC 31 ms
10,020 KB
testcase_41 AC 31 ms
10,120 KB
testcase_42 AC 32 ms
10,108 KB
testcase_43 AC 32 ms
10,104 KB
testcase_44 AC 31 ms
10,104 KB
testcase_45 AC 31 ms
9,964 KB
testcase_46 AC 31 ms
10,120 KB
testcase_47 AC 32 ms
9,980 KB
testcase_48 AC 31 ms
9,964 KB
testcase_49 WA -
testcase_50 WA -
testcase_51 AC 32 ms
10,156 KB
testcase_52 AC 31 ms
9,984 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8
import array, bisect, collections, copy, heapq, itertools, math, random, re, string, sys, time
sys.setrecursionlimit(10 ** 7)
INF = 10 ** 20
MOD = 10 ** 9 + 7


def II(): return int(input())
def ILI(): return list(map(int, input().split()))
def IAI(LINE): return [ILI() for __ in range(LINE)]
def IDI(): return {key: value for key, value in ILI()}


def solve(X, Y, N, A):
    # x_m = X * 1000 / 3600
    # y_m = Y * 1000 / 3600
    l_x = [a / X for a in A]
    l_y = [a / Y for a in A]

    ans = "NO"
    for i in range(N - 2):
        if l_y[i + 1] < l_x[i]:
            break
    else:
        ans = "YES"

    return ans


def main():
    X, Y = ILI()
    N = II()
    A = ILI()
    print(solve(X, Y, N, A))


if __name__ == "__main__":
    main()
0