1514 - I2P (I) 2018_Yang_Lab1 Scoreboard

Time

2018/10/01 15:30:00 2018/10/01 17:00:00

Clarification

# Problem Asker Description Reply Replier Reply Time For all team

# Problem Pass Rate (passed user / total user)
11111 Encode number
12008 product of ascii
12012 Shift and shift

11111 - Encode number   

Description

Suppose that we have an encoding scheme defined by the following mapping:
1->'A', 2->'B', 3->'C', ..., 9->'I'
Given a three-digit number N as the input, use the above mapping to encode N.

Input

A three-digit integer N

Output

The encoding result

Note that you do not need to print ‘\n’ at the end of the output.

Sample Input  Download

Sample Output  Download

Tags




Discuss




12008 - product of ascii   

Description

Input will be four characters.

Please output the product of those ASCII value in one line.

Input:

ABCD

Output:

19545240

 

Input

4 Characters char belongs to {A,B,C,D,E} set.

Output

Value of the product

Note that you need to print ‘\n’ at the end of the output.

Sample Input  Download

Sample Output  Download

Tags




Discuss




12012 - Shift and shift   

Description

Given a 4-digit positive integer a, do the following operation

  • Swap the left 2 digit and the right 2 digit of a, to obtain b.
  • Let c = a * b.

For example, let a = 1234.

  • b is 3412
  • c is 4210408

Please print the value of c.

Input

An positive integer a between 1000 and 9999 (contains exactly 4 digits).

Output

Print the value of c.

Note that you need to print ‘\n’ at the end of the output.

Sample Input  Download

Sample Output  Download

Tags




Discuss