#abc232a. A - QQ solver
A - QQ solver
Score : points
问题描述
给定一个由数字和字符组成的3字符字符串 ,其格式为 axb
,其中整数 和 均在 到 (包括两端点)的范围内,并按此顺序连接。
请计算 和 的乘积。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
You are given a -character string , which is a concatenation of integers and between and (inclusive) and the character x
in this order: axb
.
Find the product of and .
Constraints
- The length of is .
- The -st and -rd characters are digits between and (inclusive).
- The -nd character is
x
.
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
Sample Input 1
3x7
Sample Output 1
21
We have , which should be printed.
Sample Input 2
9x9
Sample Output 2
81
Sample Input 3
1x1
Sample Output 3
1
update @ 2024/3/10 10:05:49