結果

問題 No.353 ヘイトプラス
ユーザー mtokmtok
提出日時 2016-04-02 14:31:56
言語 Java21
(openjdk 21)
結果
AC  
実行時間 46 ms / 1,000 ms
コード長 471 bytes
コンパイル時間 4,459 ms
コンパイル使用メモリ 71,644 KB
実行使用メモリ 49,772 KB
最終ジャッジ日時 2023-09-12 00:12:22
合計ジャッジ時間 3,955 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 46 ms
49,320 KB
testcase_01 AC 45 ms
49,416 KB
testcase_02 AC 45 ms
49,360 KB
testcase_03 AC 46 ms
49,608 KB
testcase_04 AC 45 ms
49,500 KB
testcase_05 AC 46 ms
49,392 KB
testcase_06 AC 45 ms
49,376 KB
testcase_07 AC 45 ms
49,772 KB
testcase_08 AC 45 ms
49,192 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args)throws Exception{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        String[] str = line.split(" ");
        int a =Integer.parseInt(str[0]);
        int b =Integer.parseInt(str[1]);
        a *=-1;
        int sum = a-b;
        System.out.println(Math.abs(sum));
	}
}
0