Problem 2983 --Just Skip The Problem

2983: Just Skip The Problem

"
Time Limit $1$ 秒/Second(s) Memory Limit $512$ 兆字节/Megabyte(s)
提交总数 $11$ 正确数量 $7$
裁判形式 标准裁判/Standard Judge 我的状态 尚未尝试
难度 分类标签
Y_UME has just found a number x in his right pocket. The number is a non-negative integer ranging from 0 to 2^n−1 inclusively. You want to know the exact value of this number. Y_UME has super power, and he can answer several questions at the same time. You can ask him as many questions as you want. But you must ask all questions simultaneously. In the i-th question, you give him an integer yi ranging from 0 to 2^n−1 inclusively, and he will answer you if x&yi equals to yi or not. Note that each question you ask has a index number. Namely, the questions are ordered in certain aspect. Note that Y_UME answer all questions at the same time, which implies that you could not make any decision on the remaining questions you could ask according to some results of some of the questions. 

You want to get the exact value of x and then minimize the number of questions you will ask. How many different methods may you use with only minimum number of questions to get the exact value of x? You should output the number of methods modulo 10^6+3

Two methods differ if and only if they have different number of questions or there exsits some i satisfying that the i-th question of the first method is not equal to the i-th of the second one.
There are multiple test cases. 

Each case starts with a line containing one positive integer n(n≤10^9).
For each test case, output one line containing an integer denoting the answer.
2
2

推荐代码 查看2983 所有题解 上传题解视频得图灵币

本题记录 用 户(点击查看用户) 运行号(点击购买题解) 时 间
算法最快[$12 $ms] 淡意的温柔 591120 2020-06-06 08:12:50
内存最少[$1116 $KB] tttttttt 470139 2019-09-19 18:24:11
第一AC 卑微小赵 449439 2019-07-26 22:31:29
第一挑战 卑微小赵 449439 2019-07-26 22:31:29

赛题来源/所属竞赛 2019 Multi-University Training Contest 2 N/A

竞赛编号 竞赛名称 竞赛时间 访问比赛
1407 2019CCPC模拟赛(秦皇岛站 安财贸9.19) 2019-09-19 09:00:00 请登录