锘??xml version="1.0" encoding="utf-8" standalone="yes"?>欧美激情亚洲另类,影音先锋久久久,久久一区二区三区四区http://www.shnenglu.com/Dreams/category/10040.htmlzh-cnMon, 18 May 2009 12:38:04 GMTMon, 18 May 2009 12:38:04 GMT60TOJ 1721 Friendshttp://www.shnenglu.com/Dreams/archive/2009/05/18/83299.htmlDreamSkyDreamSkyMon, 18 May 2009 10:02:00 GMThttp://www.shnenglu.com/Dreams/archive/2009/05/18/83299.htmlhttp://www.shnenglu.com/Dreams/comments/83299.htmlhttp://www.shnenglu.com/Dreams/archive/2009/05/18/83299.html#Feedback0http://www.shnenglu.com/Dreams/comments/commentRss/83299.htmlhttp://www.shnenglu.com/Dreams/services/trackbacks/83299.htmlhttp://acm.tju.edu.cn/toj/showp1721.html
//640827 2009-05-18 17:58:06 Accepted 1721 C++ 1.6K 0'00.00" 1212K asliyunsong 
#include<iostream>
#include
<string>
#include
<map>
using namespace std;

int main()
{
    
int tc,T;
    
int j,len;
    
string str,names;
    
string pep[] = {"a","Anne","Bob","Karin","Charly","Dave","Edward","Frank"};
    scanf(
"%d",&T);
    getchar();
    
for(tc = 1; tc <= T;tc ++)
    
{
        map
<string,int> M;
        getline(cin,str);        
        str 
+= " ";
        len 
= str.length();
        names 
= "";
        
for(j = 0;j<len;j++)
        
{
            
if(str[j] == ' ')
            
{
                M[names] 
= 1;
                names 
= "";
            }

            
else
                names 
+= str[j];
        }

        
int pt1 ,pt2,pt3;
        pt1 
= pt2 = pt3 = 0;
        
if(M[pep[1]] == 1)
            pt1
++;
        
if(M[pep[2]] == 1)
        
{
            
if(M[pep[3]] == 1 && M[pep[5]] == 0 && M[pep[1]] == 1 && M[pep[6]] == 0)
                pt2
++;
            
else if(M[pep[3]] == 0 && ( M[pep[5]] == 1 || M[pep[1]] == 0 || M[pep[6]] == 1))
                pt3 
++;
        }

        
if(M[pep[3]] == 1)
        
{
            
if(M[pep[4]] == 1 )
                pt2
++;
            
else if(M[pep[4]] == 0 && M[pep[1]] == 1 )
                pt1 
++;
            
else if(M[pep[4]] == 0 && M[pep[1]] == 0 )
                pt3 
++;
        }

        
if(M[pep[4]] == 1)
        
{
            
if(M[pep[1]] == 1 )
                pt1
++;
        }


        
if(M[pep[6]] == 1)
        
{
            
if(M[pep[4]] == 0 && M[pep[1]] == 1 )
                pt3
++;
            
else 
                pt1 
++;
        }


        
if(M[pep[7]] == 1)
        
{
            
if(M[pep[2]] == 0 && M[pep[1]] == 0 )
                pt1 
++;
            
else if(M[pep[1]] == 1 )
                pt2 
++;
        }

        
        printf(
"Scenario #%d:\n",tc);

        
if(pt1 > pt2 && pt1 > pt3)
        
{
            cout
<<"cinema"<<endl;
        }

        
else if(pt2 > pt1 && pt2 > pt3)
        
{
            cout
<<"disco"<<endl;
        }

        
else if(pt3 > pt2 && pt3 > pt1)
        
{
            cout
<<"cocktail bar"<<endl;
        }

        
else 
            cout
<<"stay at the Hacienda"<<endl;

        cout
<<endl;
    }

    
return 0;
}


DreamSky 2009-05-18 18:02 鍙戣〃璇勮
]]>
zju 3182 Nine Interlinks http://www.shnenglu.com/Dreams/archive/2009/04/23/80798.htmlDreamSkyDreamSkyThu, 23 Apr 2009 00:05:00 GMThttp://www.shnenglu.com/Dreams/archive/2009/04/23/80798.htmlhttp://www.shnenglu.com/Dreams/comments/80798.htmlhttp://www.shnenglu.com/Dreams/archive/2009/04/23/80798.html#Feedback0http://www.shnenglu.com/Dreams/comments/commentRss/80798.htmlhttp://www.shnenglu.com/Dreams/services/trackbacks/80798.htmlhttp://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=3223
#include<iostream>
using namespace std;
int main()
{
    
int i,num[31],p=4,t;
    num[
1= 1;
    num[
2= 2;
    
for(i=3;i<=30;i++)
    
{
        num[i] 
= p + num[i-2];
        p 
*= 2;
    }

    cin
>>t;
    
while(t--)
    
{
        cin
>>i;
        cout
<<num[i]<<endl;
    }

    
return 0;
}


DreamSky 2009-04-23 08:05 鍙戣〃璇勮
]]>
hdu 2275 Kiki & Little Kiki 1http://www.shnenglu.com/Dreams/archive/2009/04/17/80278.htmlDreamSkyDreamSkyFri, 17 Apr 2009 10:33:00 GMThttp://www.shnenglu.com/Dreams/archive/2009/04/17/80278.htmlhttp://www.shnenglu.com/Dreams/comments/80278.htmlhttp://www.shnenglu.com/Dreams/archive/2009/04/17/80278.html#Feedback0http://www.shnenglu.com/Dreams/comments/commentRss/80278.htmlhttp://www.shnenglu.com/Dreams/services/trackbacks/80278.htmlhttp://acm.hdu.edu.cn/showproblem.php?pid=2275
//1280467 2009-04-17 18:03:56 Time Limit Exceeded 2275 1000MS 388K 1448 B C++ no way 
//1280554 2009-04-17 18:30:28 Accepted 2275 109MS 2416K 665 B C++ no way 
#include<iostream>
#include
<set>
using namespace std;
int main()
{
    
int n,a;
    
char op[5];
    
while(cin>>n)
    
{
        multiset
<int>S;
        multiset
<int>::iterator p,q;
        
while(n--)
        
{
            scanf(
"%s%d",op,&a);
            
if(op[3== 'h')
                S.insert(a);
            
else
            
{
                p 
= S.begin();
                
if(*> a)
                
{
                    printf(
"No Element!\n");
                    
continue;
                }

                p 
= S.find(a);
                
if(p!=S.end())
                
{
                    printf(
"%d\n",*p);
                    S.erase(p);
                }

                
else
                
{
                    S.insert(a);
                    p 
= q = S.find(a);
                    p 
-- ;
                    printf(
"%d\n",*p);
                    S.erase(p);
                    S.erase(q);
                }

            }
//while(n--)
        }

        printf(
"\n");
    }

    
return 0;
}


DreamSky 2009-04-17 18:33 鍙戣〃璇勮
]]>
Decode the Stringshttp://www.shnenglu.com/Dreams/archive/2009/03/31/78464.htmlDreamSkyDreamSkyTue, 31 Mar 2009 07:48:00 GMThttp://www.shnenglu.com/Dreams/archive/2009/03/31/78464.htmlhttp://www.shnenglu.com/Dreams/comments/78464.htmlhttp://www.shnenglu.com/Dreams/archive/2009/03/31/78464.html#Feedback1http://www.shnenglu.com/Dreams/comments/commentRss/78464.htmlhttp://www.shnenglu.com/Dreams/services/trackbacks/78464.htmlhttp://acm.zjgsu.edu.cn/JudgeOnline/showproblem?problem_id=1259
#include<iostream>
#include
<string>
#include
<cstdio>
using namespace std;
int st[83][83];
int main()
{
    
int n;
     __int64 kk;
    
while(scanf("%d%I64d",&n,&kk) && n+kk)
    
{
        
int i,j,pp;
        
char str[83],temp[83];
        
int sh[83],xia[83];
        
for(i=0;i<n;i++)
        
{
            cin
>>pp;
            pp
--;
            sh[i]
=pp;//絎琲涓綅緗鎷垮埌pp
            xia[pp]=i;
        }
 
        getchar();
        cin.getline(str,
82,'\n');
        
for(i=0;i<n;i++)
        
{
            j
=xia[i];
            pp
=1;
            
while(i!=j)
            
{
                st[i][pp
++]=j;
                j
=xia[j];
            }

            st[i][pp]
=st[i][pp+1]=j;
            st[i][
0]=pp;//寰幆嬈℃暟
        }

        
for(i=0;i<n;i++)
        
{
            
if(kk%st[i][0]==0)
                pp
=st[i][0];
            
else
            
{
                pp
=kk%st[i][0];
                pp
=st[i][0]-pp;//
            }

            temp[st[i][pp]]
=str[i];            
        }

        temp[n]
='\0';
        printf(
"%s\n",temp);
    }

    
return 0;
}


DreamSky 2009-03-31 15:48 鍙戣〃璇勮
]]>
天天综合久久一二三区| 天天久久狠狠色综合| 久久久久久久精品妇女99| 久久久国产99久久国产一| 亚洲国产精品久久电影欧美| 久久久久AV综合网成人| 久久久久婷婷| 无码AV中文字幕久久专区| 亚洲国产精品热久久| 国内精品久久久久影院薰衣草| 久久九九精品99国产精品| 欧美亚洲另类久久综合婷婷| 精品久久久久久| 亚洲中文字幕无码一久久区 | 国内精品久久久久久中文字幕| 亚洲国产精品成人久久蜜臀| 国产精品久久久久aaaa| 99精品国产99久久久久久97| 四虎国产精品成人免费久久| 99久久人妻无码精品系列蜜桃| 久久精品成人欧美大片| 亚洲国产成人精品久久久国产成人一区二区三区综 | 99久久国产宗和精品1上映| 99久久精品国产综合一区| 看久久久久久a级毛片| 久久精品国产免费观看三人同眠| 精品久久久久久99人妻| 国产免费久久精品丫丫| 久久精品国产一区二区| 精品久久国产一区二区三区香蕉| 99久久无码一区人妻| 国产激情久久久久影院老熟女免费 | 亚洲av日韩精品久久久久久a| 亚洲天堂久久久| 久久精品国产男包| 久久亚洲中文字幕精品有坂深雪| 亚洲AV无码成人网站久久精品大| 久久人爽人人爽人人片AV| 久久国产高潮流白浆免费观看| 99re这里只有精品热久久| 久久青青草原精品影院|