結果

問題 No.530 年齢って毎年変わるし覚えるの難しいよね
ユーザー Amanita2016Amanita2016
提出日時 2017-06-27 16:47:21
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 293 bytes
コンパイル時間 3,371 ms
コンパイル使用メモリ 74,304 KB
実行使用メモリ 54,296 KB
最終ジャッジ日時 2024-04-15 02:45:07
合計ジャッジ時間 9,737 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
54,288 KB
testcase_01 AC 104 ms
52,824 KB
testcase_02 AC 117 ms
54,004 KB
testcase_03 AC 109 ms
53,060 KB
testcase_04 AC 120 ms
54,100 KB
testcase_05 AC 105 ms
53,036 KB
testcase_06 AC 115 ms
53,984 KB
testcase_07 AC 117 ms
54,220 KB
testcase_08 AC 107 ms
53,004 KB
testcase_09 AC 105 ms
52,984 KB
testcase_10 AC 119 ms
53,972 KB
testcase_11 AC 122 ms
54,260 KB
testcase_12 AC 122 ms
54,052 KB
testcase_13 AC 119 ms
53,992 KB
testcase_14 AC 124 ms
53,896 KB
testcase_15 AC 121 ms
54,156 KB
testcase_16 AC 109 ms
54,228 KB
testcase_17 AC 117 ms
54,008 KB
testcase_18 AC 124 ms
53,852 KB
testcase_19 AC 125 ms
53,984 KB
testcase_20 AC 124 ms
54,296 KB
testcase_21 AC 120 ms
54,172 KB
testcase_22 AC 121 ms
54,236 KB
testcase_23 AC 123 ms
53,880 KB
testcase_24 AC 119 ms
53,900 KB
testcase_25 AC 110 ms
54,152 KB
testcase_26 AC 122 ms
54,236 KB
testcase_27 AC 119 ms
54,040 KB
testcase_28 AC 119 ms
54,020 KB
testcase_29 AC 120 ms
54,092 KB
testcase_30 AC 114 ms
53,944 KB
testcase_31 AC 107 ms
52,980 KB
testcase_32 AC 121 ms
53,968 KB
testcase_33 AC 125 ms
53,972 KB
testcase_34 AC 120 ms
54,172 KB
testcase_35 AC 107 ms
52,996 KB
testcase_36 AC 119 ms
53,844 KB
testcase_37 AC 117 ms
53,916 KB
testcase_38 AC 116 ms
54,192 KB
testcase_39 AC 108 ms
53,000 KB
testcase_40 AC 109 ms
52,852 KB
testcase_41 AC 106 ms
53,060 KB
testcase_42 AC 118 ms
53,964 KB
testcase_43 AC 106 ms
52,908 KB
testcase_44 AC 107 ms
52,896 KB
testcase_45 AC 117 ms
54,048 KB
testcase_46 AC 119 ms
54,104 KB
testcase_47 AC 112 ms
53,392 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Age {
	public static void main(String[] args) {
		@SuppressWarnings("resource")
		Scanner sc =  new Scanner(System.in);
		final int birth = sc.nextInt();
		final int now = 2017;
		final int age = now - birth;
		System.out.println(age);
	}
}
0