結果

問題 No.383 レーティング
ユーザー ぴろずぴろず
提出日時 2016-07-01 22:22:46
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 257 bytes
コンパイル時間 3,125 ms
コンパイル使用メモリ 76,608 KB
実行使用メモリ 42,660 KB
最終ジャッジ日時 2024-04-20 05:29:42
合計ジャッジ時間 5,232 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 144 ms
42,356 KB
testcase_01 WA -
testcase_02 AC 164 ms
42,364 KB
testcase_03 AC 161 ms
42,328 KB
testcase_04 WA -
testcase_05 AC 138 ms
42,340 KB
testcase_06 AC 143 ms
42,168 KB
testcase_07 AC 155 ms
42,508 KB
testcase_08 WA -
testcase_09 AC 161 ms
42,376 KB
testcase_10 AC 141 ms
42,184 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

package no383;

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();
		System.out.println((a < b ? "+" : "") + Math.abs(b-a));
	}

}
0