結果

問題 No.9012 二数の足し算
ユーザー きつねうどんきつねうどん
提出日時 2024-03-13 19:26:45
言語 Java21
(openjdk 21)
結果
AC  
実行時間 135 ms / 2,000 ms
コード長 352 bytes
コンパイル時間 2,628 ms
コンパイル使用メモリ 74,236 KB
実行使用メモリ 57,828 KB
最終ジャッジ日時 2024-03-13 19:26:58
合計ジャッジ時間 4,631 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 134 ms
57,568 KB
testcase_01 AC 131 ms
57,828 KB
testcase_02 AC 135 ms
55,872 KB
testcase_03 AC 130 ms
57,704 KB
testcase_04 AC 132 ms
57,820 KB
testcase_05 AC 131 ms
57,696 KB
testcase_06 AC 127 ms
57,580 KB
testcase_07 AC 133 ms
57,712 KB
testcase_08 AC 133 ms
57,820 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String S = sc.next();
        String[] strings = S.split(",");
        int a = Integer.parseInt(strings[0]);
        int b = Integer.parseInt(strings[1]);
        System.out.printf("a + b = %d", a + b);
    }
}

0