結果

問題 No.383 レーティング
ユーザー kenji_shioyakenji_shioya
提出日時 2016-07-02 23:24:07
言語 Java21
(openjdk 21)
結果
AC  
実行時間 136 ms / 2,000 ms
コード長 256 bytes
コンパイル時間 2,993 ms
コンパイル使用メモリ 76,160 KB
実行使用メモリ 41,852 KB
最終ジャッジ日時 2024-04-20 06:34:17
合計ジャッジ時間 5,295 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
41,740 KB
testcase_01 AC 111 ms
41,448 KB
testcase_02 AC 103 ms
41,836 KB
testcase_03 AC 136 ms
41,464 KB
testcase_04 AC 114 ms
41,176 KB
testcase_05 AC 128 ms
40,612 KB
testcase_06 AC 128 ms
41,556 KB
testcase_07 AC 116 ms
41,740 KB
testcase_08 AC 101 ms
41,608 KB
testcase_09 AC 125 ms
41,852 KB
testcase_10 AC 127 ms
40,196 KB
testcase_11 AC 118 ms
41,316 KB
testcase_12 AC 108 ms
41,616 KB
testcase_13 AC 112 ms
41,424 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Exercise142{
  public static void main (String[] args){

    Scanner sc = new Scanner(System.in);

    int a = sc.nextInt();
    int b = sc.nextInt();
    int d = b - a;
    System.out.println((d > 0) ? "+" + d : d);
  }
}
0