結果

問題 No.383 レーティング
ユーザー omc-testomc-test
提出日時 2016-08-03 16:46:05
言語 Java21
(openjdk 21)
結果
AC  
実行時間 150 ms / 2,000 ms
コード長 289 bytes
コンパイル時間 2,323 ms
コンパイル使用メモリ 76,052 KB
実行使用メモリ 41,840 KB
最終ジャッジ日時 2024-04-24 15:14:37
合計ジャッジ時間 4,839 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 143 ms
41,840 KB
testcase_01 AC 124 ms
41,144 KB
testcase_02 AC 111 ms
39,852 KB
testcase_03 AC 124 ms
40,120 KB
testcase_04 AC 112 ms
40,644 KB
testcase_05 AC 134 ms
40,988 KB
testcase_06 AC 150 ms
41,356 KB
testcase_07 AC 148 ms
41,400 KB
testcase_08 AC 129 ms
41,228 KB
testcase_09 AC 127 ms
40,484 KB
testcase_10 AC 131 ms
40,384 KB
testcase_11 AC 117 ms
41,068 KB
testcase_12 AC 121 ms
41,076 KB
testcase_13 AC 121 ms
40,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		sc.close();

		if(a < b){
			System.out.println("+" + (b - a));
		}else{
			System.out.println(b - a);
		}
	}
}
0