#include
#include
#include
#include
#include
static int flag=0;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
void print_bin(unsigned int n,int m)//字符转为8位2进制 ,1行显示16位或24位
{
int l = sizeof(n)*8;//总位数。
int i=7;
/*if(i == 0)
{
printf("0");
return;
}
for(i = l-1; i >= 0; i --)//略去高位0.
{
if(n&(1
用蛮力法和分治法解最近对问题以及对算法时间性能及运行结果的分析
(And sub-rule by brute force method of solving the problem, as well as the recent performance of the algorithm and running time analysis of the results)