第 474 场 AtCoder Beginner Contest
A
不是 X
Not X
AtCoder
⌀ 0
原题
←B →

不是 XAI (CI翻译)

Problem Statement

题目描述

AI (CI翻译)

You are given an integer $X$ between $1$ and $3$, inclusive.

给定一个介于 $1$ 和 $3$ 之间(含端点)的整数 $X$。AI (CI翻译)

Output an integer between $1$ and $3$, inclusive, that is different from $X$.

请输出一个介于 $1$ 和 $3$ 之间(含端点)且不同于 $X$ 的整数。AI (CI翻译)

Constraints

约束条件

AI (CI翻译)
  • $X$ is an integer between $1$ and $3$, inclusive.
  • $X$ 是一个介于 $1$ 和 $3$ 之间(含端点)的整数。
AI (CI翻译)

Input

输入格式

AI (CI翻译)

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

输入从标准输入按以下格式给出:AI (CI翻译)

X

X
AI (CI翻译)

Output

输出格式

AI (CI翻译)

Output an integer between $1$ and $3$, inclusive, that is different from $X$.

请输出一个介于 $1$ 和 $3$ 之间(含端点)且不同于 $X$ 的整数。AI (CI翻译)

If there are multiple integers satisfying the condition, any of them will be accepted.

如果有多个整数满足条件,输出其中任意一个都可以通过。AI (CI翻译)

样例

Input #1
1
Output #1
2
The integers between $1$ and $3$, inclusive, that are different from $X(=1)$ are $2$ and $3$. Thus, outputing either $2$ or $3$ will be accepted.
Input #2
2
Output #2
3
Input #3
3
Output #3
2
题目信息
题号
abc474_a
时间限制
2 s
内存限制
1024 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(gpt-6.1-sol),如有出入请以原文为准。