結果

問題 No.395 永遠の17歳
ユーザー fal_rndfal_rnd
提出日時 2016-10-31 16:29:54
言語 Java21
(openjdk 21)
結果
AC  
実行時間 138 ms / 1,000 ms
コード長 239 bytes
コンパイル時間 2,228 ms
コンパイル使用メモリ 74,896 KB
実行使用メモリ 50,628 KB
最終ジャッジ日時 2024-04-15 09:25:40
合計ジャッジ時間 5,252 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 135 ms
50,156 KB
testcase_01 AC 131 ms
50,136 KB
testcase_02 AC 128 ms
50,500 KB
testcase_03 AC 130 ms
50,024 KB
testcase_04 AC 135 ms
50,536 KB
testcase_05 AC 133 ms
50,416 KB
testcase_06 AC 131 ms
50,100 KB
testcase_07 AC 130 ms
50,296 KB
testcase_08 AC 129 ms
50,304 KB
testcase_09 AC 131 ms
50,264 KB
testcase_10 AC 132 ms
50,248 KB
testcase_11 AC 137 ms
49,868 KB
testcase_12 AC 138 ms
49,884 KB
testcase_13 AC 133 ms
50,628 KB
testcase_14 AC 131 ms
50,160 KB
testcase_15 AC 133 ms
50,372 KB
testcase_16 AC 131 ms
50,296 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
class A {
	static Scanner s = new Scanner(System.in);

	public static void main(String[] args) {
		int i = Integer.parseInt(s.next());
		if(i<15){
			System.out.println(-1);
		}else{
			System.out.println(i-7);
		}
	}
}
0