結果

問題 No.395 永遠の17歳
ユーザー Natsume-MNatsume-M
提出日時 2016-11-28 20:55:56
言語 Java21
(openjdk 21)
結果
AC  
実行時間 144 ms / 1,000 ms
コード長 191 bytes
コンパイル時間 2,639 ms
コンパイル使用メモリ 74,624 KB
実行使用メモリ 54,468 KB
最終ジャッジ日時 2024-04-15 09:27:32
合計ジャッジ時間 5,322 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 144 ms
54,444 KB
testcase_01 AC 141 ms
54,244 KB
testcase_02 AC 138 ms
54,068 KB
testcase_03 AC 137 ms
53,976 KB
testcase_04 AC 138 ms
54,468 KB
testcase_05 AC 142 ms
54,076 KB
testcase_06 AC 136 ms
53,872 KB
testcase_07 AC 135 ms
54,440 KB
testcase_08 AC 143 ms
54,232 KB
testcase_09 AC 141 ms
53,968 KB
testcase_10 AC 140 ms
54,184 KB
testcase_11 AC 138 ms
54,136 KB
testcase_12 AC 143 ms
54,092 KB
testcase_13 AC 141 ms
53,796 KB
testcase_14 AC 139 ms
53,860 KB
testcase_15 AC 140 ms
54,124 KB
testcase_16 AC 143 ms
54,308 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
class y395 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a=sc.nextInt();
		System.out.println(a<15?-1:(a-7));
		sc.close();
	}
}
0