結果
| 問題 | No.48 ロボットの操縦 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-03-30 05:24:36 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 263 bytes |
| 記録 | |
| コンパイル時間 | 477 ms |
| コンパイル使用メモリ | 20,764 KB |
| 実行使用メモリ | 20,444 KB |
| 最終ジャッジ日時 | 2026-04-18 12:45:06 |
| 合計ジャッジ時間 | 4,197 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 RE * 2 |
ソースコード
X = int(input())
Y = int(input())
L = int(input())
def robot(XY, L):
XY = divmod(abs(XY), L)
if XY[1] == 0:
return XY[0]
else:
return XY[0] + 1
if Y < 0:
C = 2
else:
if X != 0:
C = 1
print(robot(X, L) + robot(Y, L) + C)