結果

問題 No.383 レーティング
ユーザー GoyotanGoyotan
提出日時 2016-07-18 16:05:29
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 403 bytes
コンパイル時間 3,665 ms
コンパイル使用メモリ 76,372 KB
実行使用メモリ 41,820 KB
最終ジャッジ日時 2024-04-23 16:28:53
合計ジャッジ時間 6,588 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 148 ms
41,212 KB
testcase_01 AC 129 ms
41,516 KB
testcase_02 WA -
testcase_03 AC 148 ms
41,648 KB
testcase_04 AC 134 ms
41,328 KB
testcase_05 AC 154 ms
41,820 KB
testcase_06 AC 146 ms
41,368 KB
testcase_07 AC 146 ms
41,408 KB
testcase_08 AC 133 ms
41,744 KB
testcase_09 AC 148 ms
41,360 KB
testcase_10 AC 148 ms
41,440 KB
testcase_11 AC 133 ms
41,380 KB
testcase_12 AC 130 ms
41,084 KB
testcase_13 AC 118 ms
39,840 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{
			System.out.println("+"+asd);
		}

	}

}
0