結果

問題 No.244 ★1のグラフの問題
ユーザー jimanojimano
提出日時 2016-01-11 10:48:19
言語 Java21
(openjdk 21)
結果
AC  
実行時間 51 ms / 2,000 ms
コード長 455 bytes
コンパイル時間 3,658 ms
コンパイル使用メモリ 74,896 KB
実行使用メモリ 50,448 KB
最終ジャッジ日時 2024-04-15 03:09:54
合計ジャッジ時間 3,733 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 49 ms
50,300 KB
testcase_01 AC 50 ms
50,448 KB
testcase_02 AC 50 ms
50,284 KB
testcase_03 AC 50 ms
50,264 KB
testcase_04 AC 50 ms
50,408 KB
testcase_05 AC 49 ms
50,424 KB
testcase_06 AC 51 ms
50,224 KB
testcase_07 AC 49 ms
50,264 KB
testcase_08 AC 50 ms
50,288 KB
testcase_09 AC 51 ms
50,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

public class No0244 {
	public static void main(String[] args) {
		int num = 0;
		
		try (BufferedReader br = 
new BufferedReader(new InputStreamReader(System.in))) {
			num = Integer.parseInt(br.readLine()) - 1;
		} catch (NumberFormatException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		System.out.println(num);
	}
}
0