結果

問題 No.395 永遠の17歳
ユーザー kano_town
提出日時 2016-07-15 22:30:07
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 294 bytes
コンパイル時間 3,310 ms
コンパイル使用メモリ 74,084 KB
実行使用メモリ 41,336 KB
最終ジャッジ日時 2024-10-15 04:16:29
合計ジャッジ時間 6,344 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 15 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Yukicoder395 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int res = -1;
        if (A >= 8) {
            res = A - 7;
        }
        System.out.println(res);
    }
}
0