結果
問題 |
No.481 1から10
|
ユーザー |
|
提出日時 | 2020-12-26 17:58:21 |
言語 | PHP (843.2) |
結果 |
AC
|
実行時間 | 41 ms / 2,000 ms |
コード長 | 339 bytes |
コンパイル時間 | 2,343 ms |
コンパイル使用メモリ | 31,892 KB |
実行使用メモリ | 32,656 KB |
最終ジャッジ日時 | 2024-09-24 20:36:07 |
合計ジャッジ時間 | 3,008 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php /** * No.388 階段 (1) * * @see https://yukicoder.me/problems/no/481 */ $expectedNums = range(1, 10); $inputChars = explode(' ', trim(fgets(STDIN))); foreach ($expectedNums as $expectedNum) { if (!in_array($expectedNum, $inputChars)) { echo $expectedNum . "\n"; // 存在しなかった数 break; } }