結果

問題 No.395 永遠の17歳
ユーザー papinianuspapinianus
提出日時 2016-07-25 10:29:45
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 112 bytes
コンパイル時間 97 ms
コンパイル使用メモリ 30,868 KB
実行使用メモリ 30,956 KB
最終ジャッジ日時 2024-04-24 08:52:45
合計ジャッジ時間 1,752 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
30,952 KB
testcase_01 AC 46 ms
30,480 KB
testcase_02 AC 47 ms
30,528 KB
testcase_03 AC 42 ms
30,824 KB
testcase_04 AC 43 ms
30,440 KB
testcase_05 AC 43 ms
30,712 KB
testcase_06 WA -
testcase_07 AC 44 ms
30,756 KB
testcase_08 AC 40 ms
30,540 KB
testcase_09 AC 44 ms
30,700 KB
testcase_10 AC 42 ms
30,648 KB
testcase_11 AC 42 ms
30,364 KB
testcase_12 AC 42 ms
30,708 KB
testcase_13 AC 41 ms
30,644 KB
testcase_14 AC 41 ms
30,656 KB
testcase_15 AC 43 ms
30,616 KB
testcase_16 AC 40 ms
30,928 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