結果
問題 |
No.48 ロボットの操縦
|
ユーザー |
|
提出日時 | 2022-02-17 18:06:22 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 271 bytes |
コンパイル時間 | 164 ms |
コンパイル使用メモリ | 82,104 KB |
実行使用メモリ | 54,088 KB |
最終ジャッジ日時 | 2024-06-29 07:44:39 |
合計ジャッジ時間 | 2,084 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 WA * 6 |
ソースコード
x = int(input()) y = int(input()) l = int(input()) import math count = 0 #count = math.ceil(abs(y)/l) if y>=0: count = math.ceil(abs(y)/l) else: count = math.ceil(abs(y)/l)+2 if x==0: print(count) else: count+=math.ceil(abs(x)/l)+1 print(count)