# ОТВЕТЫ

## Вопрос 1

<figure><img src="/files/wIOzqzmiW3hilVHI22Yz" alt=""><figcaption></figcaption></figure>

## Вопрос 2

Перейти по ссылке: <https://rextester.com/l/lua_online_compiler>\
Скопировать этот код:

```lua
m = 19  //тут подставить число из задания
n = 8   //тут подставить число из задания
a = 1
b = 1
c = 1

for i = 1, m do
    a = a * i
end

for j = 1, n do
    b = b * j
end

for l = 1, (m - n) do
    c = c * l
end

s = (a / (b * c))
print(s)
```

<figure><img src="/files/R7DtPrh1LuxAucWwspQN" alt=""><figcaption></figcaption></figure>

## Вопрос 3

<figure><img src="/files/QJtImNyypNfOFrxMNM8H" alt=""><figcaption></figcaption></figure>

## Вопрос 4

<figure><img src="/files/hVY4lAJ2yEmcQTibTly7" alt=""><figcaption></figcaption></figure>

## Вопрос 5

<figure><img src="/files/cnxtCo9I4sc36V1p6jwI" alt=""><figcaption></figcaption></figure>

## Вопрос 6

НЕВЕРНО

Ссылка на комикс: <https://storage.yandexcloud.net/public-media/site-media/Bearloga_comics%20book.pdf>

<figure><img src="/files/0AJlhA2jFvp1GPbwNXvs" alt=""><figcaption></figcaption></figure>

## Вопрос 7

<figure><img src="/files/0IGo96f78ciYhZIEZgOe" alt=""><figcaption></figcaption></figure>

## Вопрос 8

<figure><img src="/files/CZRj0OwTuVVZbiUiqX19" alt=""><figcaption></figcaption></figure>

## Вопрос 9

### РЕШЕНИЕ

Вставьте это решение в блок с ответом.

```python
A=int(input())
B=int(input())

if A <= 1 or A >= 10000 or B <= 1 or B >= 10000:
    print('error')

else:
    for i in range(B):
        lst = []
        for j in range(A):
            if i % 2 == 0:
                lst.append(i*A+j+1)
            else:
                lst.append((i+1)*A-j)
        if i % 2 == 1:
            lst.reverse()
        if i % 2 == 1:
            print(lst[::-1]) # инвертируем и выводим задом-наперед
        else:
            print(lst)



```

<figure><img src="/files/2y5744DcaLprrV7VRn0a" alt=""><figcaption></figcaption></figure>

## Вопрос 10

(НЕ РЕШЕН)

<figure><img src="/files/yaCqk0IXk91LfS1Aumxd" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://lahmeneffa.gitbook.io/roblox/uroki-roblox-studio/otvety.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
