結果
問題 | No.48 ロボットの操縦 |
ユーザー |
![]() |
提出日時 | 2017-07-09 16:33:50 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 29 ms / 5,000 ms |
コード長 | 277 bytes |
コンパイル時間 | 215 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-10-07 04:35:25 |
合計ジャッジ時間 | 1,706 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
ソースコード
import mathX = int(input())Y = int(input())L = int(input())ans = 0if Y >= 0:ans += math.ceil(Y/L)if X != 0:ans += 1ans += math.ceil(abs(X)/L)else:ans += 1ans += math.ceil(abs(X)/L)ans += 1ans += math.ceil(abs(Y)/L)print(ans)