結果

問題 No.395 永遠の17歳
ユーザー 4A9GN4A9GN
提出日時 2016-07-17 21:56:21
言語 Java21
(openjdk 21)
結果
AC  
実行時間 142 ms / 1,000 ms
コード長 275 bytes
コンパイル時間 2,196 ms
コンパイル使用メモリ 74,516 KB
実行使用メモリ 42,012 KB
最終ジャッジ日時 2024-04-15 08:42:06
合計ジャッジ時間 5,390 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 138 ms
41,732 KB
testcase_01 AC 138 ms
41,792 KB
testcase_02 AC 137 ms
41,492 KB
testcase_03 AC 141 ms
42,012 KB
testcase_04 AC 139 ms
41,420 KB
testcase_05 AC 137 ms
41,856 KB
testcase_06 AC 137 ms
41,304 KB
testcase_07 AC 141 ms
41,396 KB
testcase_08 AC 139 ms
41,528 KB
testcase_09 AC 138 ms
41,580 KB
testcase_10 AC 141 ms
41,684 KB
testcase_11 AC 139 ms
41,196 KB
testcase_12 AC 140 ms
41,776 KB
testcase_13 AC 138 ms
41,492 KB
testcase_14 AC 141 ms
41,760 KB
testcase_15 AC 142 ms
41,768 KB
testcase_16 AC 137 ms
41,412 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
	int n = sc.nextInt();

        if (n <= 14) {
	    System.out.println("-1");
	} else {
	    System.out.printf("%d\n", n - 7);
	}
    }
}
0