結果
問題 |
No.48 ロボットの操縦
|
ユーザー |
|
提出日時 | 2023-06-05 15:36:25 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 287 bytes |
コンパイル時間 | 251 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-12-29 06:09:20 |
合計ジャッジ時間 | 1,936 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 WA * 17 |
ソースコード
from math import ceil def MIN(X, Y, L): distance = abs(X) + abs(Y) if distance == 0: return 0 elif distance <= L: return 2 else: return ceil(distance / L) + (distance % L != 0) X = int(input()) Y = int(input()) L = int(input()) print(MIN(X, Y, L))