結果

問題 No.481 1から10
ユーザー しのっちしのっち
提出日時 2019-06-13 16:34:14
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 186 bytes
コンパイル時間 395 ms
コンパイル使用メモリ 31,012 KB
実行使用メモリ 31,432 KB
最終ジャッジ日時 2024-04-22 15:23:19
合計ジャッジ時間 1,650 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
31,244 KB
testcase_01 AC 38 ms
31,432 KB
testcase_02 AC 39 ms
31,228 KB
testcase_03 AC 40 ms
31,304 KB
testcase_04 AC 38 ms
30,984 KB
testcase_05 AC 41 ms
31,344 KB
testcase_06 AC 40 ms
31,220 KB
testcase_07 AC 38 ms
31,428 KB
testcase_08 AC 40 ms
31,076 KB
testcase_09 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
  $wrote = explode(" ", trim(fgets(STDIN)));
  $j = 0;
  foreach ($wrote as $number) {
    if (($number - $j) > 1) {
      echo($number - 1);
      die;
    }
    $j = $number;
  }
0