結果

問題 No.353 ヘイトプラス
ユーザー spacenautspacenaut
提出日時 2016-05-15 19:17:40
言語 Java21
(openjdk 21)
結果
AC  
実行時間 128 ms / 1,000 ms
コード長 233 bytes
コンパイル時間 2,195 ms
コンパイル使用メモリ 71,500 KB
実行使用メモリ 56,144 KB
最終ジャッジ日時 2023-09-12 00:39:16
合計ジャッジ時間 4,134 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
55,784 KB
testcase_01 AC 125 ms
55,832 KB
testcase_02 AC 124 ms
55,776 KB
testcase_03 AC 127 ms
55,760 KB
testcase_04 AC 128 ms
55,872 KB
testcase_05 AC 126 ms
55,804 KB
testcase_06 AC 121 ms
56,044 KB
testcase_07 AC 125 ms
56,144 KB
testcase_08 AC 125 ms
55,816 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class No0353{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int sum = Math.abs((a - a * 2) - b);
		System.out.println(sum);
	}
}
0