結果

問題 No.395 永遠の17歳
ユーザー leos_caraxleos_carax
提出日時 2016-10-23 17:09:11
言語 PHP
(8.3.4)
結果
AC  
実行時間 52 ms / 1,000 ms
コード長 111 bytes
コンパイル時間 1,760 ms
コンパイル使用メモリ 31,300 KB
実行使用メモリ 31,640 KB
最終ジャッジ日時 2024-04-15 09:25:19
合計ジャッジ時間 3,325 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 49 ms
31,372 KB
testcase_01 AC 51 ms
31,640 KB
testcase_02 AC 49 ms
31,140 KB
testcase_03 AC 49 ms
31,364 KB
testcase_04 AC 52 ms
31,072 KB
testcase_05 AC 46 ms
30,972 KB
testcase_06 AC 48 ms
31,228 KB
testcase_07 AC 47 ms
31,016 KB
testcase_08 AC 49 ms
31,456 KB
testcase_09 AC 47 ms
31,124 KB
testcase_10 AC 46 ms
31,464 KB
testcase_11 AC 45 ms
31,544 KB
testcase_12 AC 45 ms
31,232 KB
testcase_13 AC 47 ms
31,520 KB
testcase_14 AC 49 ms
31,248 KB
testcase_15 AC 44 ms
31,480 KB
testcase_16 AC 51 ms
31,044 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$age = trim(fgets(STDIN));
$x = $age - 7;
if($x > 7) {
    echo $x;
} else {
    echo -1;
}
echo PHP_EOL;
0