結果

問題 No.530 年齢って毎年変わるし覚えるの難しいよね
ユーザー samplelpmassamplelpmas
提出日時 2017-06-26 21:23:51
言語 Java21
(openjdk 21)
結果
AC  
実行時間 131 ms / 2,000 ms
コード長 236 bytes
コンパイル時間 2,349 ms
コンパイル使用メモリ 74,304 KB
実行使用メモリ 56,196 KB
最終ジャッジ日時 2024-04-15 01:58:36
合計ジャッジ時間 9,162 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
54,380 KB
testcase_01 AC 122 ms
54,012 KB
testcase_02 AC 123 ms
53,796 KB
testcase_03 AC 123 ms
53,968 KB
testcase_04 AC 124 ms
53,908 KB
testcase_05 AC 126 ms
54,052 KB
testcase_06 AC 124 ms
54,252 KB
testcase_07 AC 128 ms
54,260 KB
testcase_08 AC 124 ms
53,880 KB
testcase_09 AC 125 ms
54,172 KB
testcase_10 AC 124 ms
53,984 KB
testcase_11 AC 125 ms
54,124 KB
testcase_12 AC 125 ms
53,820 KB
testcase_13 AC 122 ms
53,964 KB
testcase_14 AC 126 ms
53,832 KB
testcase_15 AC 125 ms
53,896 KB
testcase_16 AC 127 ms
53,972 KB
testcase_17 AC 126 ms
54,172 KB
testcase_18 AC 128 ms
54,124 KB
testcase_19 AC 126 ms
56,196 KB
testcase_20 AC 129 ms
53,944 KB
testcase_21 AC 126 ms
54,160 KB
testcase_22 AC 131 ms
54,024 KB
testcase_23 AC 127 ms
54,036 KB
testcase_24 AC 126 ms
53,932 KB
testcase_25 AC 126 ms
54,076 KB
testcase_26 AC 127 ms
54,200 KB
testcase_27 AC 127 ms
54,264 KB
testcase_28 AC 123 ms
54,156 KB
testcase_29 AC 126 ms
54,032 KB
testcase_30 AC 124 ms
54,032 KB
testcase_31 AC 126 ms
54,036 KB
testcase_32 AC 124 ms
53,896 KB
testcase_33 AC 125 ms
53,872 KB
testcase_34 AC 125 ms
54,196 KB
testcase_35 AC 128 ms
54,096 KB
testcase_36 AC 125 ms
53,848 KB
testcase_37 AC 127 ms
54,084 KB
testcase_38 AC 130 ms
54,244 KB
testcase_39 AC 129 ms
53,952 KB
testcase_40 AC 125 ms
54,048 KB
testcase_41 AC 126 ms
53,968 KB
testcase_42 AC 123 ms
54,292 KB
testcase_43 AC 125 ms
54,260 KB
testcase_44 AC 126 ms
54,284 KB
testcase_45 AC 128 ms
54,080 KB
testcase_46 AC 128 ms
53,928 KB
testcase_47 AC 126 ms
54,112 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int BIRTH_YEAR = sc.nextInt();

        System.out.println(2017 - BIRTH_YEAR);

    }

}
0