結果
| 問題 | No.48 ロボットの操縦 |
| コンテスト | |
| ユーザー |
siganai
|
| 提出日時 | 2022-05-26 14:15:27 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 216 bytes |
| 記録 | |
| コンパイル時間 | 120 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 65,920 KB |
| 最終ジャッジ日時 | 2026-04-09 01:21:25 |
| 合計ジャッジ時間 | 2,521 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 RE * 24 |
ソースコード
x = int(input())
y = int(input())
l = int(input())
if x == 0 and y == 0:
print(0)
exit()
if x >= 0:
ans += -(-x//l) -(-abs(y)//l) + 1
elif x < 0:
ans += -(-abs(x)//l) -(-abs(y)//l) + 2
print(ans)
siganai