結果
問題 |
No.48 ロボットの操縦
|
ユーザー |
![]() |
提出日時 | 2020-05-17 15:07:40 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 32 ms / 5,000 ms |
コード長 | 370 bytes |
コンパイル時間 | 145 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-09-25 07:17:04 |
合計ジャッジ時間 | 1,995 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
ソースコード
import math X=int(input()) Y=int(input()) L=int(input()) tmp=0 meirei=0 if Y>=0 and X==0: meirei=math.ceil(Y/L) print(meirei) elif Y>=0 and X!=0: tmp=abs(X/L) meirei=1+math.ceil(Y/L)+math.ceil(tmp) print(meirei) else: meirei=2 tmp=abs(X/L) meirei+=math.ceil(tmp) tmp=0 tmp=abs(Y/L) meirei+=math.ceil(tmp) print(meirei)