結果

問題 No.395 永遠の17歳
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2016-11-11 02:33:44
言語 Java21
(openjdk 21)
結果
AC  
実行時間 142 ms / 1,000 ms
コード長 307 bytes
コンパイル時間 2,614 ms
コンパイル使用メモリ 74,656 KB
実行使用メモリ 54,412 KB
最終ジャッジ日時 2024-04-15 09:26:37
合計ジャッジ時間 5,293 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 138 ms
53,892 KB
testcase_01 AC 139 ms
54,112 KB
testcase_02 AC 138 ms
54,020 KB
testcase_03 AC 134 ms
54,128 KB
testcase_04 AC 137 ms
54,080 KB
testcase_05 AC 137 ms
53,944 KB
testcase_06 AC 141 ms
54,100 KB
testcase_07 AC 137 ms
54,156 KB
testcase_08 AC 138 ms
54,260 KB
testcase_09 AC 139 ms
54,300 KB
testcase_10 AC 140 ms
54,240 KB
testcase_11 AC 142 ms
54,372 KB
testcase_12 AC 142 ms
54,412 KB
testcase_13 AC 138 ms
54,112 KB
testcase_14 AC 140 ms
54,276 KB
testcase_15 AC 138 ms
54,236 KB
testcase_16 AC 142 ms
54,236 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        if(N<15){
            System.out.println(-1);
        }else{
            int a = N-7;
            System.out.println(a);
        }
    }
}
0