結果
| 問題 | No.48 ロボットの操縦 |
| コンテスト | |
| ユーザー |
takakin
|
| 提出日時 | 2020-03-29 09:18:26 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 397 bytes |
| 記録 | |
| コンパイル時間 | 54 ms |
| コンパイル使用メモリ | 15,104 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-10-10 06:43:55 |
| 合計ジャッジ時間 | 2,191 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 18 WA * 7 |
ソースコード
import sys
input=lambda: sys.stdin.readline().rstrip()
x=int(input())
y=int(input())
l=int(input())
ans=0
if y>0:
ans+=(y-1)//l+1
if x==0:
print(ans)
else:
ans+=1+(abs(x)-1)//l+1
print(ans)
elif y<0:
ans+=(abs(y)-1)//l+2
if x==0:
print(ans)
else:
ans+=(abs(x)-1)//l+1
print(ans)
else:
if x==0:
print(ans)
else:
ans+=1+(abs(x)-1)//l+1
print(ans)
takakin