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