2280 - I2P(I)2020_Chen_HW1 Scoreboard

Time

2021/03/09 23:59:00 2021/03/23 23:59:00

Clarification

# Problem Asker Description Reply Replier Reply Time For all team

# Problem Pass Rate (passed user / total user)
12134 The Big Hammer Rise
12129 Do you know de way?

12134 - The Big Hammer Rise   

Description

A famous streamer once said: " Abortion Uncle!! Begin abort!!! " The Abortion Uncle is also known as "The Big Hammer Rise". The famous streamer wants to know the exactly time "Big Hammer Rise" kill an enemy. Because he got a double kill, he know exacly two time which denote as a, b.


The famous streamer will give you two number a,b which are represented as float numbers and have two digit after the decimal point.

 

For example:

If a,b are ranged from 1~99, 1<= a , b < 100;

a,b will be like these forms: 18.00,  99.30,  71.22

 

You need to calculate ans = a*b, and ans should follow the rule:

if the number of digits after decimal point is less then four digits, then you need to print 0 to make it four digits.

For example: 18.56 -> 18.5600, 18 -> 18.0000, 18.9 -> 18.9000

 

If you tell him the right answer he will help you kill the ice bird.

 

 

( Note: you can use scanf("%d.%d %d.%d", &int, &int, &int, &int). Use %f may cause trouble because the precision of float type. )

( Note: you can use  printf("%d.%04d\n", int/10000, int%10000); )

Input

input only contains two float number a,b1<= a , b < 100 ) the two number are seperated by a blank.

 

Output

output contains only a float number which have four digit after the decimal point.

remember to print \n at the end of output.

Sample Input  Download

Sample Output  Download

Tags




Discuss




12129 - Do you know de way?   

Description

Knuckles, from Ugandan, is finding his queen. He accidentally find a ancient stele which curved two numbers on it. He reckon it as a clue to find his queen. Knuckles is very smart. He soon realizes that the rule between numbers.


The stele contains two numbers l,r which means the range from l ~ r .

Knuckles wants to find two different numbers x,y in the range, 

in other word l <= x < y <= r.

And Knuckles also wants that x divides y( y%x == 0 ). 

Knuckles thinks that the minimum sum of x+y will be the clue to find the queen. Because the stele is from Ugandan gods there is always an answer.

Help Knuckles find his queen or he will spit on you.

Input

input contains two integer l and r ( 1 <= l < r <= 109 )

Output

output contains two integer x and y ( l <= x < y <= r ) which x divides y.( remember print \n at the end of output and x ,y are seperated by a blank.)

Sample Input  Download

Sample Output  Download

Tags




Discuss