結果

問題 No.9001 標準入出力の練習問題(テスト用)
ユーザー oyafusooyafuso
提出日時 2019-03-11 10:00:19
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 565 bytes
コンパイル時間 2,099 ms
コンパイル使用メモリ 73,624 KB
実行使用メモリ 55,792 KB
最終ジャッジ日時 2023-09-05 20:01:42
合計ジャッジ時間 2,878 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class Main {

	private static final String SPLIT_STR = " ";

	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.next();
		String str = sc.nextLine();
		// Scannerクローズ
		sc.close();

		// 結果
		String result = "";
		// メイン処理
		result = String.valueOf(num1 + num2) + str;

		// 出力
		System.out.println(result);
	}
}
0