103430: [Atcoder]ABC343 A - Wrong Answer

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

Description

Score: $100$ points

Problem Statement

You are given two integers $A$ and $B$, each between $0$ and $9$, inclusive.

Print any integer between $0$ and $9$, inclusive, that is not equal to $A + B$.

Constraints

  • $0 \leq A \leq 9$
  • $0 \leq B \leq 9$
  • $A + B \leq 9$
  • $A$ and $B$ are integers.

Input

The input is given from Standard Input in the following format:

$A$ $B$

Output

Print any integer between $0$ and $9$, inclusive, that is not equal to $A + B$.


Sample Input 1

2 5

Sample Output 1

2

When $A = 2, B = 5$, we have $A + B = 7$. Thus, printing any of $0, 1, 2, 3, 4, 5, 6, 8, 9$ is correct.


Sample Input 2

0 0

Sample Output 2

9

Sample Input 3

7 1

Sample Output 3

4

Input

Output

分数:100分

问题描述

给你两个整数$A$和$B$,每个都在$0$到$9$之间,包括$0$和$9$。

打印一个在$0$到$9$之间的整数,不等于$A + B$。

限制条件

  • $0 \leq A \leq 9$
  • $0 \leq B \leq 9$
  • $A + B \leq 9$
  • $A$和$B$都是整数。

输入

输入从标准输入以以下格式给出:

$A$ $B$

输出

打印一个在$0$到$9$之间的整数,不等于$A + B$。


样例输入1

2 5

样例输出1

2

当$A = 2, B = 5$时,我们有$A + B = 7$。因此,打印$0, 1, 2, 3, 4, 5, 6, 8, 9$中的任意一个都是正确的。


样例输入2

0 0

样例输出2

9

样例输入3

7 1

样例输出3

4

加入题单

算法标签: