2395 - I2P(I)2021_Hu_HW4 Scoreboard

Time

2021/10/07 16:00:00 2021/10/25 18:15:00

Clarification

# Problem Asker Description Reply Replier Reply Time For all team

# Problem Pass Rate (passed user / total user)
13257 How to make Domo happy?
13258 Domo's favorite number

13257 - How to make Domo happy?   

Description

Domo is a brilliant dog. When he makes the correct calculation, he will be happy.


Unfortunately, if Domo gets a big integer that int or long long can't store, he can't calculate the correct answer, which makes him very disappointed.


One day, Domo gets another big integer A and an integer B. Please make use of arrays to help Domo to compute A * B, or Domo will blame you.

 

Given a big number A and an integer B, please compute A * B. Notice that B is not bigger than 20.

Input

The first line contains an integer that denotes the length of A. The following line contains the big integer A.

The third line contains the integer B.

(1 ≤ number of digits of A ≤ 100, 1 ≤ B ≤ 20, both A and B are integers  0)

Output

An integer that denotes A * B.

Note that you don't need to print '\n' at the end of the output.

Sample Input  Download

Sample Output  Download

Tags




Discuss




13258 - Domo's favorite number   

Description

Domo is a brilliant dog. When he finds his favorite number, he will be happy.

 

Given a range of numbers, the integer that has the most number of factors is Domo's favorite number. If there are two or more numbers that have the most number of factors, the bigger one is his favorite number.

 

Now, given a range of numbers, please find Domo's favorite number or he will use your photos on the next question meme.

Input

Two integers L and R (1 ≤ L ≤ R ≤ 100) separated by a blank.

Output

Domo's favorite number in the given range.

Note that you don't need to print '\n' at the end of the output.

Sample Input  Download

Sample Output  Download

Tags




Discuss