結果

問題 No.530 年齢って毎年変わるし覚えるの難しいよね
ユーザー GrenacheGrenache
提出日時 2017-07-15 11:27:05
言語 Java21
(openjdk 21)
結果
AC  
実行時間 140 ms / 2,000 ms
コード長 526 bytes
コンパイル時間 4,117 ms
コンパイル使用メモリ 74,352 KB
実行使用メモリ 41,816 KB
最終ジャッジ日時 2024-04-16 21:40:17
合計ジャッジ時間 12,036 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 138 ms
41,392 KB
testcase_01 AC 134 ms
41,484 KB
testcase_02 AC 136 ms
41,320 KB
testcase_03 AC 135 ms
41,404 KB
testcase_04 AC 137 ms
41,736 KB
testcase_05 AC 137 ms
41,388 KB
testcase_06 AC 136 ms
41,324 KB
testcase_07 AC 136 ms
41,364 KB
testcase_08 AC 135 ms
41,568 KB
testcase_09 AC 137 ms
41,596 KB
testcase_10 AC 135 ms
41,656 KB
testcase_11 AC 135 ms
41,316 KB
testcase_12 AC 122 ms
40,476 KB
testcase_13 AC 138 ms
41,504 KB
testcase_14 AC 137 ms
41,612 KB
testcase_15 AC 135 ms
41,276 KB
testcase_16 AC 138 ms
41,424 KB
testcase_17 AC 137 ms
41,388 KB
testcase_18 AC 134 ms
41,504 KB
testcase_19 AC 137 ms
41,656 KB
testcase_20 AC 120 ms
40,500 KB
testcase_21 AC 132 ms
41,084 KB
testcase_22 AC 133 ms
41,496 KB
testcase_23 AC 134 ms
41,584 KB
testcase_24 AC 134 ms
41,552 KB
testcase_25 AC 138 ms
41,484 KB
testcase_26 AC 140 ms
41,244 KB
testcase_27 AC 133 ms
41,368 KB
testcase_28 AC 136 ms
41,416 KB
testcase_29 AC 133 ms
41,412 KB
testcase_30 AC 136 ms
41,296 KB
testcase_31 AC 138 ms
41,372 KB
testcase_32 AC 138 ms
41,504 KB
testcase_33 AC 136 ms
41,268 KB
testcase_34 AC 121 ms
40,388 KB
testcase_35 AC 137 ms
41,360 KB
testcase_36 AC 138 ms
41,248 KB
testcase_37 AC 138 ms
41,444 KB
testcase_38 AC 136 ms
41,248 KB
testcase_39 AC 135 ms
41,800 KB
testcase_40 AC 135 ms
41,280 KB
testcase_41 AC 136 ms
41,808 KB
testcase_42 AC 137 ms
41,244 KB
testcase_43 AC 138 ms
41,484 KB
testcase_44 AC 137 ms
41,816 KB
testcase_45 AC 139 ms
41,364 KB
testcase_46 AC 137 ms
41,256 KB
testcase_47 AC 138 ms
41,608 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;


public class Main_yukicoder530 {

	private static Scanner sc;
	private static Printer pr;

	private static void solve() {
		int y = sc.nextInt();

		pr.println(2017 - y);
	}

	// ---------------------------------------------------
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		pr = new Printer(System.out);

		solve();

		pr.close();
		sc.close();
	}

	private static class Printer extends PrintWriter {
		Printer(PrintStream out) {
			super(out);
		}
	}
}
0