結果
問題 | No.383 レーティング |
ユーザー |
|
提出日時 | 2021-03-12 22:23:12 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 72 ms / 2,000 ms |
コード長 | 534 bytes |
コンパイル時間 | 2,973 ms |
コンパイル使用メモリ | 74,568 KB |
実行使用メモリ | 38,068 KB |
最終ジャッジ日時 | 2024-10-14 12:52:53 |
合計ジャッジ時間 | 4,672 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 |
ソースコード
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class No00000383_Main { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); public static void main(String[] args) throws IOException { String[] arr = br.readLine().split(" "); int a = Integer.parseInt(arr[0]); int b = Integer.parseInt(arr[1]); String s =""; if(a < b) { s = "+" + (b - a); } else if(a > b) { s = "-" + (a - b); } else { s = "0"; } System.out.println(s); } }