結果

問題 No.383 レーティング
ユーザー kaoetayakaoetaya
提出日時 2016-11-28 13:17:42
言語 Java21
(openjdk 21)
結果
AC  
実行時間 142 ms / 2,000 ms
コード長 269 bytes
コンパイル時間 3,402 ms
コンパイル使用メモリ 73,336 KB
実行使用メモリ 56,164 KB
最終ジャッジ日時 2023-08-18 08:44:44
合計ジャッジ時間 6,296 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 136 ms
54,044 KB
testcase_01 AC 124 ms
55,896 KB
testcase_02 AC 125 ms
55,620 KB
testcase_03 AC 137 ms
55,704 KB
testcase_04 AC 124 ms
55,784 KB
testcase_05 AC 138 ms
54,500 KB
testcase_06 AC 141 ms
55,596 KB
testcase_07 AC 140 ms
56,164 KB
testcase_08 AC 124 ms
55,516 KB
testcase_09 AC 141 ms
55,996 KB
testcase_10 AC 142 ms
55,848 KB
testcase_11 AC 125 ms
55,860 KB
testcase_12 AC 130 ms
55,948 KB
testcase_13 AC 129 ms
56,064 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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