結果
| 問題 | No.48 ロボットの操縦 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-01-19 12:32:35 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 318 bytes |
| 記録 | |
| コンパイル時間 | 741 ms |
| コンパイル使用メモリ | 20,696 KB |
| 実行使用メモリ | 21,756 KB |
| 最終ジャッジ日時 | 2026-03-30 17:00:13 |
| 合計ジャッジ時間 | 7,773 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 WA * 1 TLE * 1 -- * 21 |
ソースコード
x = int(input())
y = int(input())
moving = int(input())
count = 0
# where quadrant?
if y >= 0:
count = count + 1
else:
count = count + 2
x, y = abs(x), abs(y)
while x > 0:
count = count + 1
x_move = 1
x = x - moving
while y > 0:
count = count + 1
y_move = 1
y = y - moving
print(count)