結果

問題 No.3058 M + D Problem
ユーザー ks2mks2m
提出日時 2020-04-01 21:35:20
言語 Java21
(openjdk 21)
結果
AC  
実行時間 45 ms / 2,000 ms
コード長 471 bytes
コンパイル時間 3,309 ms
コンパイル使用メモリ 72,196 KB
実行使用メモリ 49,564 KB
最終ジャッジ日時 2023-09-09 16:47:42
合計ジャッジ時間 5,353 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
49,288 KB
testcase_01 AC 43 ms
49,220 KB
testcase_02 AC 43 ms
49,468 KB
testcase_03 AC 43 ms
49,372 KB
testcase_04 AC 44 ms
49,212 KB
testcase_05 AC 44 ms
49,196 KB
testcase_06 AC 42 ms
49,060 KB
testcase_07 AC 43 ms
49,088 KB
testcase_08 AC 44 ms
49,312 KB
testcase_09 AC 44 ms
49,232 KB
testcase_10 AC 43 ms
49,564 KB
testcase_11 AC 44 ms
49,352 KB
testcase_12 AC 45 ms
49,288 KB
testcase_13 AC 44 ms
49,172 KB
testcase_14 AC 44 ms
49,216 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.math.BigInteger;

public class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] sa = br.readLine().split(" ");
		br.close();

		BigInteger ba = new BigInteger(sa[0]);
		BigInteger bb = new BigInteger(sa[1]);
		int ans = ba.add(bb).intValue();
		System.out.println(ans == 5 ? 0 : ans);
	}
}
0