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