#A. A - Rock-paper-scissors

    传统题 1000ms 256MiB

A - Rock-paper-scissors

该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。

A - Rock-paper-scissors

Score : $100$ points

Problem Statement

Serval, Fennec, and Raccoon played rock-paper-scissors and had a draw.

You are given characters $x$ and $y$ representing the hand thrown by Fennec and Raccoon, respectively. Here, 0 stands for rock, 1 stands for scissors, and 2 stands for paper.

Print the character corresponding to the hand thrown by Serval, which can be uniquely determined.

Constraints

  • Each of $x$ and $y$ is 0, 1, or 2.

Input

Input is given from Standard Input in the following format:

xx yy

Output

Print the answer, which should be 0 for rock, 1 for scissors, or 2 for paper.


0 1
2

Fennec threw rock, and Raccoon threw scissors. To have a draw, Serval must have thrown paper.


0 0
0

Fennec threw rock, and Raccoon threw rock. To have a draw, Serval must have thrown rock.

2025春季ATC码力训练基础营第十二次比赛

未参加
状态
已结束
规则
IOI
题目
6
开始于
2025-6-14 13:00
结束于
2025-6-14 14:30
持续时间
1.5 小时
主持人
参赛人数
4