結果
問題 | No.1472 作為の和 |
ユーザー |
![]() |
提出日時 | 2021-04-09 22:20:51 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 75 ms / 2,000 ms |
コード長 | 405 bytes |
コンパイル時間 | 2,993 ms |
コンパイル使用メモリ | 76,084 KB |
実行使用メモリ | 38,116 KB |
最終ジャッジ日時 | 2024-06-25 05:55:35 |
合計ジャッジ時間 | 3,805 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
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"); } } }