2984 - 2024GEC1506 - HW3 Scoreboard

Time

2024/04/09 09:00:00 2024/04/21 23:59:00

Clarification

# Problem Asker Description Reply Replier Reply Time For all team
1 14287 - Escape the spider web GEC_111006228 The explanation says that the spider can't count to 8, but shouldn't it also include 9? I am a little confused. I was wondering if you could help me I think I can't understand your question. The spiders can't count to 8 means that there is no 8 or 9 in the spiders' counting way. For example: there are some Os here. OOOOOOOOOO For humans, there are 10 Os. (1, 2, 3, 4, 6, 7, 8, 9, 10) For spiders, there are 12 Os. (1, 2, 3, 4, 6, 7, 10, 11, 12) GEC_1506_Jessie 2024/04/17 23:17:13
2 14287 - Escape the spider web GEC_111191025 I can't understand the description. Can't spiders count multiples of 8 and 9, or can't they count numbers containing 8 or 9? Thanks When people count to 9 and need to add 1, we need to carry to the next digit, then become 10. The spiders are the same, but when they count to 7 and need to add 1, they need to carry to the next digit, then become 10. GEC_1506_Jessie 2024/04/19 00:46:45

# Problem Pass Rate (passed user / total user)
14286 Check, please
14287 Escape the spider web

14286 - Check, please   

Description

Create a program that calculates the total cost of an order in a restaurant based on the prices of items.

In a restaurant, the prices of items are as follows:

  • "Steak": 500 NT dollars each
  • "Pasta": 300 NT dollars each
  • "Salad": 200 NT dollars each

Input

The first line contains an integer n (1 <= n <= 100), the number of items in the order.

The following n lines each contain a string s, representing an item in the order.

Output

A single line indicates the total cost of the order in NT dollars.

Sample Input  Download

Sample Output  Download

Tags




Discuss




14287 - Escape the spider web   

Description

You are a traveler journeying around the world. One day, you enter a forest and accidentally get stuck in a giant spider web. In order for the spider to spare you, it demands that you count the layers of its web. However, the spider only has 8 legs, so it can't count to 8. For example, while humans can count 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, spiders can only count 1, 2, 3, 4, 5, 6, 7, 10, 11, 12. Therefore, to escape the spider web, you must count the layers of the web and then convert the number into a form the spider can understand.

Input

Multiple lines of input, each line represents the layer of the spider web in humans' counting way.

Output

Print the number in spiders' format line by line.

Sample Input  Download

Sample Output  Download

Tags




Discuss