結果
| 問題 |
No.48 ロボットの操縦
|
| コンテスト | |
| ユーザー |
tsuchinaga
|
| 提出日時 | 2019-02-21 12:43:11 |
| 言語 | Go (1.23.4) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 212 bytes |
| コンパイル時間 | 15,417 ms |
| コンパイル使用メモリ | 224,764 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-17 12:48:49 |
| 合計ジャッジ時間 | 12,802 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 18 WA * 7 |
ソースコード
package main
import (
"fmt"
"math"
)
func main() {
var x, y, l float64
_, _ = fmt.Scan(&x, &y, &l)
mx := math.Ceil(math.Abs(x) / l)
if mx > 0 {
mx += 1
}
fmt.Println(mx + math.Ceil(math.Abs(y)/l))
}
tsuchinaga