結果
| 問題 |
No.48 ロボットの操縦
|
| コンテスト | |
| ユーザー |
ckawatak
|
| 提出日時 | 2017-07-01 19:18:13 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 34 ms / 5,000 ms |
| コード長 | 225 bytes |
| コンパイル時間 | 173 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-10-05 00:03:04 |
| 合計ジャッジ時間 | 1,876 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 |
ソースコード
X = int(input())
Y = int(input())
L = int(input())
x = (abs(X)+L-1)//L
y = (abs(Y)+L-1)//L
if 0 <= Y and X == 0:
count = y
elif 0 <= Y and X != 0:
count = x + y + 1
elif Y < 0:
count = x + y + 2
print(count)
ckawatak