
位运算
文章平均质量分 84
J_Sure
唯苦修深思方能顿悟
展开
-
AOJ-AHU-OJ-443 寄存器数据转换
寄存器数据转换 Time Limit: 1000 ms Case Time Limit: 1000 ms Memory Limit: 64 MB Description 假设你工作在一个32位的机器上,你需要将某一个外设寄存器的第X位设置成0(最低位为第0位,最高位为第31位),将第Y位开始的连续三位设置成110(从高位到低位的顺序),而其他位保持不变。对给定的寄存器值R,及原创 2014-03-18 17:37:37 · 1107 阅读 · 0 评论 -
AOJ-AHU-OJ-596 下一个K-number
下一个K-number Time Limit: 1000 ms Case Time Limit: 1000 ms Memory Limit: 64 MB Description 我们首先定义一种k-number。 对于某一个数,在二进制表示中,如果有k位为1,则这个数称为k-number。 如:14=(1110)2 ,则14被称为3-number。 现如今给一个正整数n原创 2014-03-18 17:27:51 · 1179 阅读 · 0 评论 -
AOJ-AHU-OJ-670 Tyrion的矩阵
Tyrion的矩阵 Time Limit: 1000 ms Case Time Limit: 1000 ms Memory Limit: 64 MB Description Cersei有一个整数序列A = {A1, A2,..., An}, 0 Jamie有一个整数序列B = {B1, B2,..., Bm}, 0 Tyrion根据Ceise提供的序列A原创 2014-03-28 20:25:11 · 1163 阅读 · 0 评论 -
USACO-cha1-sec1.5 Checker Challenge
Checker Challenge Examine the 6x6 checkerboard below and note that the six checkers are arranged on the board so that one and only one is placed in each row and each column, and there is never more原创 2014-07-05 15:24:37 · 921 阅读 · 0 评论 -
【BFS|位运算】POJ-1753 Flip Game
Flip Game Time Limit: 1000MS Memory Limit: 65536K Description Flip game is played on a rectangular 4x4 field with two-sided pieces placed on each of its 16 square原创 2014-11-09 22:07:51 · 892 阅读 · 0 评论 -
【BFS|位运算+输出路径】POJ-2965 The Pilots Brothers' refrigerator
The Pilots Brothers' refrigerator Time Limit: 1000MS Memory Limit: 65536K Special Judge Description The game “The Pilots Brothers: following the stripy elep原创 2014-11-12 09:55:34 · 802 阅读 · 0 评论 -
【状压DP+输出路径】HDU-1074 Doing Homework
Doing Homework Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Problem Description Ignatius has just come back school from the 30th ACM/ICPC. Now he has a原创 2014-11-22 20:02:15 · 704 阅读 · 0 评论