位运算
文章平均质量分 84
J_Sure
唯苦修深思方能顿悟
展开
-
AOJ-AHU-OJ-443 寄存器数据转换
寄存器数据转换Time Limit: 1000 ms Case Time Limit: 1000 ms Memory Limit: 64 MBDescription假设你工作在一个32位的机器上,你需要将某一个外设寄存器的第X位设置成0(最低位为第0位,最高位为第31位),将第Y位开始的连续三位设置成110(从高位到低位的顺序),而其他位保持不变。对给定的寄存器值R,及原创 2014-03-18 17:37:37 · 1051 阅读 · 0 评论 -
AOJ-AHU-OJ-596 下一个K-number
下一个K-numberTime Limit: 1000 ms Case Time Limit: 1000 ms Memory Limit: 64 MBDescription我们首先定义一种k-number。对于某一个数,在二进制表示中,如果有k位为1,则这个数称为k-number。如:14=(1110)2 ,则14被称为3-number。现如今给一个正整数n原创 2014-03-18 17:27:51 · 1140 阅读 · 0 评论 -
AOJ-AHU-OJ-670 Tyrion的矩阵
Tyrion的矩阵Time Limit: 1000 ms Case Time Limit: 1000 ms Memory Limit: 64 MBDescriptionCersei有一个整数序列A = {A1, A2,..., An}, 0Jamie有一个整数序列B = {B1, B2,..., Bm}, 0Tyrion根据Ceise提供的序列A原创 2014-03-28 20:25:11 · 1109 阅读 · 0 评论 -
USACO-cha1-sec1.5 Checker Challenge
Checker ChallengeExamine 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 · 867 阅读 · 0 评论 -
【BFS|位运算】POJ-1753 Flip Game
Flip GameTime Limit: 1000MS Memory Limit: 65536K DescriptionFlip 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 · 845 阅读 · 0 评论 -
【BFS|位运算+输出路径】POJ-2965 The Pilots Brothers' refrigerator
The Pilots Brothers' refrigeratorTime Limit: 1000MS Memory Limit: 65536K Special JudgeDescriptionThe game “The Pilots Brothers: following the stripy elep原创 2014-11-12 09:55:34 · 760 阅读 · 0 评论 -
【状压DP+输出路径】HDU-1074 Doing Homework
Doing HomeworkTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem DescriptionIgnatius has just come back school from the 30th ACM/ICPC. Now he has a原创 2014-11-22 20:02:15 · 657 阅读 · 0 评论