結果

問題 No.383 レーティング
ユーザー FVRChan
提出日時 2017-09-29 10:06:01
言語 Java
(openjdk 23)
結果
AC  
実行時間 139 ms / 2,000 ms
コード長 313 bytes
コンパイル時間 2,282 ms
コンパイル使用メモリ 75,840 KB
実行使用メモリ 41,436 KB
最終ジャッジ日時 2024-11-15 19:46:52
合計ジャッジ時間 5,054 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Main{
	private static Scanner sc=new Scanner(System.in);
	public static void main(String args[])throws Exception{
		int a=sc.nextInt(),b=sc.nextInt(),c=b-a;
		String s="";
		if(c<0)s+="-";
		else if(c>0)s+="+";
		s+=String.valueOf(Math.abs(c));
		System.out.println(s);
	}
}
0