結果
| 問題 |
No.1472 作為の和
|
| コンテスト | |
| ユーザー |
ks2m
|
| 提出日時 | 2021-04-09 22:05:06 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 405 bytes |
| コンパイル時間 | 2,319 ms |
| コンパイル使用メモリ | 74,588 KB |
| 実行使用メモリ | 38,156 KB |
| 最終ジャッジ日時 | 2024-06-25 05:34:05 |
| 合計ジャッジ時間 | 3,636 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 9 |
ソースコード
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");
}
}
}
ks2m