結果

問題 No.383 レーティング
ユーザー shinwisteriashinwisteria
提出日時 2017-04-01 21:47:54
言語 Java19
(openjdk 21)
結果
AC  
実行時間 145 ms / 2,000 ms
コード長 352 bytes
コンパイル時間 4,777 ms
コンパイル使用メモリ 72,612 KB
実行使用メモリ 56,100 KB
最終ジャッジ日時 2023-09-22 02:23:22
合計ジャッジ時間 7,830 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 141 ms
55,600 KB
testcase_01 AC 127 ms
55,704 KB
testcase_02 AC 127 ms
53,700 KB
testcase_03 AC 142 ms
55,604 KB
testcase_04 AC 126 ms
55,548 KB
testcase_05 AC 141 ms
53,908 KB
testcase_06 AC 143 ms
56,100 KB
testcase_07 AC 145 ms
55,432 KB
testcase_08 AC 127 ms
55,808 KB
testcase_09 AC 141 ms
55,600 KB
testcase_10 AC 139 ms
55,988 KB
testcase_11 AC 125 ms
55,516 KB
testcase_12 AC 125 ms
55,924 KB
testcase_13 AC 125 ms
55,884 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Rating {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner s = new Scanner(System.in);
		int a = s.nextInt();
		int b = s.nextInt();
		s.close();
		if(a >= b){
			System.out.println(b-a);
		}else if(a < b){
			System.out.println("+" + (b-a));
		}

	}

}
0