結果

問題 No.395 永遠の17歳
ユーザー t8m8⛄️t8m8⛄️
提出日時 2016-08-21 15:49:49
言語 Java21
(openjdk 21)
結果
AC  
実行時間 164 ms / 1,000 ms
コード長 749 bytes
コンパイル時間 4,748 ms
コンパイル使用メモリ 84,456 KB
実行使用メモリ 54,480 KB
最終ジャッジ日時 2024-04-15 09:09:34
合計ジャッジ時間 9,315 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 159 ms
54,472 KB
testcase_01 AC 157 ms
54,136 KB
testcase_02 AC 157 ms
54,248 KB
testcase_03 AC 160 ms
54,480 KB
testcase_04 AC 159 ms
54,316 KB
testcase_05 AC 164 ms
54,448 KB
testcase_06 AC 160 ms
54,228 KB
testcase_07 AC 163 ms
54,444 KB
testcase_08 AC 158 ms
54,248 KB
testcase_09 AC 158 ms
54,300 KB
testcase_10 AC 160 ms
54,400 KB
testcase_11 AC 161 ms
54,384 KB
testcase_12 AC 160 ms
54,076 KB
testcase_13 AC 164 ms
54,156 KB
testcase_14 AC 161 ms
54,324 KB
testcase_15 AC 158 ms
54,332 KB
testcase_16 AC 155 ms
54,248 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;
import java.awt.geom.*;
import java.math.*;

public class No0395 {

	static final Scanner in = new Scanner(System.in);
	static final PrintWriter out = new PrintWriter(System.out,false);
	static boolean debug = false;

	static void solve() {
		int a = in.nextInt();
		for (int i=8; i<1000; i++) {
			if (7 + i == a) {
				out.println(i);
				return;
			}
		}
		out.println("-1");
	}

	public static void main(String[] args) {
		debug = args.length > 0;
		long start = System.nanoTime();

		solve();
		out.flush();

		long end = System.nanoTime();
		dump((end - start) / 1000000 + " ms");
		in.close();
		out.close();
	}

	static void dump(Object... o) { if (debug) System.err.println(Arrays.deepToString(o)); }
}
0