結果

問題 No.395 永遠の17歳
ユーザー BantakoBantako
提出日時 2017-04-11 15:32:58
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 274 bytes
コンパイル時間 1,870 ms
コンパイル使用メモリ 71,088 KB
実行使用メモリ 56,464 KB
最終ジャッジ日時 2023-09-25 08:38:20
合計ジャッジ時間 4,951 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,848 KB
testcase_01 AC 123 ms
55,856 KB
testcase_02 WA -
testcase_03 AC 122 ms
55,828 KB
testcase_04 AC 126 ms
55,436 KB
testcase_05 AC 123 ms
53,508 KB
testcase_06 AC 127 ms
55,408 KB
testcase_07 AC 124 ms
55,784 KB
testcase_08 AC 122 ms
56,176 KB
testcase_09 AC 122 ms
55,444 KB
testcase_10 AC 122 ms
55,948 KB
testcase_11 AC 124 ms
55,784 KB
testcase_12 AC 124 ms
55,748 KB
testcase_13 WA -
testcase_14 AC 122 ms
55,952 KB
testcase_15 AC 123 ms
56,108 KB
testcase_16 AC 120 ms
55,868 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;
class Test02{
	public static void main(String args[])throws IOException{
		Scanner	scan = new Scanner(System.in);
		int num = scan.nextInt();
		if(num < 17){
			System.out.println("-1");
		}else{
			System.out.println(num - 7);
		}
	}
}
0