摘要:
#include<iostream>#include<cstdio>using namespace std;int n;long long int q[9999999];void BFS(){ int front,rear; front=rear=0; q[rear]=1; rear++; long long int top; while(rear>front) { top = q[front]; if(top%n==0){ break; } top *= 10; q[rear++]=top; q[rear++]=top+1; front++; } printf( 阅读全文
posted @ 2011-05-06 17:55
Eric-Yang
阅读(223)
评论(0)
推荐(0)

浙公网安备 33010602011771号