結果
| 問題 | No.48 ロボットの操縦 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-01-19 12:32:35 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 318 bytes |
| 記録 | |
| コンパイル時間 | 480 ms |
| コンパイル使用メモリ | 21,280 KB |
| 実行使用メモリ | 15,868 KB |
| 最終ジャッジ日時 | 2026-08-13 09:25:49 |
| 合計ジャッジ時間 | 8,130 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)