結果
| 問題 |
No.48 ロボットの操縦
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-03-30 05:24:36 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 263 bytes |
| コンパイル時間 | 373 ms |
| コンパイル使用メモリ | 12,288 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-10-02 03:08:45 |
| 合計ジャッジ時間 | 1,709 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)