結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
39,212 KB
testcase_01 WA -
testcase_02 AC 40 ms
32,272 KB
testcase_03 AC 40 ms
32,276 KB
testcase_04 AC 40 ms
32,404 KB
testcase_05 AC 40 ms
32,272 KB
testcase_06 AC 40 ms
32,400 KB
testcase_07 AC 40 ms
32,268 KB
testcase_08 AC 40 ms
32,272 KB
testcase_09 AC 40 ms
32,276 KB
testcase_10 WA -
testcase_11 AC 41 ms
32,148 KB
testcase_12 WA -
testcase_13 AC 39 ms
32,276 KB
testcase_14 AC 40 ms
32,148 KB
testcase_15 AC 40 ms
32,272 KB
testcase_16 AC 423 ms
32,144 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;$n--) {
    $pos = strpos($numstr, (string)$n);
    if($pos > $tail) {
        break;
    }
    $tail = $pos;
}
echo $n;
echo PHP_EOL;
0