結果
問題 | No.383 レーティング |
ユーザー |
|
提出日時 | 2016-07-18 16:07:00 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 150 ms / 2,000 ms |
コード長 | 454 bytes |
コンパイル時間 | 3,629 ms |
コンパイル使用メモリ | 76,212 KB |
実行使用メモリ | 54,236 KB |
最終ジャッジ日時 | 2024-10-15 16:58:13 |
合計ジャッジ時間 | 6,323 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 |
ソースコード
import java.util.Scanner;public class Study02 {public static void main(String[] args) {Scanner sc = new Scanner(System.in);String a = sc.nextLine();String [] q = a.split(" ");int [] z = new int[2];for(int i=0;i<q.length;i++){z[i] = Integer.parseInt(q[i]);}int asd = z[1] - z[0];if(asd < 0){System.out.println(asd);}else if(asd == 0){System.out.println("0");}else{System.out.println("+"+asd);}}}