結果
| 問題 |
No.48 ロボットの操縦
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-12-16 03:23:21 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 410 bytes |
| コンパイル時間 | 394 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-12-16 03:23:40 |
| 合計ジャッジ時間 | 2,065 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 WA * 2 |
ソースコード
def main():
x = int(input())
y = int(input())
l = int(input())
step_x = 0
step_y = 0
def step(a):
if abs(a) % l == 0:
steps = abs(a) / l
else:
steps = abs(a) / l + 1
return int(steps)
if y >= 0:
ans = step(y) + step(x) + 1
else:
ans = step(y) + step(x) + 2
print(ans)
if __name__ == "__main__":
main()