5567: Scissors-Rock-Paper剪刀石头布(ABC204A)
内存限制:1024 MB
时间限制:2.000 S
评测方式:文本比较
命题人:
提交:0
解决:0
题目描述
Problem Statement:
Xiaoniu, Xiaoma, and Xiaoyang played rock-paper-scissors and had a draw.
You are given characters $x$ and $y$ representing the hand thrown by Xiaoma and Xiaoyang, respectively. Here, `0` stands for rock, `1` stands for scissors, and `2` stands for paper.
Print the character corresponding to the hand thrown by Xiaoniu, which can be uniquely determined.
Xiaoniu, Xiaoma, and Xiaoyang played rock-paper-scissors and had a draw.
You are given characters $x$ and $y$ representing the hand thrown by Xiaoma and Xiaoyang, respectively. Here, `0` stands for rock, `1` stands for scissors, and `2` stands for paper.
Print the character corresponding to the hand thrown by Xiaoniu, which can be uniquely determined.
小牛、小马和小羊玩剪刀石头布,结果打成了平局。给定两个字符x和y,分别表示小马和小羊出的手势。其中,0代表石头,1代表剪刀,2代表布。请输出小牛出的手势对应的字符,这个手势是唯一可以确定的。
输入
x y
输出
输出答案,应为 0(代表石头)、1(代表剪刀)或 2(代表布)
样例输入 复制
0 1
样例输出 复制
2
提示
Constraints
- Each of $x$ and $y$ is `0`, `1`, or `2`.
x 和 y 均为 0、1 或 2。