結果

問題 No.383 レーティング
ユーザー yuiyui
提出日時 2017-02-20 13:43:42
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 336 bytes
コンパイル時間 3,298 ms
コンパイル使用メモリ 72,284 KB
実行使用メモリ 57,888 KB
最終ジャッジ日時 2023-08-28 19:41:33
合計ジャッジ時間 4,440 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 130 ms
56,176 KB
testcase_02 AC 115 ms
56,496 KB
testcase_03 WA -
testcase_04 AC 130 ms
56,268 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 131 ms
55,472 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 130 ms
56,576 KB
testcase_12 AC 130 ms
56,012 KB
testcase_13 AC 130 ms
56,516 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

    	Scanner sc = new Scanner(System.in);
    	int numA = sc.nextInt();
    	int numB = sc.nextInt();
    	if((numA-numB)>0){
    		System.out.println("-" + (numA-numB));
    	}else if(numA==numB){
    		System.out.println(0);
    	}
    }

}
0