結果

問題 No.383 レーティング
ユーザー YukimotoPGYukimotoPG
提出日時 2019-02-13 20:58:50
言語 Java21
(openjdk 21)
結果
AC  
実行時間 139 ms / 2,000 ms
コード長 241 bytes
コンパイル時間 2,506 ms
コンパイル使用メモリ 73,836 KB
実行使用メモリ 58,056 KB
最終ジャッジ日時 2023-10-11 12:24:28
合計ジャッジ時間 5,138 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 136 ms
55,836 KB
testcase_01 AC 122 ms
55,820 KB
testcase_02 AC 121 ms
56,044 KB
testcase_03 AC 137 ms
56,192 KB
testcase_04 AC 121 ms
55,928 KB
testcase_05 AC 137 ms
56,000 KB
testcase_06 AC 136 ms
56,196 KB
testcase_07 AC 137 ms
56,024 KB
testcase_08 AC 123 ms
56,088 KB
testcase_09 AC 139 ms
56,052 KB
testcase_10 AC 138 ms
58,056 KB
testcase_11 AC 124 ms
55,948 KB
testcase_12 AC 124 ms
55,788 KB
testcase_13 AC 122 ms
56,100 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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