結果

問題 No.530 年齢って毎年変わるし覚えるの難しいよね
ユーザー Amanita2016
提出日時 2017-06-27 16:47:21
言語 Java
(openjdk 23)
結果
AC  
実行時間 128 ms / 2,000 ms
コード長 293 bytes
コンパイル時間 3,329 ms
コンパイル使用メモリ 74,060 KB
実行使用メモリ 41,528 KB
最終ジャッジ日時 2024-10-04 11:36:28
合計ジャッジ時間 9,658 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 48
権限があれば一括ダウンロードができます

ソースコード

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