結果

問題 No.530 年齢って毎年変わるし覚えるの難しいよね
ユーザー rabirabi
提出日時 2019-06-24 12:12:49
言語 Java21
(openjdk 21)
結果
AC  
実行時間 44 ms / 2,000 ms
コード長 358 bytes
コンパイル時間 7,213 ms
コンパイル使用メモリ 71,520 KB
実行使用メモリ 49,696 KB
最終ジャッジ日時 2023-08-31 00:19:18
合計ジャッジ時間 11,223 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
49,336 KB
testcase_01 AC 43 ms
49,272 KB
testcase_02 AC 42 ms
49,268 KB
testcase_03 AC 42 ms
49,268 KB
testcase_04 AC 42 ms
49,420 KB
testcase_05 AC 42 ms
49,608 KB
testcase_06 AC 43 ms
49,336 KB
testcase_07 AC 42 ms
49,348 KB
testcase_08 AC 42 ms
49,160 KB
testcase_09 AC 41 ms
49,508 KB
testcase_10 AC 41 ms
49,336 KB
testcase_11 AC 42 ms
49,120 KB
testcase_12 AC 42 ms
49,156 KB
testcase_13 AC 41 ms
49,272 KB
testcase_14 AC 42 ms
49,660 KB
testcase_15 AC 42 ms
49,252 KB
testcase_16 AC 42 ms
49,508 KB
testcase_17 AC 42 ms
49,080 KB
testcase_18 AC 41 ms
49,356 KB
testcase_19 AC 42 ms
49,496 KB
testcase_20 AC 43 ms
49,252 KB
testcase_21 AC 42 ms
49,260 KB
testcase_22 AC 42 ms
49,376 KB
testcase_23 AC 42 ms
49,132 KB
testcase_24 AC 42 ms
49,492 KB
testcase_25 AC 41 ms
49,664 KB
testcase_26 AC 44 ms
49,092 KB
testcase_27 AC 41 ms
49,300 KB
testcase_28 AC 41 ms
49,080 KB
testcase_29 AC 42 ms
49,304 KB
testcase_30 AC 42 ms
49,392 KB
testcase_31 AC 40 ms
47,708 KB
testcase_32 AC 41 ms
49,340 KB
testcase_33 AC 41 ms
49,132 KB
testcase_34 AC 40 ms
49,696 KB
testcase_35 AC 40 ms
49,416 KB
testcase_36 AC 41 ms
47,164 KB
testcase_37 AC 41 ms
49,420 KB
testcase_38 AC 41 ms
49,484 KB
testcase_39 AC 41 ms
49,152 KB
testcase_40 AC 41 ms
49,324 KB
testcase_41 AC 40 ms
49,264 KB
testcase_42 AC 40 ms
49,208 KB
testcase_43 AC 41 ms
49,452 KB
testcase_44 AC 40 ms
49,412 KB
testcase_45 AC 40 ms
49,256 KB
testcase_46 AC 40 ms
49,436 KB
testcase_47 AC 40 ms
49,324 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;


public class Tester2 {

	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int y = Integer.parseInt(br.readLine());
		if(1970<=y && y<=2017)
			System.out.println(2017-y);
	}
}
0