結果

問題 No.383 レーティング
ユーザー Natsume-MNatsume-M
提出日時 2016-12-09 17:15:36
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 219 bytes
コンパイル時間 1,846 ms
コンパイル使用メモリ 73,676 KB
実行使用メモリ 56,344 KB
最終ジャッジ日時 2023-08-19 03:15:41
合計ジャッジ時間 4,511 ms
ジャッジサーバーID
(参考情報)
judge11 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,532 KB
testcase_01 AC 108 ms
55,988 KB
testcase_02 AC 109 ms
55,888 KB
testcase_03 AC 124 ms
55,856 KB
testcase_04 AC 114 ms
55,624 KB
testcase_05 AC 121 ms
56,344 KB
testcase_06 AC 124 ms
55,900 KB
testcase_07 AC 122 ms
55,528 KB
testcase_08 AC 108 ms
55,632 KB
testcase_09 AC 120 ms
55,952 KB
testcase_10 AC 125 ms
56,240 KB
testcase_11 AC 109 ms
56,096 KB
testcase_12 AC 108 ms
55,808 KB
testcase_13 AC 109 ms
55,888 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
class y383 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt(), b = sc.nextInt();
		System.out.println((b-a)>0?"+"+(b-a):b-a);
		sc.close();
	}
}
0