結果
| 問題 | No.48 ロボットの操縦 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-03-30 13:30:55 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 474 bytes |
| 記録 | |
| コンパイル時間 | 327 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 15,388 KB |
| 最終ジャッジ日時 | 2026-03-12 12:11:51 |
| 合計ジャッジ時間 | 3,471 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 18 WA * 7 |
ソースコード
import math
x = int(input())
y = int(input())
l = int(input())
#y方向について
if y%l == 0 :
y_order_times = math.fabs(int(y/l))
else:
y_order_times = math.fabs(int(y/l)) + 1
#x方向について
if x == 0 :
print(int(y_order_times))
else:
if x%l == 0 :
x_order_times = math.fabs(int(x/l))
else:
x_order_times = math.fabs(int(x/l)) + 1
total_order_times = x_order_times + y_order_times + 1
print(int(total_order_times))