2831 - I2P(I)2023_Yang_hw1 Scoreboard

Time

2023/09/11 14:00:00 2023/09/19 18:30:00

Clarification

# Problem Asker Description Reply Replier Reply Time For all team

# Problem Pass Rate (passed user / total user)
12353 C is for Cat
13557 Anya coin ga suki
13963 Lucky Value

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




13963 - Lucky Value   

Description

Welcome to NTHU CS! Before entering out department, you need to play a game with our Department President, Stiff Waist Beast.

The game is very easy, comparing number.

However, Stiff Waist Beast thinks that just compare the value of two number is too boring, so we need to compare the "lucky value" of each number.

Lucky number's formula is: sum of the first and the third digit divided by the sum of the second and the fourth.

Please tell him the lucky value of your number.

 

Input

You will be given an integer x.

1000 <= x < 10000

Output

Output the lucky value of x to the second decimal place.

Don't forget to print '\n' in the end!

Sample Input  Download

Sample Output  Download

Tags

Stiff Waist Beast



Discuss