
1. зачеркни справа 2. возведи в квадрат Первая из них удаляет крайнюю правую цифру числа
на экране, вторая — возводит число во вторую степень. Составьте алгоритм получения из числа 24 числа 25, содержащий не более 5 команд. В ответе запишите только номера команд. (Например, 12121 — это алгоритм зачеркни справа, возведи в квадрат, зачеркни справа, возведи в квадрат, зачеркни справа, который преобразует число 73 в 1.) Если таких алгоритмов более одного, то запишите любой из них.

Ответы на вопрос

Число - 24
Получить - 25
1 - зачеркнуть справа
2 - возвести в квадрат
*** Решение ***
Итог :



Answer in detail. 1. cross out the right 2. raise to the power of two The first one removes the rightmost digit of the number on the screen, the second one raises the number to the second power. Write an algorithm to get the number 25 from the number 24, containing no more than 5 commands. In the answer, write only the numbers of the commands. (For example, 12121 is an algorithm cross out the right, raise to the power of two, cross out the right, raise to the power of two, cross out the right, which transforms the number 73 into 1.) If there are more than one such algorithms, write any of them.
One possible algorithm to get the number 25 from the number 24 is 21212, which means:
- Raise 24 to the power of two, getting 576 - Cross out the rightmost digit, getting 57 - Raise 57 to the power of two, getting 3249 - Cross out the rightmost digit, getting 324 - Raise 324 to the power of two, getting 104976 - Cross out the rightmost digit, getting 10497 - Cross out the rightmost digit, getting 1049 - Cross out the rightmost digit, getting 104 - Cross out the rightmost digit, getting 10 - Cross out the rightmost digit, getting 1 - Raise 1 to the power of two, getting 1 - Cross out the rightmost digit, getting nothing - Raise nothing to the power of two, getting nothing - Cross out the rightmost digit, getting nothing - Raise nothing to the power of two, getting nothing
Therefore, the final result is nothing, which is the same as 25 in base 25.


Топ вопросов за вчера в категории Информатика








Последние заданные вопросы в категории Информатика
-
Математика
-
Литература
-
Алгебра
-
Русский язык
-
Геометрия
-
Английский язык
-
Химия
-
Физика
-
Биология
-
Другие предметы
-
История
-
Обществознание
-
Окружающий мир
-
География
-
Українська мова
-
Информатика
-
Українська література
-
Қазақ тiлi
-
Экономика
-
Музыка
-
Право
-
Беларуская мова
-
Французский язык
-
Немецкий язык
-
МХК
-
ОБЖ
-
Психология
-
Физкультура и спорт
-
Астрономия
-
Кыргыз тили
-
Оʻzbek tili