結果

問題 No.353 ヘイトプラス
ユーザー shojin_proshojin_pro
提出日時 2022-01-11 01:17:59
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 1,000 ms
コード長 264 bytes
コンパイル時間 2,161 ms
コンパイル使用メモリ 74,336 KB
実行使用メモリ 41,852 KB
最終ジャッジ日時 2024-04-26 20:28:55
合計ジャッジ時間 4,016 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
41,852 KB
testcase_01 AC 111 ms
40,124 KB
testcase_02 AC 126 ms
41,032 KB
testcase_03 AC 118 ms
41,048 KB
testcase_04 AC 113 ms
40,036 KB
testcase_05 AC 116 ms
40,948 KB
testcase_06 AC 123 ms
41,460 KB
testcase_07 AC 115 ms
40,908 KB
testcase_08 AC 118 ms
41,264 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        System.out.println(Math.addExact(a,b));
    }
}
0