結果

問題 No.383 レーティング
ユーザー cande398cande398
提出日時 2017-10-09 22:22:20
言語 Java21
(openjdk 21)
結果
AC  
実行時間 117 ms / 2,000 ms
コード長 255 bytes
コンパイル時間 1,807 ms
コンパイル使用メモリ 74,380 KB
実行使用メモリ 41,108 KB
最終ジャッジ日時 2024-04-28 14:27:51
合計ジャッジ時間 4,000 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 109 ms
40,912 KB
testcase_01 AC 106 ms
40,104 KB
testcase_02 AC 112 ms
41,108 KB
testcase_03 AC 101 ms
40,252 KB
testcase_04 AC 101 ms
39,892 KB
testcase_05 AC 110 ms
40,852 KB
testcase_06 AC 116 ms
41,020 KB
testcase_07 AC 117 ms
41,036 KB
testcase_08 AC 114 ms
40,984 KB
testcase_09 AC 112 ms
40,812 KB
testcase_10 AC 103 ms
39,944 KB
testcase_11 AC 112 ms
40,980 KB
testcase_12 AC 114 ms
41,008 KB
testcase_13 AC 101 ms
40,012 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int ans = 0-sc.nextInt()+sc.nextInt();
    if(ans == 0)System.out.println("0");
    else System.out.printf("%+d\n", ans);
  }
}
0