102320: [AtCoder]ABC232 A - QQ solver

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

Score : $100$ points

Problem Statement

You are given a $3$-character string $S$, which is a concatenation of integers $a$ and $b$ between $1$ and $9$ (inclusive) and the character x in this order: axb.

Find the product of $a$ and $b$.

Constraints

  • The length of $S$ is $3$.
  • The $1$-st and $3$-rd characters are digits between $1$ and $9$ (inclusive).
  • The $2$-nd character is x.

Input

Input is given from Standard Input in the following format:

$S$

Output

Print the answer.


Sample Input 1

3x7

Sample Output 1

21

We have $3 \times 7 = 21$, which should be printed.


Sample Input 2

9x9

Sample Output 2

81

Sample Input 3

1x1

Sample Output 3

1

Input

题意翻译

# 输入格式 一串形如 $a* b$ 长度为 $3$ 的字符串 $S$。 # 输出格式 输出这个字符串中 $a* b$ 的值。 **记得换行**

Output

得分:100分 部分 问题描述 你被给定一个长度为3的字符串S,它由1到9(包括1和9)之间的整数a和b以及字符x按照以下顺序连接而成:axb。 找到a和b的乘积。 部分 约束条件 * S的长度为3。 * 第1个和第3个字符是1到9(包括1和9)之间的数字。 * 第2个字符是x。 部分 输入 输入以以下格式从标准输入给出: S 部分 输出 打印答案。 部分 样例输入1 3x7 部分 样例输出1 21 我们有3 × 7 = 21,应该打印。 部分 样例输入2 9x9 部分 样例输出2 81 部分 样例输入3 1x1 部分 样例输出3 1

加入题单

算法标签: