結果

問題 No.353 ヘイトプラス
ユーザー mitsuomitsuo
提出日時 2016-05-04 13:15:39
言語 Java21
(openjdk 21)
結果
AC  
実行時間 122 ms / 1,000 ms
コード長 563 bytes
コンパイル時間 1,973 ms
コンパイル使用メモリ 74,040 KB
実行使用メモリ 57,888 KB
最終ジャッジ日時 2023-09-12 00:32:53
合計ジャッジ時間 3,886 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,832 KB
testcase_01 AC 120 ms
56,184 KB
testcase_02 AC 121 ms
57,888 KB
testcase_03 AC 121 ms
56,056 KB
testcase_04 AC 122 ms
56,192 KB
testcase_05 AC 121 ms
56,116 KB
testcase_06 AC 118 ms
55,988 KB
testcase_07 AC 118 ms
56,160 KB
testcase_08 AC 118 ms
55,960 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.math.BigInteger;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String input = "";
		if (args.length == 0) {
			input = sc.nextLine();
		} else {
			input = args[0];
		}

		System.out.println(solve(input));

		sc.close();
	}

	public static String solve(String in) {

		BigInteger bi = BigInteger.ZERO;
		bi = bi.add(BigInteger.valueOf(Long.valueOf(in.split(" ")[0])));
		bi = bi.add(BigInteger.valueOf(Long.valueOf(in.split(" ")[1])));

		return bi.toString();
	}
}
0