結果

問題 No.2056 非力なレッド
ユーザー mino_yellowmino_yellow
提出日時 2022-11-23 03:26:48
言語 PHP
(8.3.4)
結果
AC  
実行時間 76 ms / 2,000 ms
コード長 285 bytes
コンパイル時間 3,912 ms
コンパイル使用メモリ 32,296 KB
実行使用メモリ 50,864 KB
最終ジャッジ日時 2023-10-24 16:56:55
合計ジャッジ時間 9,255 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
32,648 KB
testcase_01 AC 40 ms
32,712 KB
testcase_02 AC 38 ms
32,648 KB
testcase_03 AC 39 ms
32,712 KB
testcase_04 AC 40 ms
32,648 KB
testcase_05 AC 39 ms
32,648 KB
testcase_06 AC 39 ms
32,712 KB
testcase_07 AC 38 ms
32,712 KB
testcase_08 AC 38 ms
32,712 KB
testcase_09 AC 38 ms
32,712 KB
testcase_10 AC 38 ms
32,712 KB
testcase_11 AC 39 ms
32,648 KB
testcase_12 AC 40 ms
32,712 KB
testcase_13 AC 59 ms
42,672 KB
testcase_14 AC 52 ms
42,672 KB
testcase_15 AC 59 ms
42,672 KB
testcase_16 AC 41 ms
32,648 KB
testcase_17 AC 49 ms
40,624 KB
testcase_18 AC 40 ms
32,648 KB
testcase_19 AC 41 ms
32,648 KB
testcase_20 AC 64 ms
46,768 KB
testcase_21 AC 48 ms
34,480 KB
testcase_22 AC 54 ms
42,672 KB
testcase_23 AC 52 ms
40,624 KB
testcase_24 AC 49 ms
36,528 KB
testcase_25 AC 66 ms
48,816 KB
testcase_26 AC 68 ms
48,816 KB
testcase_27 AC 66 ms
48,816 KB
testcase_28 AC 72 ms
50,864 KB
testcase_29 AC 72 ms
50,864 KB
testcase_30 AC 72 ms
50,864 KB
testcase_31 AC 72 ms
50,864 KB
testcase_32 AC 73 ms
50,864 KB
testcase_33 AC 76 ms
50,864 KB
testcase_34 AC 64 ms
50,864 KB
testcase_35 AC 73 ms
50,864 KB
testcase_36 AC 63 ms
50,864 KB
testcase_37 AC 64 ms
50,864 KB
testcase_38 AC 40 ms
32,648 KB
testcase_39 AC 39 ms
32,712 KB
testcase_40 AC 39 ms
32,712 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
fscanf(STDIN,"%d%d%d",$N,$X,$M);
$a = array_map('intval',explode(" ", trim(fgets(STDIN))));

$div = 1;
for($i=$N-1;$i>=0;--$i){
    while(intdiv($a[$i],$div) >= $X){
        $div *= 2;
        $M -= $i+1;
        if($M < 0) exit("No" . PHP_EOL);
    }
}
echo "Yes" . PHP_EOL;

?>
0