随笔分类 - POJ
摘要:两道关于用整数位运算模拟棋盘变换+暴力搜索的问题。poj2965:Flip Gamepoj1753:The Pilots Brothers' refrigeratorCode:poj2965#include<iostream>using namespace std;int switch_flag [] = {0xF888,0xF444,0xF222,0xF111,0x8F88,0x4F44,0x2F22,0x1F11,0x88F8,0x44F4,0x22F2,0x11F1,0x888F,0x444F,0x222F,0x111F};int num = (1<<16
阅读全文