結果

問題 No.9001 標準入出力の練習問題(テスト用)
ユーザー パカかすみパカかすみ
提出日時 2022-12-06 14:26:20
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 639 bytes
コンパイル時間 3,425 ms
コンパイル使用メモリ 75,936 KB
実行使用メモリ 55,052 KB
最終ジャッジ日時 2024-04-21 06:39:07
合計ジャッジ時間 4,385 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

package study_2022_1206;

import java.util.Scanner;

public class App {

    public int additionNums(int numA, int numB) {
        int sum = numA + numB;
        return sum;
    }

    public String displayContents(int sum, String word) {
        return String.valueOf(sum) + " " + word;
    }

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int numA = scanner.nextInt();
        int numB = scanner.nextInt();
        String word = scanner.nextLine();
        scanner.close();

        System.out.println(new App().displayContents(new App().additionNums(numA, numB), word));
    }
}
0