結果

問題 No.383 レーティング
ユーザー ontama_12ontama_12
提出日時 2016-09-23 09:57:09
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 386 bytes
コンパイル時間 2,355 ms
コンパイル使用メモリ 76,176 KB
実行使用メモリ 41,500 KB
最終ジャッジ日時 2024-04-28 21:24:28
合計ジャッジ時間 5,186 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 151 ms
41,436 KB
testcase_01 AC 134 ms
41,100 KB
testcase_02 WA -
testcase_03 AC 136 ms
40,176 KB
testcase_04 AC 135 ms
41,104 KB
testcase_05 AC 155 ms
41,244 KB
testcase_06 AC 155 ms
41,252 KB
testcase_07 AC 146 ms
41,392 KB
testcase_08 AC 133 ms
40,832 KB
testcase_09 AC 148 ms
41,456 KB
testcase_10 AC 149 ms
41,236 KB
testcase_11 AC 133 ms
41,192 KB
testcase_12 AC 136 ms
41,164 KB
testcase_13 AC 132 ms
40,888 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();
       
        int change = b-a;
        
        if(change>=0){
        	System.out.println("+" + change);
        }
        else{
        	System.out.println(change);
        }
    }
}
0