結果

問題 No.383 レーティング
ユーザー jimanojimano
提出日時 2018-01-18 19:01:17
言語 Java21
(openjdk 21)
結果
AC  
実行時間 80 ms / 2,000 ms
コード長 546 bytes
コンパイル時間 3,312 ms
コンパイル使用メモリ 78,512 KB
実行使用メモリ 53,396 KB
最終ジャッジ日時 2023-08-25 23:22:25
合計ジャッジ時間 4,539 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
52,500 KB
testcase_01 AC 66 ms
53,032 KB
testcase_02 AC 69 ms
52,404 KB
testcase_03 AC 80 ms
52,900 KB
testcase_04 AC 79 ms
51,156 KB
testcase_05 AC 80 ms
51,360 KB
testcase_06 AC 69 ms
51,560 KB
testcase_07 AC 70 ms
51,344 KB
testcase_08 AC 69 ms
53,396 KB
testcase_09 AC 70 ms
50,908 KB
testcase_10 AC 66 ms
52,756 KB
testcase_11 AC 74 ms
52,716 KB
testcase_12 AC 75 ms
51,872 KB
testcase_13 AC 76 ms
51,072 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package me.yukicoder.lv1;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;


public class No0383 {
	public static void main(String[] args) {
		try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			String[] str = br.readLine().split(" ");
			int a = Integer.parseInt(str[0]);
			int b = Integer.parseInt(str[1]);
			String s = "";

			if (b - a > 0) {
				s = "+";
			}

			System.out.println(s + "" + (b - a));

		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
0