結果
| 問題 |
No.48 ロボットの操縦
|
| コンテスト | |
| ユーザー |
fV9TwBhUoa9S3eV
|
| 提出日時 | 2019-09-13 10:30:14 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 332 bytes |
| コンパイル時間 | 90 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-07-04 03:45:05 |
| 合計ジャッジ時間 | 1,559 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 WA * 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
else:
result = 2
X = abs(X)
Y = abs(Y)
if X % L == 0:
result += X // L
else:
result += X // L + 1
if Y % L == 0:
result += Y // L
else:
result += Y // L + 1
print(result)
fV9TwBhUoa9S3eV