結果

問題 No.383 レーティング
ユーザー Mcpu3Mcpu3
提出日時 2018-06-22 02:22:18
言語 Java21
(openjdk 21)
結果
AC  
実行時間 138 ms / 2,000 ms
コード長 259 bytes
コンパイル時間 2,179 ms
コンパイル使用メモリ 72,008 KB
実行使用メモリ 56,592 KB
最終ジャッジ日時 2023-09-13 07:49:29
合計ジャッジ時間 4,825 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 138 ms
55,864 KB
testcase_01 AC 123 ms
56,096 KB
testcase_02 AC 122 ms
55,880 KB
testcase_03 AC 137 ms
56,592 KB
testcase_04 AC 121 ms
56,188 KB
testcase_05 AC 137 ms
56,052 KB
testcase_06 AC 137 ms
56,416 KB
testcase_07 AC 137 ms
56,116 KB
testcase_08 AC 121 ms
56,112 KB
testcase_09 AC 134 ms
55,968 KB
testcase_10 AC 134 ms
55,964 KB
testcase_11 AC 119 ms
56,396 KB
testcase_12 AC 124 ms
55,872 KB
testcase_13 AC 123 ms
55,896 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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