結果

問題 No.383 レーティング
ユーザー takeya_okinotakeya_okino
提出日時 2017-06-18 19:29:00
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 282 bytes
コンパイル時間 1,937 ms
コンパイル使用メモリ 76,276 KB
実行使用メモリ 54,320 KB
最終ジャッジ日時 2024-04-09 20:07:24
合計ジャッジ時間 4,411 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
54,320 KB
testcase_01 AC 108 ms
52,824 KB
testcase_02 AC 121 ms
54,232 KB
testcase_03 AC 126 ms
54,312 KB
testcase_04 AC 120 ms
53,988 KB
testcase_05 AC 116 ms
53,548 KB
testcase_06 AC 103 ms
52,856 KB
testcase_07 AC 120 ms
54,196 KB
testcase_08 AC 119 ms
54,072 KB
testcase_09 AC 124 ms
54,052 KB
testcase_10 AC 121 ms
53,992 KB
testcase_11 AC 119 ms
54,012 KB
testcase_12 AC 120 ms
54,292 KB
testcase_13 AC 106 ms
53,372 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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