結果

問題 No.395 永遠の17歳
ユーザー TatsuDXTatsuDX
提出日時 2016-09-03 14:31:47
言語 Java21
(openjdk 21)
結果
AC  
実行時間 172 ms / 1,000 ms
コード長 245 bytes
コンパイル時間 4,289 ms
コンパイル使用メモリ 75,056 KB
実行使用メモリ 41,876 KB
最終ジャッジ日時 2024-04-15 09:10:38
合計ジャッジ時間 7,964 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 164 ms
41,356 KB
testcase_01 AC 168 ms
41,488 KB
testcase_02 AC 164 ms
41,472 KB
testcase_03 AC 156 ms
41,184 KB
testcase_04 AC 167 ms
41,632 KB
testcase_05 AC 159 ms
41,616 KB
testcase_06 AC 165 ms
41,556 KB
testcase_07 AC 172 ms
41,376 KB
testcase_08 AC 158 ms
41,612 KB
testcase_09 AC 160 ms
41,508 KB
testcase_10 AC 164 ms
41,188 KB
testcase_11 AC 156 ms
41,876 KB
testcase_12 AC 166 ms
41,804 KB
testcase_13 AC 161 ms
41,480 KB
testcase_14 AC 161 ms
41,508 KB
testcase_15 AC 167 ms
41,564 KB
testcase_16 AC 157 ms
41,732 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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

		int n = sc.nextInt();
		if (n < 15) {
			System.out.println(-1);
		} else {
			System.out.println(n - 7);
		}
	}
}
0