結果

問題 No.395 永遠の17歳
ユーザー Tsukasa_TypeTsukasa_Type
提出日時 2018-02-21 19:33:39
言語 Java21
(openjdk 21)
結果
AC  
実行時間 139 ms / 1,000 ms
コード長 205 bytes
コンパイル時間 2,173 ms
コンパイル使用メモリ 74,192 KB
実行使用メモリ 57,816 KB
最終ジャッジ日時 2023-10-19 04:01:56
合計ジャッジ時間 5,483 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 137 ms
57,548 KB
testcase_01 AC 137 ms
57,816 KB
testcase_02 AC 139 ms
55,472 KB
testcase_03 AC 135 ms
57,592 KB
testcase_04 AC 135 ms
57,552 KB
testcase_05 AC 137 ms
57,712 KB
testcase_06 AC 137 ms
57,536 KB
testcase_07 AC 139 ms
57,588 KB
testcase_08 AC 138 ms
57,692 KB
testcase_09 AC 138 ms
57,684 KB
testcase_10 AC 136 ms
57,548 KB
testcase_11 AC 133 ms
57,300 KB
testcase_12 AC 136 ms
57,496 KB
testcase_13 AC 134 ms
55,716 KB
testcase_14 AC 132 ms
57,308 KB
testcase_15 AC 135 ms
57,540 KB
testcase_16 AC 133 ms
57,504 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		int n = sc.nextInt();
		int x = n - 7;
		System.out.println(x<8?-1:x);
	}
}
0