結果
| 問題 |
No.48 ロボットの操縦
|
| コンテスト | |
| ユーザー |
fV9TwBhUoa9S3eV
|
| 提出日時 | 2019-09-13 10:23:01 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 315 bytes |
| コンパイル時間 | 351 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 17,440 KB |
| 最終ジャッジ日時 | 2024-07-04 03:45:00 |
| 合計ジャッジ時間 | 6,659 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 3 TLE * 1 -- * 21 |
ソースコード
# 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