結果
| 問題 |
No.48 ロボットの操縦
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-05-08 05:10:07 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 382 bytes |
| コンパイル時間 | 119 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2024-07-03 09:44:37 |
| 合計ジャッジ時間 | 1,608 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 WA * 12 |
ソースコード
import math
X, Y, L = [int(input()) for i in range(3)]
moving = 0
if X > 0 and Y >= 0:
moving = 1
elif X < 0 and Y >= 0:
moving = 1
elif X < 0 and Y < 0:
moving = 2
elif X > 0 and Y < 0:
moving = 2
elif X == 0 and Y > 0:
moving = 0
elif X == 0 and Y < 0:
moving = 2
else:
moving = 0
ans = int(moving + math.ceil((abs(X) + abs(Y)) / L))
print(ans)