結果

問題 No.965 門松列が嫌い
ユーザー ks2m
提出日時 2020-01-13 20:41:09
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 461 bytes
コンパイル時間 2,287 ms
コンパイル使用メモリ 74,120 KB
実行使用メモリ 50,508 KB
最終ジャッジ日時 2024-12-21 16:32:40
合計ジャッジ時間 2,786 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 4 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] sa = br.readLine().split(" ");
		int a = Integer.parseInt(sa[0]);
		int b = Integer.parseInt(sa[1]);
		int c = Integer.parseInt(sa[2]);
		br.close();

		System.out.println(Math.min(Math.min(b - a, b - c), Math.abs(a - c)));
	}
}
0