結果

問題 No.395 永遠の17歳
ユーザー samplelpmassamplelpmas
提出日時 2017-01-05 19:56:26
言語 Java21
(openjdk 21)
結果
AC  
実行時間 139 ms / 1,000 ms
コード長 312 bytes
コンパイル時間 2,477 ms
コンパイル使用メモリ 75,012 KB
実行使用メモリ 41,692 KB
最終ジャッジ日時 2024-04-15 09:28:59
合計ジャッジ時間 5,024 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
41,244 KB
testcase_01 AC 120 ms
39,884 KB
testcase_02 AC 114 ms
40,012 KB
testcase_03 AC 115 ms
40,256 KB
testcase_04 AC 136 ms
41,240 KB
testcase_05 AC 133 ms
41,272 KB
testcase_06 AC 139 ms
41,268 KB
testcase_07 AC 137 ms
41,692 KB
testcase_08 AC 132 ms
41,328 KB
testcase_09 AC 132 ms
41,496 KB
testcase_10 AC 128 ms
41,228 KB
testcase_11 AC 115 ms
40,328 KB
testcase_12 AC 128 ms
41,364 KB
testcase_13 AC 129 ms
41,264 KB
testcase_14 AC 130 ms
41,432 KB
testcase_15 AC 133 ms
41,280 KB
testcase_16 AC 128 ms
41,268 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int AGE = sc.nextInt();

        if (AGE >= 15) {
            System.out.println(AGE - 7);
        } else {
            System.out.println(-1);
        }

    }

}
0