3060 - I2P(I)2024_Yang_hw1 Scoreboard

Time

2024/09/03 14:00:00 2024/09/10 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
14392 Class-Skipper Tokiyuki

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




14392 - Class-Skipper Tokiyuki   

Description

Hōjō Tokiyuki has been avoiding his classes for so long that he now struggles to understand his assignments.
Desperate for help, he turns to you to guide him through the following task:

Given a point P(x, y) on a coordinate plane, your goal is to calculate the slope of the line that passes through point P and the origin O(0, 0).

逃げ上手の若君』主人公・北条時行の情報まとめ | アニメイトタイムズ

Input

Input two integers x, y.

Constraints

  • x ≠ 0, -109 ≤ x, y ≤ 109.

Output

Output a floating-point number representing the answer, rounded to three decimal places.

 

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

Sample Input  Download

Sample Output  Download

Tags




Discuss