結果

問題 No.512 魔法少女の追いかけっこ
ユーザー takepantakepan
提出日時 2017-05-05 23:21:03
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 274 bytes
コンパイル時間 1,055 ms
コンパイル使用メモリ 18,540 KB
実行使用メモリ 19,028 KB
最終ジャッジ日時 2023-09-09 13:16:02
合計ジャッジ時間 3,541 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
18,640 KB
testcase_01 AC 15 ms
18,732 KB
testcase_02 WA -
testcase_03 AC 15 ms
18,776 KB
testcase_04 WA -
testcase_05 AC 14 ms
18,816 KB
testcase_06 AC 15 ms
18,804 KB
testcase_07 AC 14 ms
18,868 KB
testcase_08 AC 15 ms
18,812 KB
testcase_09 WA -
testcase_10 AC 14 ms
18,796 KB
testcase_11 AC 15 ms
18,768 KB
testcase_12 AC 15 ms
18,796 KB
testcase_13 AC 15 ms
18,896 KB
testcase_14 AC 15 ms
18,680 KB
testcase_15 AC 15 ms
18,740 KB
testcase_16 AC 14 ms
18,668 KB
testcase_17 AC 15 ms
18,868 KB
testcase_18 AC 15 ms
18,936 KB
testcase_19 AC 16 ms
18,760 KB
testcase_20 AC 15 ms
18,776 KB
testcase_21 AC 14 ms
18,920 KB
testcase_22 AC 14 ms
18,860 KB
testcase_23 AC 15 ms
18,876 KB
testcase_24 WA -
testcase_25 AC 15 ms
18,744 KB
testcase_26 AC 15 ms
19,004 KB
testcase_27 AC 15 ms
18,600 KB
testcase_28 AC 16 ms
18,824 KB
testcase_29 AC 16 ms
18,820 KB
testcase_30 AC 15 ms
18,820 KB
testcase_31 AC 15 ms
18,736 KB
testcase_32 AC 14 ms
18,728 KB
testcase_33 AC 14 ms
18,808 KB
testcase_34 AC 15 ms
18,756 KB
testcase_35 AC 14 ms
18,744 KB
testcase_36 AC 14 ms
18,804 KB
testcase_37 AC 14 ms
18,924 KB
testcase_38 AC 14 ms
18,852 KB
testcase_39 AC 14 ms
18,884 KB
testcase_40 AC 14 ms
18,888 KB
testcase_41 AC 15 ms
18,740 KB
testcase_42 AC 14 ms
18,656 KB
testcase_43 AC 14 ms
18,816 KB
testcase_44 AC 14 ms
18,808 KB
testcase_45 AC 14 ms
18,760 KB
testcase_46 AC 14 ms
18,808 KB
testcase_47 WA -
testcase_48 AC 14 ms
18,760 KB
testcase_49 AC 14 ms
18,796 KB
testcase_50 AC 14 ms
18,872 KB
testcase_51 AC 14 ms
18,744 KB
testcase_52 AC 14 ms
18,728 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
    fscanf (STDIN, "%d %d", $X, $Y);
    fscanf (STDIN, "%d", $N);
    $A = explode(" ", trim(fgets(STDIN)));
    for ($i = 0; $i < $N - 1; $i++) {
        if ($A[$i] / $X * $Y > $A[$i+1]) {
            echo "NO\n";
            exit;
        }
    }

    echo "YES\n";
0