锘??xml version="1.0" encoding="utf-8" standalone="yes"?>伊人久久大香线蕉无码麻豆,久久精品国产99久久丝袜,狠狠色丁香婷婷久久综合五月 http://m.shnenglu.com/Dreams/category/10040.htmlzh-cnMon, 18 May 2009 12:38:04 GMTMon, 18 May 2009 12:38:04 GMT60TOJ 1721 Friendshttp://m.shnenglu.com/Dreams/archive/2009/05/18/83299.htmlDreamSkyDreamSkyMon, 18 May 2009 10:02:00 GMThttp://m.shnenglu.com/Dreams/archive/2009/05/18/83299.htmlhttp://m.shnenglu.com/Dreams/comments/83299.htmlhttp://m.shnenglu.com/Dreams/archive/2009/05/18/83299.html#Feedback0http://m.shnenglu.com/Dreams/comments/commentRss/83299.htmlhttp://m.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://m.shnenglu.com/Dreams/archive/2009/04/23/80798.htmlDreamSkyDreamSkyThu, 23 Apr 2009 00:05:00 GMThttp://m.shnenglu.com/Dreams/archive/2009/04/23/80798.htmlhttp://m.shnenglu.com/Dreams/comments/80798.htmlhttp://m.shnenglu.com/Dreams/archive/2009/04/23/80798.html#Feedback0http://m.shnenglu.com/Dreams/comments/commentRss/80798.htmlhttp://m.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://m.shnenglu.com/Dreams/archive/2009/04/17/80278.htmlDreamSkyDreamSkyFri, 17 Apr 2009 10:33:00 GMThttp://m.shnenglu.com/Dreams/archive/2009/04/17/80278.htmlhttp://m.shnenglu.com/Dreams/comments/80278.htmlhttp://m.shnenglu.com/Dreams/archive/2009/04/17/80278.html#Feedback0http://m.shnenglu.com/Dreams/comments/commentRss/80278.htmlhttp://m.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://m.shnenglu.com/Dreams/archive/2009/03/31/78464.htmlDreamSkyDreamSkyTue, 31 Mar 2009 07:48:00 GMThttp://m.shnenglu.com/Dreams/archive/2009/03/31/78464.htmlhttp://m.shnenglu.com/Dreams/comments/78464.htmlhttp://m.shnenglu.com/Dreams/archive/2009/03/31/78464.html#Feedback1http://m.shnenglu.com/Dreams/comments/commentRss/78464.htmlhttp://m.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 鍙戣〃璇勮
]]>
久久久久综合网久久| 久久WWW免费人成—看片| 国产偷久久久精品专区| 久久久久久精品免费免费自慰| 久久久久久曰本AV免费免费| 国内精品久久久久久久97牛牛| 热99re久久国超精品首页| 欧美伊人久久大香线蕉综合69| 国产成人综合久久精品红| 99久久精品午夜一区二区| 久久精品国产精品亚洲艾草网美妙| 亚洲AV无码久久精品蜜桃| 久久精品无码专区免费| 久久久久99精品成人片直播| 久久国产午夜精品一区二区三区| 日韩欧美亚洲综合久久| 国产激情久久久久影院老熟女免费| 久久大香萑太香蕉av| 国产福利电影一区二区三区久久久久成人精品综合 | 久久久免费观成人影院| 人人狠狠综合久久88成人| 久久精品中文字幕有码| 国产欧美久久久精品| 日韩精品久久无码中文字幕| 色婷婷噜噜久久国产精品12p| 久久99国产亚洲高清观看首页| 亚洲精品无码专区久久久| 亚洲欧洲精品成人久久曰影片 | 国产精品VIDEOSSEX久久发布| 精品久久久久久无码中文字幕一区 | 99久久国产热无码精品免费| 无码国内精品久久人妻蜜桃| 久久人妻少妇嫩草AV蜜桃| 超级碰碰碰碰97久久久久| 亚洲国产成人精品无码久久久久久综合| 91精品国产综合久久精品| 中文字幕久久波多野结衣av| 色天使久久综合网天天| 亚洲AV日韩AV永久无码久久| 精产国品久久一二三产区区别| 久久99热这里只频精品6|