結果

問題 No.395 永遠の17歳
ユーザー tsunabittsunabit
提出日時 2019-06-02 14:41:57
言語 Java21
(openjdk 21)
結果
AC  
実行時間 132 ms / 1,000 ms
コード長 419 bytes
コンパイル時間 3,203 ms
コンパイル使用メモリ 74,608 KB
実行使用メモリ 57,692 KB
最終ジャッジ日時 2023-10-17 23:02:44
合計ジャッジ時間 6,621 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
57,516 KB
testcase_01 AC 132 ms
57,508 KB
testcase_02 AC 131 ms
57,484 KB
testcase_03 AC 117 ms
56,296 KB
testcase_04 AC 130 ms
57,444 KB
testcase_05 AC 130 ms
57,512 KB
testcase_06 AC 131 ms
57,692 KB
testcase_07 AC 129 ms
57,532 KB
testcase_08 AC 117 ms
56,272 KB
testcase_09 AC 131 ms
57,536 KB
testcase_10 AC 130 ms
57,456 KB
testcase_11 AC 132 ms
57,508 KB
testcase_12 AC 128 ms
57,380 KB
testcase_13 AC 130 ms
57,628 KB
testcase_14 AC 132 ms
57,428 KB
testcase_15 AC 130 ms
57,488 KB
testcase_16 AC 129 ms
57,500 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.math.*;

public class No395 {
    public static void main(String[] args) {
        // 標準入力から読み込む際に、Scannerオブジェクトを使う。
        Scanner s = new Scanner(System.in);
        int a = s.nextInt();
        // x + 7 = a
        if((a - 7) > 7)  {
        	System.out.println(a - 7);
        }else {
        	System.out.println(-1);
        }
    }
}
0