結果

問題 No.383 レーティング
ユーザー Tsukasa_TypeTsukasa_Type
提出日時 2018-02-09 19:39:33
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 279 bytes
コンパイル時間 2,415 ms
コンパイル使用メモリ 76,344 KB
実行使用メモリ 41,996 KB
最終ジャッジ日時 2024-04-16 22:08:58
合計ジャッジ時間 5,078 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 150 ms
41,996 KB
testcase_01 AC 133 ms
41,420 KB
testcase_02 WA -
testcase_03 AC 151 ms
41,476 KB
testcase_04 AC 136 ms
41,528 KB
testcase_05 AC 150 ms
41,760 KB
testcase_06 AC 151 ms
41,876 KB
testcase_07 AC 150 ms
41,660 KB
testcase_08 AC 137 ms
41,424 KB
testcase_09 AC 148 ms
41,812 KB
testcase_10 AC 148 ms
41,984 KB
testcase_11 AC 134 ms
41,388 KB
testcase_12 AC 137 ms
41,548 KB
testcase_13 AC 131 ms
41,388 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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