結果
問題 |
No.48 ロボットの操縦
|
ユーザー |
![]() |
提出日時 | 2019-05-06 11:16:48 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 288 bytes |
コンパイル時間 | 192 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-06-27 06:00:56 |
合計ジャッジ時間 | 1,929 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 5 WA * 20 |
ソースコード
from math import ceil def abs_ceil(l): def _(n): n = abs(n) return n // l + n % 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)