結果
| 問題 |
No.48 ロボットの操縦
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-02-24 14:27:39 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 42 ms / 5,000 ms |
| コード長 | 203 bytes |
| コンパイル時間 | 222 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 52,096 KB |
| 最終ジャッジ日時 | 2024-07-02 12:33:08 |
| 合計ジャッジ時間 | 2,213 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 |
ソースコード
import math
x = int(input())
y = int(input())
l = int(input())
count= 0
count+=math.ceil(abs(x)/l)
count+=math.ceil(abs(y)/l)
if y>=0 and x!=0:
count+=1
elif y<0:
count+=2
print(count)