結果

問題 No.965 門松列が嫌い
コンテスト
ユーザー Tetsuya Ohira
提出日時 2020-02-09 11:36:59
言語 Go
(1.27.0 + ACL)
コンパイル:
/usr/bin/go_c
実行:
./Main
結果
WA  
実行時間 -
コード長 272 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 9,452 ms
コンパイル使用メモリ 276,792 KB
実行使用メモリ 9,768 KB
最終ジャッジ日時 2026-09-07 04:58:00
合計ジャッジ時間 10,827 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 6 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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