結果

問題 No.383 レーティング
ユーザー YOSHIYOSHI
提出日時 2021-03-12 22:23:12
言語 Java21
(openjdk 21)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 534 bytes
コンパイル時間 4,199 ms
コンパイル使用メモリ 74,924 KB
実行使用メモリ 38,304 KB
最終ジャッジ日時 2024-04-22 13:25:18
合計ジャッジ時間 5,260 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
37,812 KB
testcase_01 AC 74 ms
37,844 KB
testcase_02 AC 56 ms
36,912 KB
testcase_03 AC 71 ms
37,728 KB
testcase_04 AC 73 ms
37,984 KB
testcase_05 AC 73 ms
38,044 KB
testcase_06 AC 73 ms
37,916 KB
testcase_07 AC 71 ms
38,304 KB
testcase_08 AC 73 ms
38,116 KB
testcase_09 AC 73 ms
37,680 KB
testcase_10 AC 83 ms
38,116 KB
testcase_11 AC 72 ms
38,012 KB
testcase_12 AC 73 ms
38,052 KB
testcase_13 AC 74 ms
37,832 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class No00000383_Main {
	static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	public static void main(String[] args) throws IOException {
		String[] arr = br.readLine().split(" ");
		int a = Integer.parseInt(arr[0]);
		int b = Integer.parseInt(arr[1]);
		String s ="";
		if(a < b) {
			s = "+" + (b - a);
		} else if(a > b) {
			s = "-" + (a - b);
		} else {
			s = "0";
		}
		System.out.println(s);
	}
}
0