結果

問題 No.365 ジェンガソート
ユーザー papinianuspapinianus
提出日時 2016-09-01 14:12:08
言語 PHP
(8.3.4)
結果
TLE  
実行時間 -
コード長 228 bytes
コンパイル時間 109 ms
コンパイル使用メモリ 32,272 KB
実行使用メモリ 39,212 KB
最終ジャッジ日時 2024-04-27 14:11:02
合計ジャッジ時間 4,987 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
39,212 KB
testcase_01 AC 39 ms
32,528 KB
testcase_02 AC 40 ms
32,016 KB
testcase_03 AC 38 ms
32,404 KB
testcase_04 AC 38 ms
32,404 KB
testcase_05 AC 38 ms
32,272 KB
testcase_06 AC 38 ms
32,400 KB
testcase_07 AC 38 ms
32,400 KB
testcase_08 AC 38 ms
32,400 KB
testcase_09 AC 39 ms
32,272 KB
testcase_10 AC 40 ms
32,404 KB
testcase_11 AC 38 ms
32,344 KB
testcase_12 AC 40 ms
32,020 KB
testcase_13 AC 39 ms
32,400 KB
testcase_14 AC 38 ms
32,080 KB
testcase_15 AC 37 ms
32,216 KB
testcase_16 AC 417 ms
32,212 KB
testcase_17 TLE -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
testcase_40 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$n = trim(fgets(STDIN));
$numstr = trim(fgets(STDIN));
$tail = strlen($numstr);
for(;$n;$n--) {
    $pos = strpos($numstr, (string)$n);
    if($pos > $tail) {
        break;
    }
    $tail = $pos;
}
echo $n;
echo PHP_EOL;
0