結果
問題 | No.383 レーティング |
ユーザー |
|
提出日時 | 2018-01-18 19:01:17 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 106 ms / 2,000 ms |
コード長 | 546 bytes |
コンパイル時間 | 3,767 ms |
コンパイル使用メモリ | 75,920 KB |
実行使用メモリ | 40,172 KB |
最終ジャッジ日時 | 2024-12-24 11:16:57 |
合計ジャッジ時間 | 6,045 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 |
ソースコード
package me.yukicoder.lv1;import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;public class No0383 {public static void main(String[] args) {try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {String[] str = br.readLine().split(" ");int a = Integer.parseInt(str[0]);int b = Integer.parseInt(str[1]);String s = "";if (b - a > 0) {s = "+";}System.out.println(s + "" + (b - a));} catch (IOException e) {e.printStackTrace();}}}