結果

問題 No.353 ヘイトプラス
ユーザー dogwood0424dogwood0424
提出日時 2017-12-04 00:54:06
言語 Java21
(openjdk 21)
結果
AC  
実行時間 123 ms / 1,000 ms
コード長 261 bytes
コンパイル時間 3,025 ms
コンパイル使用メモリ 71,924 KB
実行使用メモリ 56,380 KB
最終ジャッジ日時 2023-09-16 23:58:12
合計ジャッジ時間 4,962 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
56,380 KB
testcase_01 AC 118 ms
56,036 KB
testcase_02 AC 123 ms
55,484 KB
testcase_03 AC 118 ms
55,860 KB
testcase_04 AC 121 ms
56,188 KB
testcase_05 AC 119 ms
55,820 KB
testcase_06 AC 122 ms
56,172 KB
testcase_07 AC 119 ms
55,908 KB
testcase_08 AC 120 ms
55,700 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class No353 {

	public static void main(String[]args) {
		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		int S ;

		a = (-1)*a;
		S = a-b;

		System.out.println(Math.abs(S));
		


	}


}
0