2547 - I2P(I)2022_Yang_hw1 Scoreboard

Time

2022/09/13 22:10:00 2022/09/20 18:30:00

Clarification

# Problem Asker Description Reply Replier Reply Time For all team

# Problem Pass Rate (passed user / total user)
12134 The Big Hammer Rise
12353 C is for Cat
13557 Anya coin ga suki

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




12353 - C is for Cat   

Description

Your very first programming assignment is to print a cat :

 ^   ^      
(=-w-=)----?
  " "   " " 

This cat is made up of three lines :

The first line includes 10 whitespace ( ) and 2 carets (^).

The second line includes a pair of brackets (()), 2 equal signs (=), 6 hyphens (-), 1 lower case w letter (w), and 1 question mark (?).

The third line includes 8 whitespace ( ) and 4 quotation marks (").

Remember to put a new line character in the end of each line.

(gray dots represents whitespace characters)

Very Important Notes

  • Getting compile error? Having problem printing quotation mark (")? Maybe this link can help you.

  • Getting Wrong Answer? Make sure you don't miss any whitespace ( ) or new line (\n) character.

Input

This is no input for this problem.

Output

Print the cat in the problem description.

Sample Input  Download

Sample Output  Download

Tags




Discuss




13557 - Anya coin ga suki   

Description

Anya is a freshman at NTHU, she is trying to take the bus to Big City Mall. 

”Anya coin ga suki, “ said Anya. It means Anya like coins, so she wants to use as least as possible coins to pay for the bus fare. 

We all know that we can't make the change on the bus, so Anya wants to pay exactly the same price as the bus fare.

Given the bus fare, and the quantity of $1, $5, $10, and $50 coins that Anya has. How many coins that Anya needs to give at least?

Input

A single line contains five integer numbers P, A, B, C, and D, 

the Bus fare P that Anya needs to pay, and A to D is the quantity of $1, $5, $10, and $50 coins that she has respectively.

Output

Print a single line containing one number:

If Anya can pay exactly the same price as the bus fare, print how many coins that Anya needs to give at least.

If she can't, print -1.

Please remember to print "\n" at the end.

Sample Input  Download

Sample Output  Download

Tags




Discuss