結果
| 問題 | No.48 ロボットの操縦 |
| コンテスト | |
| ユーザー |
Kude
|
| 提出日時 | 2020-09-06 23:28:59 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 27 ms / 5,000 ms |
| コード長 | 186 bytes |
| 記録 | |
| コンパイル時間 | 173 ms |
| コンパイル使用メモリ | 85,504 KB |
| 実行使用メモリ | 52,352 KB |
| 最終ジャッジ日時 | 2026-05-23 04:15:42 |
| 合計ジャッジ時間 | 1,837 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 |
ソースコード
x = int(input())
y = int(input())
l = int(input())
x = abs(x)
ans = 0
if y < 0:
ans += 1
x, y = -y, x
ans += (y + l - 1) // l + (0 if x == 0 else 1 + (x + l - 1) // l)
print(ans)
Kude