結果

問題 No.965 門松列が嫌い
ユーザー Tetsuya OhiraTetsuya Ohira
提出日時 2020-02-09 11:36:59
言語 Go
(1.22.1)
結果
WA  
実行時間 -
コード長 272 bytes
コンパイル時間 12,882 ms
コンパイル使用メモリ 219,412 KB
実行使用メモリ 6,676 KB
最終ジャッジ日時 2024-04-08 12:05:06
合計ジャッジ時間 13,594 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
6,676 KB
testcase_01 AC 1 ms
6,676 KB
testcase_02 AC 2 ms
6,676 KB
testcase_03 AC 1 ms
6,676 KB
testcase_04 AC 2 ms
6,676 KB
testcase_05 AC 1 ms
6,676 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 2 ms
6,676 KB
権限があれば一括ダウンロードができます

ソースコード

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