結果

問題 No.353 ヘイトプラス
ユーザー dogwood0424
提出日時 2017-12-04 00:54:06
言語 Java
(openjdk 23)
結果
AC  
実行時間 123 ms / 1,000 ms
コード長 261 bytes
コンパイル時間 3,564 ms
コンパイル使用メモリ 74,980 KB
実行使用メモリ 41,360 KB
最終ジャッジ日時 2024-07-03 22:32:15
合計ジャッジ時間 5,516 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

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