結果

問題 No.9001 標準入出力の練習問題(テスト用)
ユーザー DiveIntoTheSkyDiveIntoTheSky
提出日時 2019-11-10 21:42:44
言語 Java21
(openjdk 21)
結果
AC  
実行時間 158 ms / 1,000 ms
コード長 538 bytes
コンパイル時間 2,182 ms
コンパイル使用メモリ 72,356 KB
実行使用メモリ 40,616 KB
最終ジャッジ日時 2023-10-13 07:54:20
合計ジャッジ時間 3,001 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 158 ms
40,468 KB
testcase_01 AC 149 ms
40,616 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        // 標準入力から読み込む際に、Scannerオブジェクトを使う。
        Scanner sc = new Scanner(System.in);

        // int 1つ分を読み込む
        int a = sc.nextInt();

        // int 1つ分を読み込む
        int b = sc.nextInt();

        // String 1つ分を読み込む
        String s = sc.next();

        // 標準出力に書き出す。
        System.out.println((a + b) + " " + s);
    }
}
0