結果

問題 No.383 レーティング
ユーザー ぴろずぴろず
提出日時 2016-07-01 22:33:11
言語 Java21
(openjdk 21)
結果
AC  
実行時間 151 ms / 2,000 ms
コード長 249 bytes
コンパイル時間 1,742 ms
コンパイル使用メモリ 78,968 KB
実行使用メモリ 55,088 KB
最終ジャッジ日時 2024-04-20 05:40:26
合計ジャッジ時間 4,250 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 151 ms
54,900 KB
testcase_01 AC 141 ms
55,004 KB
testcase_02 AC 131 ms
54,984 KB
testcase_03 AC 133 ms
54,408 KB
testcase_04 AC 115 ms
53,216 KB
testcase_05 AC 138 ms
54,216 KB
testcase_06 AC 131 ms
54,572 KB
testcase_07 AC 131 ms
55,000 KB
testcase_08 AC 131 ms
55,088 KB
testcase_09 AC 118 ms
54,488 KB
testcase_10 AC 128 ms
54,820 KB
testcase_11 AC 140 ms
54,448 KB
testcase_12 AC 127 ms
54,668 KB
testcase_13 AC 121 ms
54,724 KB
権限があれば一括ダウンロードができます

ソースコード

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 ? "+" : "") + (b-a));
	}

}
0