1636 - GEC_PYTHON_HW2 Scoreboard

Time

2019/03/26 15:30:00 2019/04/09 23:59:00

Clarification

# Problem Asker Description Reply Replier Reply Time For all team

# Problem Pass Rate (passed user / total user)
12198 GEC1506 Variables

12198 - GEC1506 Variables   

Description

Given a specific line of text, you need to parse it and perform data operations to fit the requirement.

Input

A line of text with the following syntax:

e1,e2,e3,e4

where e1, ... , e4 represented 4 elements from given text.

Output

A line of text with the following operations:

e1 multiply e2  plus  e4 multiply e3 

Note that the details of the operations are:

  • e1 multiply e2 should be numbered multiplication
  • e4 multiply e3 should be the string multiplication
  • e1, e2, e3 are considered as numbers, while e4  is a word.

You don't need to consider the decimals for multiplication.

That is it will be fine if the answer is 12.6hellohello while yours is 12.6000001hellohello.

 

Sample Input  Download

Sample Output  Download

Tags




Discuss