結果

問題 No.965 門松列が嫌い
ユーザー Tetsuya Ohira
提出日時 2020-02-09 11:36:59
言語 Go
(1.23.4)
結果
WA  
実行時間 -
コード長 272 bytes
コンパイル時間 10,143 ms
コンパイル使用メモリ 222,648 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-01 05:48:43
合計ジャッジ時間 11,094 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 6 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

package main

import (
	"fmt"
	"math"
)

func main() {

	// 4 7 3
	// 3 2 1
	var a, b, c int
	fmt.Scan(&a, &b, &c)
	cal1 := math.Abs(float64(b - a))
	cal2 := math.Abs(float64(b - c))
	cal3 := math.Abs(float64(a - c))

	fmt.Println(math.Min(math.Min(cal1, cal2), cal3))

}
0