結果
問題 | No.48 ロボットの操縦 |
ユーザー |
![]() |
提出日時 | 2019-05-06 11:24:33 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 5,000 ms |
コード長 | 290 bytes |
コンパイル時間 | 73 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-06-27 06:17:39 |
合計ジャッジ時間 | 1,636 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
ソースコード
from math import ceil def abs_ceil(l): def _(n): n = abs(n) return (n + l - 1) // l return _ X,Y,L = map(int,[input() for x in range(3)]) command = 0 abceil = abs_ceil(L) if Y < 0: command+=2 elif X: command+=1 command+=abceil(X) + abceil(Y) print(command)