0101少儿编程
Home
ProblemSet
Source/Category
Contest
Status
Ranklist
F.A.Qs
IDE下载
Login
Register
5422: 【33课】【3199】 两位数
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:50
Solved:40
Submit
Submit Record
Statistics
ShowOff!
Description
现在有一个两位数,这个两位数十位上的数与个位上的数和为
a
,十位上的数与个位上的数差(大减小)为
b
,那你知道这个两位数是多少吗?
Input
第一行两个整数
a
,
b
(
1
≤
a
≤
18
,
0
≤
b
≤
9
)。
Output
输出一行,包含一个整数,表示这个两位数,如果有多种解,输出最小的一个。
Sample Input
Copy
3 1
Sample Output
Copy
12
Source/Category
一本通编程启蒙
循环结构
Submit
Submit Record
Statistics
ShowOff!