結果

問題 No.383 レーティング
ユーザー tentententen
提出日時 2020-11-11 14:31:56
言語 Java21
(openjdk 21)
結果
AC  
実行時間 122 ms / 2,000 ms
コード長 289 bytes
コンパイル時間 1,890 ms
コンパイル使用メモリ 71,748 KB
実行使用メモリ 56,212 KB
最終ジャッジ日時 2023-09-30 00:31:14
合計ジャッジ時間 4,516 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
56,188 KB
testcase_01 AC 120 ms
55,620 KB
testcase_02 AC 121 ms
56,212 KB
testcase_03 AC 119 ms
55,704 KB
testcase_04 AC 121 ms
56,020 KB
testcase_05 AC 118 ms
55,672 KB
testcase_06 AC 122 ms
55,904 KB
testcase_07 AC 119 ms
56,124 KB
testcase_08 AC 120 ms
55,792 KB
testcase_09 AC 120 ms
55,688 KB
testcase_10 AC 119 ms
55,804 KB
testcase_11 AC 120 ms
56,208 KB
testcase_12 AC 119 ms
55,668 KB
testcase_13 AC 116 ms
55,728 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int ans = -(sc.nextInt() - sc.nextInt());
        if (ans > 0) {
            System.out.print("+");
        }
        System.out.println(ans);
    }
}
0