結果
問題 | No.48 ロボットの操縦 |
ユーザー | calei |
提出日時 | 2019-12-28 11:49:02 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 5,000 ms |
コード長 | 152 bytes |
コンパイル時間 | 267 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-10-11 18:34:57 |
合計ジャッジ時間 | 1,927 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
ソースコード
# 2019/12/28 x=int(input()) y=int(input()) l=int(input()) ans=0 if y>=0 and x!=0:ans+=1 elif y<0:ans+=2 ans+=(-(-abs(y)//l)+-(-abs(x)//l)) print(ans)