摘要:
http://acm.hit.edu.cn/hoj/problem/view?id=2655此题主要利用广搜,先筛素预处理4位整数,将4位数的每一位搜一次,将素数保存到queue中。/*This Code is Submitted by billforum for Problem 2655 at 2012-01-30 12:27:42*/#include <iostream>#include <queue>#include <memory.h>using namespace std;struct point{ int wei[4];//保存每位的数字 int 阅读全文
posted @ 2012-01-30 12:43
wuzhibin
阅读(343)
评论(0)
推荐(0)

浙公网安备 33010602011771号