FOJ 1643 Oaiei's cube II
来源:互联网 发布:中国海关数据库公开 编辑:程序博客网 时间:2024/05/21 16:57
Time Limit:1s | Memory limit:32M |
Accepted Submit:16 | Total Submit:31 |
One day, oaiei plays with his cubes again. He writes “0” or “1” in his N cubes. Then he arranges these cubes to form a series of binary number. But, he is bored with this simple game, so he restricts the game as follows:
So the first 16 number is : 0,1,10,11,100,101,110,111,1000,1001,1010,1011,1100,1101,1110,10000. Now, your task is to find the binary number according the index. InputThere are multiple test cases. For each test case, there is an integer N, denoting the index (1<=N<=1.5 * 10 ^ 9) . OutputFor each test case, you should output the binary number according the index. Sample Input15 Sample Output1110 Original: FZU 2008 Summer Training II--Combinatorics
1.先生成小数据.(用暴力) 大步 从左边开始数).然后实际上后面的bit-1位中最多只能出现2个1 案.
|
- FOJ 1643 Oaiei's cube II
- Foj 1888 三角形问题II
- Foj 1601 Alibaba's treasures
- Foj 2164 Jason's problem
- hdu3220Alice’s Cube(IDA*)
- HDU3220-Alice’s Cube
- 【数论】FOJ 2238 Daxia & Wzc's problem
- HDU 4397 - Rubik's Cube
- HDU 4397 Rubik's Cube
- POJ 1955 Rubik's Cube
- ural 1878 Rubinchik's Cube
- HDU 3220 Alice’s Cube
- Windy's S(II)
- FOJ 2171 防守阵地 II【线段树+区间更新】
- 魔方还原法 Rubic's Cube Solution
- Rubik's Cube Beijing Fall Open 2008
- Rubik's Cube Beijing Spring Open 2009
- UVALive 4743 (Alice's Cube)DFS
- BEA助中国一汽构建核心ERP系统
- 校内网开放平台正式允许开发者在App中放广告
- 我的这两年
- 奥运会终于到来了
- 案例分析 六招知识管理应对员工高流动
- FOJ 1643 Oaiei's cube II
- GridView中的超链接
- K线漂移法——伏致均独创
- 我的资源,主要面向教师
- 文件时间设置与读取的代码
- 木马生成技术详解
- 关于使用DirectShow架构,传输YUV420数据的Filter与Video Renderer Filter连接问题的解决办法。
- tomcat域名绑定
- 今天开始,静心研究C#