結果
| 問題 | No.48 ロボットの操縦 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2020-04-02 07:59:58 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 194 bytes | 
| コンパイル時間 | 470 ms | 
| コンパイル使用メモリ | 82,212 KB | 
| 実行使用メモリ | 52,224 KB | 
| 最終ジャッジ日時 | 2024-06-28 01:46:53 | 
| 合計ジャッジ時間 | 2,355 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 5 WA * 20 | 
ソースコード
import math
x = int(input())
y = int(input())
l = int(input())
if x == 0 and y == 0:
    cnt = 0
elif y > 0:
    cnt = 1
else:
    cnt = 2
print(math.ceil(abs(x)/l)+math.ceil(abs(x)/l)+cnt)
            
            
            
        