結果

問題 No.383 レーティング
ユーザー GoyotanGoyotan
提出日時 2016-07-18 16:07:00
言語 Java21
(openjdk 21)
結果
AC  
実行時間 131 ms / 2,000 ms
コード長 454 bytes
コンパイル時間 3,914 ms
コンパイル使用メモリ 77,204 KB
実行使用メモリ 54,748 KB
最終ジャッジ日時 2024-04-23 16:29:20
合計ジャッジ時間 5,407 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 130 ms
54,056 KB
testcase_01 AC 114 ms
54,124 KB
testcase_02 AC 102 ms
52,888 KB
testcase_03 AC 114 ms
53,056 KB
testcase_04 AC 111 ms
54,108 KB
testcase_05 AC 119 ms
52,796 KB
testcase_06 AC 129 ms
54,092 KB
testcase_07 AC 123 ms
53,744 KB
testcase_08 AC 102 ms
52,588 KB
testcase_09 AC 131 ms
54,748 KB
testcase_10 AC 131 ms
54,144 KB
testcase_11 AC 113 ms
53,912 KB
testcase_12 AC 110 ms
53,776 KB
testcase_13 AC 117 ms
54,204 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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);
		}

	}

}
0