AT_abc474_a.Not X
入门
通过率:0%
时间限制:2.00s
内存限制:1024MB
AC君温馨提醒
该题目为【atcoder】题库的题目,您提交的代码将被提交至atcoder进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。
题目描述
You are given an integer X between 1 and 3, inclusive.
Output an integer between 1 and 3, inclusive, that is different from X.
给你一个在 1 到 3(含)之间的整数 X。
输出一个在 1 到 3(含)之间的整数,且该整数不等于 X。
输入格式
The input is given from Standard Input in the following format:
X
输入从标准输入中按以下格式给出:
X
输出格式
Output an integer between 1 and 3, inclusive, that is different from X.
If there are multiple integers satisfying the condition, any of them will be accepted.
输出一个在 1 到 3(含)之间的整数,且该整数不等于 X。
如果存在多个满足条件的整数,则其中任意一个均可接受。
输入输出样例
输入#1
1
输出#1
2
输入#2
2
输出#2
3
输入#3
3
输出#3
2
说明/提示
Sample 1 Explanation:
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.
Constraints
- X is an integer between 1 and 3, inclusive.
样例 1 解释:
在 1 到 3(含端点)之间的整数中,与 X(=1) 不同的数是 2 和 3。
因此,输出 2 或 3 中的任意一个均可接受。
限制条件
- X 是一个介于 1 和 3(含端点)之间的整数。
输入解题思路,AI测评打分。不知道怎么写?