AT_abc474_a.Not X

入门

通过率:0%

时间限制:2.00s

内存限制:1024MB

AC君温馨提醒

该题目为【atcoder】题库的题目,您提交的代码将被提交至atcoder进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。

题目描述

You are given an integer XX between 11 and 33, inclusive.

Output an integer between 11 and 33, inclusive, that is different from XX.

给你一个在 11 到 33(含)之间的整数 XX。

输出一个在 11 到 33(含)之间的整数,且该整数不等于 XX。

输入格式

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

XX

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

XX

输出格式

Output an integer between 11 and 33, inclusive, that is different from XX.

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

输出一个在 11 到 33(含)之间的整数,且该整数不等于 XX。

如果存在多个满足条件的整数,则其中任意一个均可接受。

输入输出样例

  • 输入#1

    1

    输出#1

    2
  • 输入#2

    2

    输出#2

    3
  • 输入#3

    3

    输出#3

    2

说明/提示

Sample 1 Explanation:
The integers between 11 and 33, inclusive, that are different from X(=1)X(=1) are 22 and 33.

Thus, outputing either 22 or 33 will be accepted.

Constraints

  • XX is an integer between 11 and 33, inclusive.

样例 1 解释:
在 11 到 33(含端点)之间的整数中,与 X(=1)X(=1) 不同的数是 22 和 33。

因此,输出 22 或 33 中的任意一个均可接受。

限制条件

  • XX 是一个介于 11 和 33(含端点)之间的整数。

输入解题思路,AI测评打分。不知道怎么写?

首页