摘要:
http://poj.org/problem?id=2533 1 #include 2 #include 3 #include 4 using namespace std; 5 #define max 1000 6 int s[max+10]; 7 int max1[max+10]; 8 int main() 9 {10 int n,m;11 cin>>n;12 for(int i=1;i>s[i];15 }16 max1[1]=1;17 for(int i=2;is[j])23 {24 i... 阅读全文
posted @ 2013-08-21 23:56
null1019
阅读(172)
评论(0)
推荐(0)
摘要:
http://poj.org/problem?id=3126 1 #include 2 #include 3 #include 4 using namespace std; 5 6 struct node 7 { 8 int k,step; 9 };10 11 node h[100000];12 bool p[11000];13 int x,y,tot,s[11000];14 15 void make(int n)16 {17 memset(p,0,sizeof(p));18 p[0]=1;19 p[1]=1;20 for(int i=2; i>tot... 阅读全文
posted @ 2013-08-21 17:10
null1019
阅读(179)
评论(0)
推荐(0)
摘要:
http://poj.org/problem?id=2418 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 char s[10000]; 9 int main(){10 11 //freopen("sb.txt","r",stdin);12 long long cnt=0;13 mapq;14 while(gets(s))15 {16 cnt++;17 if(q.find(s)==q.end())18 ... 阅读全文
posted @ 2013-08-21 10:44
null1019
阅读(172)
评论(0)
推荐(0)

浙公网安备 33010602011771号