結果
| 問題 |
No.48 ロボットの操縦
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-01-19 12:32:35 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 318 bytes |
| コンパイル時間 | 91 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 17,696 KB |
| 最終ジャッジ日時 | 2024-07-16 01:56:16 |
| 合計ジャッジ時間 | 6,740 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)