锘??xml version="1.0" encoding="utf-8" standalone="yes"?>日本精品久久久中文字幕,久久天天躁狠狠躁夜夜躁2014,成人久久精品一区二区三区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 鍙戣〃璇勮
]]>
2019久久久高清456| 久久人做人爽一区二区三区| 久久99国产综合精品| 精品久久久无码中文字幕| 久久久久精品国产亚洲AV无码| 77777亚洲午夜久久多喷| 成人a毛片久久免费播放| 精品熟女少妇av免费久久| 久久精品国产99国产精品| 天天综合久久久网| 99久久人妻无码精品系列蜜桃| 国产精品无码久久四虎| 国产成人精品三上悠亚久久| 久久国产免费| www性久久久com| 久久久久久久波多野结衣高潮 | 热久久视久久精品18| 93精91精品国产综合久久香蕉| 欧洲精品久久久av无码电影| 久久精品人人做人人爽电影| 欧美综合天天夜夜久久| 国产婷婷成人久久Av免费高清| 伊人久久大香线蕉AV一区二区| 伊人久久大香线蕉综合5g| 91精品婷婷国产综合久久| 久久电影网2021| 国内精品久久久久久久影视麻豆 | 天天综合久久一二三区| 色综合久久精品中文字幕首页 | 久久精品国产99久久久古代| 久久精品国产精品亚洲下载| 久久精品一区二区国产| 国产成人精品白浆久久69| 国产成人久久精品一区二区三区| 伊人色综合久久天天人守人婷| 欧美精品一区二区久久| 国产69精品久久久久久人妻精品| 日韩一区二区三区视频久久| 久久婷婷色综合一区二区| 欧美日韩精品久久久免费观看| 久久AAAA片一区二区|