結果

問題 No.1472 作為の和
ユーザー ks2mks2m
提出日時 2021-04-09 22:05:06
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 405 bytes
コンパイル時間 2,446 ms
コンパイル使用メモリ 74,828 KB
実行使用メモリ 52,812 KB
最終ジャッジ日時 2023-09-07 11:23:41
合計ジャッジ時間 3,857 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 45 ms
49,248 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

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 + 4;
			System.out.println(ans + " 1");
		}
	}
}
0