結果
| 問題 | No.48 ロボットの操縦 |
| コンテスト | |
| ユーザー |
fV9TwBhUoa9S3eV
|
| 提出日時 | 2019-09-13 10:23:01 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 315 bytes |
| 記録 | |
| コンパイル時間 | 428 ms |
| コンパイル使用メモリ | 20,832 KB |
| 実行使用メモリ | 30,840 KB |
| 最終ジャッジ日時 | 2026-03-25 12:21:19 |
| 合計ジャッジ時間 | 10,383 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 WA * 7 TLE * 1 |
ソースコード
# No.48 ロボットの操縦
X, Y, L = [int(input()) for i in range(3)]
if X == 0 and Y > 0:
result = 0
elif Y > 0:
result = 1
elif X == 0 and Y < 0:
result = 2
else:
result = 3
X = abs(X)
Y = abs(Y)
while X > 0:
result += 1
X -= L
while Y > 0:
result += 1
Y -= L
print(result)
fV9TwBhUoa9S3eV