結果

問題 No.395 永遠の17歳
ユーザー matsuyoshi30matsuyoshi30
提出日時 2017-01-11 23:51:00
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 385 bytes
コンパイル時間 2,019 ms
コンパイル使用メモリ 72,656 KB
実行使用メモリ 57,648 KB
最終ジャッジ日時 2023-08-23 08:33:26
合計ジャッジ時間 5,257 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 127 ms
56,096 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 129 ms
55,492 KB
testcase_06 AC 127 ms
55,740 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 124 ms
39,940 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 123 ms
39,480 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;

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

        int ans = -1;

        if(a > 14) {
            ans = a - 1;
        }

        System.out.println(ans);

        in.close();
    }
}
0