Постинг
28.07.2021 22:31 -
Решете загадката
В равенствата:
О х О = ДО
ДО x ДО = ИДО
ИДО х ИДО = АЙКИДО
всяка буква е цифра. Декодирайте горните равенства.
О х О = ДО
ДО x ДО = ИДО
ИДО х ИДО = АЙКИДО
всяка буква е цифра. Декодирайте горните равенства.
31 съвета за подобряване на вашето психи...
НЕ ЩЕ СЕ ПРИМИРЯ ДОКРАЙ ЩЕ СЕ БОРЯ
Американските родители също не желаят да...
НЕ ЩЕ СЕ ПРИМИРЯ ДОКРАЙ ЩЕ СЕ БОРЯ
Американските родители също не желаят да...
5x5=25
25x25=625
625x625=390625
цитирай25x25=625
625x625=390625
izpitatel написа:
решение
5x5=25
25x25=625
625x625=390625
решение
5x5=25
25x25=625
625x625=390625
for (let i = 4; i <= 9; i++) {
first_product = i * i
first_digit_first_product = Math(first_product / 10)
second_digit_first_product = first_product % 10
if ((first_digit_first_product == i) || (second_digit_first_product != i))
continue
second_product = first_product * first_product
first_digit_second_product = Math(second_product / 100)
rest_digits_second_product = second_product % 100
if ((first_digit_second_product == i || first_digit_second_product == first_digit_first_product) || (rest_digits_second_product != first_product))
continue
last_product = second_product * second_product
first_digit_last_product = Math(last_product / 100000)
second_digit_last_product = Math(last_product / 10000) % 10
third_digit_last_product = Math(last_product / 1000) % 10
rest_digits_last_product = last_product % 1000
if ((first_digit_last_product == second_digit_last_product || first_digit_last_product == third_digit_last_product || second_digit_last_product == third_digit_last_product) || rest_digits_last_product != second_product)
continue
console(last_product)
}
Приложимо директно в конзолата на браузъра.
ПС: Бързо показно за Другар51-ви, който се пудри, че все другите са под неговите "ниво и квартал", а то реално ние все доста над.
БЛАГОДАРЯ ЗА МОЗЪЧНАТА ГИМНАСТИКА СЪС СУТРЕШНОТО КАФЕ.
цитирайfirst_product = i * i
first_digit_first_product = Math(first_product / 10)
second_digit_first_product = first_product % 10
if ((first_digit_first_product == i) || (second_digit_first_product != i))
continue
second_product = first_product * first_product
first_digit_second_product = Math(second_product / 100)
rest_digits_second_product = second_product % 100
if ((first_digit_second_product == i || first_digit_second_product == first_digit_first_product) || (rest_digits_second_product != first_product))
continue
last_product = second_product * second_product
first_digit_last_product = Math(last_product / 100000)
second_digit_last_product = Math(last_product / 10000) % 10
third_digit_last_product = Math(last_product / 1000) % 10
rest_digits_last_product = last_product % 1000
if ((first_digit_last_product == second_digit_last_product || first_digit_last_product == third_digit_last_product || second_digit_last_product == third_digit_last_product) || rest_digits_last_product != second_product)
continue
console(last_product)
}
Приложимо директно в конзолата на браузъра.
ПС: Бързо показно за Другар51-ви, който се пудри, че все другите са под неговите "ниво и квартал", а то реално ние все доста над.
БЛАГОДАРЯ ЗА МОЗЪЧНАТА ГИМНАСТИКА СЪС СУТРЕШНОТО КАФЕ.
starforlife написа:
Хах, Мисана... Провокатор такъв... Ето едно решение и от мен: for (let i = 4; i <= 9; i++) {
first_product = i * i
first_digit_first_product = Math(first_product / 10)
second_digit_first_product = first_product % 10
if ((first_digit_first_product == i) || (second_digit_first_product != i))
continue
second_product = first_product * first_product
first_digit_second_product = Math(second_product / 100)
rest_digits_second_product = second_product % 100
if ((first_digit_second_product == i || first_digit_second_product == first_digit_first_product) || (rest_digits_second_product != first_product))
continue
last_product = second_product * second_product
first_digit_last_product = Math(last_product / 100000)
second_digit_last_product = Math(last_product / 10000) % 10
third_digit_last_product = Math(last_product / 1000) % 10
rest_digits_last_product = last_product % 1000
if ((first_digit_last_product == second_digit_last_product || first_digit_last_product == third_digit_last_product || second_digit_last_product == third_digit_last_product) || rest_digits_last_product != second_product)
continue
console(last_product)
}
Приложимо директно в конзолата на браузъра.
ПС: Бързо показно за Другар51-ви, който се пудри, че все другите са под неговите "ниво и квартал", а то реално ние все доста над.
БЛАГОДАРЯ ЗА МОЗЪЧНАТА ГИМНАСТИКА СЪС СУТРЕШНОТО КАФЕ.
first_product = i * i
first_digit_first_product = Math(first_product / 10)
second_digit_first_product = first_product % 10
if ((first_digit_first_product == i) || (second_digit_first_product != i))
continue
second_product = first_product * first_product
first_digit_second_product = Math(second_product / 100)
rest_digits_second_product = second_product % 100
if ((first_digit_second_product == i || first_digit_second_product == first_digit_first_product) || (rest_digits_second_product != first_product))
continue
last_product = second_product * second_product
first_digit_last_product = Math(last_product / 100000)
second_digit_last_product = Math(last_product / 10000) % 10
third_digit_last_product = Math(last_product / 1000) % 10
rest_digits_last_product = last_product % 1000
if ((first_digit_last_product == second_digit_last_product || first_digit_last_product == third_digit_last_product || second_digit_last_product == third_digit_last_product) || rest_digits_last_product != second_product)
continue
console(last_product)
}
Приложимо директно в конзолата на браузъра.
ПС: Бързо показно за Другар51-ви, който се пудри, че все другите са под неговите "ниво и квартал", а то реално ние все доста над.
БЛАГОДАРЯ ЗА МОЗЪЧНАТА ГИМНАСТИКА СЪС СУТРЕШНОТО КАФЕ.
Изпипал си всичко.
на Мисана – за провокативната задача;
на коментаторите – за точните решения!
Бъдете здрави!
цитирайна коментаторите – за точните решения!
Бъдете здрави!
zemja написа:
Благодаря – на Мисана – за провокативната задача;
на коментаторите – за точните решения!
Бъдете здрави!
на коментаторите – за точните решения!
Бъдете здрави!