[GESP202503 三级] 2025
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目背景
2025 年 03 月 GESP C++ 三级编程第 1 题
题目描述
小 A 有一个整数 ,他想找到最小的正整数 使得下式成立:
$$(x \ \operatorname{and} \ y) + (x \ \operatorname{or} \ y) = 2025 $$其中 表示二进制按位与运算, 表示二进制按位或运算。如果不存在满足条件的 ,则输出 。
输入格式
一行,一个整数 。
输出格式
一行,一个整数,若满足条件的 存在则输出 ,否则输出 。
样例
1025
1000
数据范围
对于所有测试点,保证 。
提示
$$(x \ \operatorname{and} \ y) + (x \ \operatorname{or} \ y) = 2025 $$其中:
- 表示按位与运算,运算符为 。
- 表示按位或运算,运算符为 。
GESP三级编程题练习
- Status
- Done
- Problem
- 12
- Open Since
- 2025-5-10 17:30
- Deadline
- 2025-6-30 23:59
- Extension
- 24 hour(s)