結果

問題 No.1472 作為の和
ユーザー ks2mks2m
提出日時 2021-04-09 22:20:51
言語 Java21
(openjdk 21)
結果
AC  
実行時間 70 ms / 2,000 ms
コード長 405 bytes
コンパイル時間 3,652 ms
コンパイル使用メモリ 78,500 KB
実行使用メモリ 50,808 KB
最終ジャッジ日時 2023-09-07 11:46:37
合計ジャッジ時間 5,101 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
49,308 KB
testcase_01 AC 68 ms
50,808 KB
testcase_02 AC 68 ms
50,496 KB
testcase_03 AC 67 ms
50,368 KB
testcase_04 AC 68 ms
50,364 KB
testcase_05 AC 69 ms
50,292 KB
testcase_06 AC 69 ms
50,500 KB
testcase_07 AC 69 ms
50,384 KB
testcase_08 AC 70 ms
50,292 KB
testcase_09 AC 70 ms
48,828 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

public class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int n = Integer.parseInt(br.readLine());
		br.close();

		if (n == 0) {
			System.out.println("9 1");
		} else {
			int ans = 18 * n + 8;
			System.out.println(ans + " 1");
		}
	}
}
0