結果

問題 No.383 レーティング
ユーザー TakaTaka
提出日時 2016-11-01 17:08:39
言語 Java21
(openjdk 21)
結果
AC  
実行時間 137 ms / 2,000 ms
コード長 374 bytes
コンパイル時間 3,671 ms
コンパイル使用メモリ 76,212 KB
実行使用メモリ 56,272 KB
最終ジャッジ日時 2023-08-16 12:15:31
合計ジャッジ時間 6,640 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 135 ms
55,780 KB
testcase_01 AC 122 ms
55,996 KB
testcase_02 AC 121 ms
56,148 KB
testcase_03 AC 136 ms
55,812 KB
testcase_04 AC 121 ms
56,204 KB
testcase_05 AC 136 ms
55,944 KB
testcase_06 AC 137 ms
55,888 KB
testcase_07 AC 137 ms
56,132 KB
testcase_08 AC 122 ms
55,816 KB
testcase_09 AC 135 ms
56,272 KB
testcase_10 AC 136 ms
55,888 KB
testcase_11 AC 121 ms
55,956 KB
testcase_12 AC 121 ms
55,696 KB
testcase_13 AC 122 ms
55,832 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
import java.util.Arrays;
import java.math.BigDecimal;

public class a{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		if(b-a==0){
			System.out.println("0");
		}else if(b-a>0){
			System.out.println("+"+(b-a));
		}else{
			System.out.println(b-a);
		}
    }
}
0