You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Розв'язування задач
Дано двозначне число. Визначити, чи рівний квадрат цього цисла збільшеній в 4 рази сумі кубів його цифр. Наприклад: для числа 48 відповідь "вірно", а для числа 52 "невірно"
Дмитро Пилипенко
unread,
Mar 7, 2012, 6:14:42 AM3/7/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Розв'язування задач
var a,b : integer; begin read(a,b); if sqrt(4*(sqr(a)*a + sqr(b)*b)) = 10*a+b then write('вiрно') else write('невiрно'); end.
On 4 мар, 14:23, Юрий Устименко <lystu...@gmail.com> wrote: > Дано двозначне число. Визначити, чи рівний квадрат цього цислазбільшеній в 4 рази сумі кубів його цифр. Наприклад:для числа 48
Юрий Устименко
unread,
Mar 7, 2012, 8:13:42 AM3/7/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Розв'язування задач
читайте будь ласка уважно умову задачі, "Дано двозначне число" одне число яке потрібно розбити на цифри
Дмитро Пилипенко
unread,
Mar 7, 2012, 1:28:59 PM3/7/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Розв'язування задач
Але 10*а+b це двозначне число, хіба ні?
Юрий Устименко
unread,
Mar 7, 2012, 2:03:07 PM3/7/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Розв'язування задач
> Але 10*а+b це двозначне число, хіба ні?
вводим А=34, це двозначне, b=3,c=4. тоді твій вираз правильний, подивись приклади розбиття числа на цифри
Message has been deleted
Юрий Устименко
unread,
Mar 12, 2012, 2:57:27 PM3/12/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message