آکادمی جوانه کد

مطالب آموزشی

اعضای آکادمی

ثبت نام

درباره آکادمی

تمرین برنامه نویسی ٢٥

Write a program which calculates the product of two large numbers. You can't use the * operator for this problem. You should solve it using school-multiplication methods with only + operator and lookup tables.

Maximum number of digits for input numbers are 100,000 digits.

توضیحات

برنامه ای بنویسید که دو عدد بزرگ را در همدیگر ضرب کند. از عملگر * زبان برنامه نویسی برای ضرب کردن اعداد ورودی استفاده نکنید و به روش ضرب مدرسه ای نتیجه را محاسبه کنید. ماکزیمم ورودی 100 هزار رقم.

نمونه ورودی و خروجی

Input:

123456789064225674223
7463234642166426753224664

Output:

921386984954762327334401316644494884792636072