結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,880 KB
testcase_01 AC 125 ms
55,940 KB
testcase_02 WA -
testcase_03 AC 125 ms
56,024 KB
testcase_04 AC 123 ms
56,104 KB
testcase_05 AC 122 ms
55,612 KB
testcase_06 AC 123 ms
55,928 KB
testcase_07 AC 123 ms
56,088 KB
testcase_08 AC 123 ms
56,140 KB
testcase_09 AC 123 ms
55,888 KB
testcase_10 AC 121 ms
55,900 KB
testcase_11 AC 123 ms
55,992 KB
testcase_12 AC 123 ms
55,660 KB
testcase_13 WA -
testcase_14 AC 120 ms
56,192 KB
testcase_15 AC 122 ms
55,632 KB
testcase_16 AC 126 ms
55,616 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