結果

問題 No.365 ジェンガソート
ユーザー papinianuspapinianus
提出日時 2016-09-01 14:24:01
言語 PHP
(8.3.4)
結果
AC  
実行時間 46 ms / 2,000 ms
コード長 187 bytes
コンパイル時間 85 ms
コンパイル使用メモリ 32,272 KB
実行使用メモリ 38,712 KB
最終ジャッジ日時 2024-04-27 14:11:17
合計ジャッジ時間 2,809 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
32,400 KB
testcase_01 AC 36 ms
32,400 KB
testcase_02 AC 36 ms
32,404 KB
testcase_03 AC 34 ms
32,212 KB
testcase_04 AC 36 ms
32,404 KB
testcase_05 AC 39 ms
32,400 KB
testcase_06 AC 35 ms
32,404 KB
testcase_07 AC 35 ms
32,272 KB
testcase_08 AC 38 ms
32,400 KB
testcase_09 AC 37 ms
32,272 KB
testcase_10 AC 36 ms
32,344 KB
testcase_11 AC 37 ms
32,344 KB
testcase_12 AC 35 ms
32,404 KB
testcase_13 AC 36 ms
32,400 KB
testcase_14 AC 38 ms
32,272 KB
testcase_15 AC 36 ms
32,400 KB
testcase_16 AC 40 ms
36,412 KB
testcase_17 AC 44 ms
38,584 KB
testcase_18 AC 36 ms
32,528 KB
testcase_19 AC 42 ms
38,584 KB
testcase_20 AC 38 ms
34,616 KB
testcase_21 AC 37 ms
32,276 KB
testcase_22 AC 41 ms
36,408 KB
testcase_23 AC 40 ms
34,364 KB
testcase_24 AC 43 ms
36,408 KB
testcase_25 AC 37 ms
32,404 KB
testcase_26 AC 39 ms
34,488 KB
testcase_27 AC 46 ms
38,588 KB
testcase_28 AC 40 ms
34,616 KB
testcase_29 AC 41 ms
38,584 KB
testcase_30 AC 41 ms
34,364 KB
testcase_31 AC 38 ms
32,404 KB
testcase_32 AC 36 ms
32,528 KB
testcase_33 AC 45 ms
38,588 KB
testcase_34 AC 36 ms
32,400 KB
testcase_35 AC 39 ms
36,536 KB
testcase_36 AC 43 ms
38,456 KB
testcase_37 AC 43 ms
38,708 KB
testcase_38 AC 42 ms
38,712 KB
testcase_39 AC 45 ms
38,456 KB
testcase_40 AC 44 ms
38,584 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$n = trim(fgets(STDIN));
$nums = explode(" ", trim(fgets(STDIN)));
$tail = $n;
for($n--;$n>=0;$n--) {
    if($nums[$n] == $tail) {
        $tail--;
    }
}
echo $tail;
echo PHP_EOL;
0