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