結果
問題 |
No.48 ロボットの操縦
|
ユーザー |
|
提出日時 | 2018-01-16 11:18:34 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 37 ms / 5,000 ms |
コード長 | 386 bytes |
コンパイル時間 | 111 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-12-24 04:28:10 |
合計ジャッジ時間 | 1,876 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)