結果
問題 | No.48 ロボットの操縦 |
ユーザー |
![]() |
提出日時 | 2019-08-22 08:38:47 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 32 ms / 5,000 ms |
コード長 | 185 bytes |
コンパイル時間 | 496 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-10-11 22:22:00 |
合計ジャッジ時間 | 1,868 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
ソースコード
from math import ceilX,Y,L = int(input()),int(input()),int(input())ans = ceil(abs(X)/L) + ceil(abs(Y)/L)if (X==0)and(Y<0):ans+=2elif X!=0:ans+=1if Y < 0:ans +=1print(ans)