結果

問題 No.383 レーティング
ユーザー nullzinenullzine
提出日時 2017-01-20 20:49:01
言語 Java21
(openjdk 21)
結果
AC  
実行時間 155 ms / 2,000 ms
コード長 299 bytes
コンパイル時間 2,084 ms
コンパイル使用メモリ 76,960 KB
実行使用メモリ 57,196 KB
最終ジャッジ日時 2023-08-24 18:21:21
合計ジャッジ時間 5,107 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 153 ms
56,848 KB
testcase_01 AC 152 ms
56,540 KB
testcase_02 AC 153 ms
55,000 KB
testcase_03 AC 155 ms
56,984 KB
testcase_04 AC 152 ms
57,076 KB
testcase_05 AC 152 ms
57,196 KB
testcase_06 AC 153 ms
56,968 KB
testcase_07 AC 152 ms
56,872 KB
testcase_08 AC 153 ms
56,720 KB
testcase_09 AC 151 ms
56,840 KB
testcase_10 AC 152 ms
56,536 KB
testcase_11 AC 153 ms
56,980 KB
testcase_12 AC 153 ms
56,760 KB
testcase_13 AC 152 ms
56,880 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

public class Main {

    public static void main(String[] args){
        String[] strs = new java.util.Scanner(System.in).nextLine().split(" ");
        System.out.println((0<Integer.parseInt(strs[1])-Integer.parseInt(strs[0])?"+":"")+(Integer.parseInt(strs[1])-Integer.parseInt(strs[0])));
    }

}
0