結果

問題 No.395 永遠の17歳
ユーザー Daigo HIROOKADaigo HIROOKA
提出日時 2018-05-21 00:42:57
言語 Java21
(openjdk 21)
結果
AC  
実行時間 128 ms / 1,000 ms
コード長 226 bytes
コンパイル時間 4,034 ms
コンパイル使用メモリ 72,472 KB
実行使用メモリ 57,636 KB
最終ジャッジ日時 2023-09-11 00:14:23
合計ジャッジ時間 6,999 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
53,948 KB
testcase_01 AC 124 ms
55,700 KB
testcase_02 AC 126 ms
55,332 KB
testcase_03 AC 125 ms
55,736 KB
testcase_04 AC 124 ms
55,616 KB
testcase_05 AC 127 ms
56,408 KB
testcase_06 AC 125 ms
55,768 KB
testcase_07 AC 126 ms
55,768 KB
testcase_08 AC 125 ms
56,088 KB
testcase_09 AC 128 ms
55,508 KB
testcase_10 AC 125 ms
55,468 KB
testcase_11 AC 126 ms
55,524 KB
testcase_12 AC 124 ms
56,076 KB
testcase_13 AC 124 ms
55,580 KB
testcase_14 AC 126 ms
57,636 KB
testcase_15 AC 123 ms
55,700 KB
testcase_16 AC 122 ms
55,760 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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

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