結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 157 ms
41,972 KB
testcase_01 AC 157 ms
41,672 KB
testcase_02 AC 155 ms
41,796 KB
testcase_03 AC 156 ms
41,500 KB
testcase_04 AC 154 ms
41,804 KB
testcase_05 AC 156 ms
41,776 KB
testcase_06 AC 158 ms
41,512 KB
testcase_07 AC 158 ms
41,472 KB
testcase_08 AC 161 ms
41,904 KB
testcase_09 AC 153 ms
41,484 KB
testcase_10 AC 156 ms
41,692 KB
testcase_11 AC 157 ms
41,844 KB
testcase_12 AC 155 ms
41,376 KB
testcase_13 AC 157 ms
41,420 KB
testcase_14 AC 157 ms
41,520 KB
testcase_15 AC 157 ms
41,772 KB
testcase_16 AC 155 ms
41,556 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 (15 <= AGE) {
            System.out.println(AGE - 7);
        } else {
            System.out.println(-1);
        }

    }

}
0