結果

問題 No.383 レーティング
ユーザー リチウムリチウム
提出日時 2016-07-01 22:58:29
言語 Java19
(openjdk 21)
結果
AC  
実行時間 158 ms / 2,000 ms
コード長 254 bytes
コンパイル時間 3,386 ms
コンパイル使用メモリ 72,256 KB
実行使用メモリ 56,924 KB
最終ジャッジ日時 2023-08-02 06:02:30
合計ジャッジ時間 6,353 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 149 ms
56,732 KB
testcase_01 AC 152 ms
56,888 KB
testcase_02 AC 146 ms
54,832 KB
testcase_03 AC 149 ms
56,396 KB
testcase_04 AC 144 ms
56,688 KB
testcase_05 AC 144 ms
56,652 KB
testcase_06 AC 142 ms
56,772 KB
testcase_07 AC 146 ms
56,664 KB
testcase_08 AC 150 ms
56,608 KB
testcase_09 AC 152 ms
56,924 KB
testcase_10 AC 154 ms
56,668 KB
testcase_11 AC 158 ms
56,644 KB
testcase_12 AC 155 ms
56,676 KB
testcase_13 AC 153 ms
56,812 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package test;

import java.util.Scanner;


public class atc {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int a=sc.nextInt();
		int b=sc.nextInt();
		String s="";
		if(b>a)s="+";
		System.out.println(s+(b-a));
	}

}
0