結果
| 問題 |
No.48 ロボットの操縦
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-09-17 07:55:07 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 213 bytes |
| コンパイル時間 | 255 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2024-07-04 04:44:27 |
| 合計ジャッジ時間 | 1,748 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)