結果

問題 No.383 レーティング
ユーザー jimanojimano
提出日時 2018-01-18 19:03:11
言語 Java21
(openjdk 21)
結果
AC  
実行時間 89 ms / 2,000 ms
コード長 590 bytes
コンパイル時間 3,181 ms
コンパイル使用メモリ 77,280 KB
実行使用メモリ 53,844 KB
最終ジャッジ日時 2023-08-25 23:22:35
合計ジャッジ時間 5,250 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
52,460 KB
testcase_01 AC 88 ms
52,668 KB
testcase_02 AC 88 ms
52,500 KB
testcase_03 AC 78 ms
52,532 KB
testcase_04 AC 78 ms
52,844 KB
testcase_05 AC 89 ms
50,220 KB
testcase_06 AC 81 ms
53,844 KB
testcase_07 AC 80 ms
51,692 KB
testcase_08 AC 80 ms
53,492 KB
testcase_09 AC 78 ms
52,516 KB
testcase_10 AC 79 ms
52,516 KB
testcase_11 AC 78 ms
52,360 KB
testcase_12 AC 89 ms
53,576 KB
testcase_13 AC 79 ms
53,452 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) {
				System.out.println(s + "+" + (b - a));
			}
			else {
				System.out.println(s + "" + (b - a));
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
0