結果
| 問題 | No.48 ロボットの操縦 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-08 17:06:36 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 333 bytes |
| 記録 | |
| コンパイル時間 | 177 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-12-25 23:56:41 |
| 合計ジャッジ時間 | 1,745 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 WA * 6 |
ソースコード
import sys
for n in "XYL":
exec(f"{n} = int(input())")
turn = 0
if X == 0:
if Y == 0:
print(0)
sys.exit()
elif Y < 0:
turn = 2
else:
turn = 1
X = abs(X)
Y = abs(Y)
x,mx = divmod(X,L); x = x + 1 if mx > 0 else x
y,my = divmod(Y,L); y = y + 1 if my > 0 else y
comm = turn + x + y
print(comm)