結果
| 問題 | No.48 ロボットの操縦 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-09-17 07:55:07 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 213 bytes |
| 記録 | |
| コンパイル時間 | 564 ms |
| コンパイル使用メモリ | 20,568 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-03-25 13:15:35 |
| 合計ジャッジ時間 | 4,230 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 WA * 8 |
ソースコード
import math
dir_x = abs(int(input()))
dir_y = abs(int(input()))
dis = int(input())
ans = math.ceil(dir_x / dis)
ans += math.ceil(dir_y / dis)
if dir_x == 0 or dir_y == 0:
print(ans)
else:
print(ans + 1)