結果

問題 No.172 UFOを捕まえろ
ユーザー gray
提出日時 2015-03-29 01:33:50
言語 Go
(1.23.4)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 219 bytes
コンパイル時間 14,206 ms
コンパイル使用メモリ 236,288 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-15 14:03:11
合計ジャッジ時間 11,146 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

package main

import (
	"fmt"
	"math"
)

func main() {
	var x, y, r int
	fmt.Scanf("%d %d %d", &x, &y, &r)

	fmt.Println(int(
		math.Abs(float64(x)) +
		math.Abs(float64(y)) +
		math.Ceil(math.Sqrt(2) * float64(r))))
}
0