結果

問題 No.395 永遠の17歳
ユーザー 4A9GN
提出日時 2016-07-17 21:56:21
言語 Java
(openjdk 23)
結果
AC  
実行時間 134 ms / 1,000 ms
コード長 275 bytes
コンパイル時間 2,242 ms
コンパイル使用メモリ 74,204 KB
実行使用メモリ 41,408 KB
最終ジャッジ日時 2024-10-05 01:19:14
合計ジャッジ時間 5,290 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
	int n = sc.nextInt();

        if (n <= 14) {
	    System.out.println("-1");
	} else {
	    System.out.printf("%d\n", n - 7);
	}
    }
}
0