結果
問題 |
No.9001 標準入出力の練習問題(テスト用)
|
ユーザー |
![]() |
提出日時 | 2019-03-11 10:06:00 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 158 ms / 1,000 ms |
コード長 | 616 bytes |
コンパイル時間 | 2,194 ms |
コンパイル使用メモリ | 77,076 KB |
実行使用メモリ | 54,864 KB |
最終ジャッジ日時 | 2024-06-23 15:25:55 |
合計ジャッジ時間 | 3,122 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 |
ソースコード
import java.util.*; class Main { private static final String SPLIT_STR = " "; private static final String SPACE = " "; public static void main(String[] args) { // Scanner生成 Scanner sc = new Scanner(System.in); // 入力設定 String[] input = sc.nextLine().split(SPLIT_STR); int num1 = Integer.parseInt(input[0]); int num2 = Integer.parseInt(input[1]); sc.reset(); String str = sc.nextLine(); // Scannerクローズ sc.close(); // 結果 String result = ""; // メイン処理 result = String.valueOf(num1 + num2) + SPACE + str; // 出力 System.out.println(result); } }