結果

問題 No.756 チャンパーノウン定数 (1)
ユーザー dyechidyechi
提出日時 2019-03-28 12:10:33
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 329 bytes
コンパイル時間 385 ms
コンパイル使用メモリ 30,768 KB
実行使用メモリ 31,252 KB
最終ジャッジ日時 2024-04-20 19:34:10
合計ジャッジ時間 2,305 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
30,912 KB
testcase_01 WA -
testcase_02 AC 36 ms
30,856 KB
testcase_03 AC 38 ms
31,096 KB
testcase_04 AC 37 ms
31,008 KB
testcase_05 AC 36 ms
30,640 KB
testcase_06 AC 36 ms
31,044 KB
testcase_07 AC 36 ms
30,732 KB
testcase_08 WA -
testcase_09 AC 35 ms
30,780 KB
testcase_10 AC 35 ms
30,544 KB
testcase_11 AC 36 ms
30,852 KB
testcase_12 AC 36 ms
30,832 KB
testcase_13 AC 37 ms
30,916 KB
testcase_14 AC 38 ms
30,832 KB
testcase_15 AC 37 ms
30,856 KB
testcase_16 AC 34 ms
30,844 KB
testcase_17 AC 36 ms
30,972 KB
testcase_18 AC 36 ms
30,880 KB
testcase_19 AC 34 ms
30,688 KB
testcase_20 AC 34 ms
30,844 KB
testcase_21 AC 37 ms
31,044 KB
testcase_22 AC 34 ms
30,716 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$s = trim(fgets(STDIN));

$champernowne_constant = "0.";
$i = 1;
while ($i <= 100) {
    $champernowne_constant .= $i;
//    echo $champernowne_constant.PHP_EOL;
    if (substr($champernowne_constant, $s + 1, 1) != false) {
        echo substr($champernowne_constant, $s + 1, 1).PHP_EOL;
        break;
    }
    $i++;
}
?>
0