結果
| 問題 | No.48 ロボットの操縦 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-08-15 22:44:19 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 378 bytes |
| 記録 | |
| コンパイル時間 | 140 ms |
| コンパイル使用メモリ | 77,624 KB |
| 最終ジャッジ日時 | 2025-12-03 21:13:03 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 WA * 6 |
ソースコード
#!/usr/bin/python
# -*- coding: utf-8 -*-
import math
X = int(raw_input())
Y = int(raw_input())
L = int(raw_input())
ans = 0
if X != 0:
ans += 1 + math.ceil(math.fabs(X) * 1.0 / L)
elif X == 0 and Y < 0:
ans += 2 + math.ceil(math.fabs(Y) * 1.0 / L)
print int(ans)
exit()
if Y > 0:
ans += math.ceil(math.fabs(Y) * 1.0 / L)
print int(ans)