結果
問題 |
No.48 ロボットの操縦
|
ユーザー |
![]() |
提出日時 | 2018-01-31 11:27:11 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 35 ms / 5,000 ms |
コード長 | 386 bytes |
コンパイル時間 | 153 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-12-29 23:42:47 |
合計ジャッジ時間 | 1,953 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
ソースコード
# -*- coding: utf-8 -*- import math if __name__ == '__main__': X, Y, L = [int(input()) for _ in range(3)] if Y >= 0: count = math.ceil(Y / L) if X != 0: count += 1 count += math.ceil(abs(X) / L) else: count = 1 count += math.ceil(abs(X) / L) count += 1 count += math.ceil(abs(Y) / L) print(count)