Skip to content

Latest commit

 

History

History

P025

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Problem 025

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.

Persian Description

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

Sample Input/Output

Input:

123456789064225674223
7463234642166426753224664

Output:

921386984954762327334401316644494884792636072