锘??xml version="1.0" encoding="utf-8" standalone="yes"?>日本精品久久久中文字幕,久久天天躁狠狠躁夜夜躁2014,成人久久精品一区二区三区 http://www.shnenglu.com/Dreams/category/10040.htmlzh-cn Mon, 18 May 2009 12:38:04 GMT Mon, 18 May 2009 12:38:04 GMT 60 TOJ 1721 Friends http://www.shnenglu.com/Dreams/archive/2009/05/18/83299.htmlDreamSky DreamSky Mon, 18 May 2009 10:02:00 GMT http://www.shnenglu.com/Dreams/archive/2009/05/18/83299.html http://www.shnenglu.com/Dreams/comments/83299.html http://www.shnenglu.com/Dreams/archive/2009/05/18/83299.html#Feedback 0 http://www.shnenglu.com/Dreams/comments/commentRss/83299.html http://www.shnenglu.com/Dreams/services/trackbacks/83299.html http://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 ; }
]]> zju 3182 Nine Interlinks http://www.shnenglu.com/Dreams/archive/2009/04/23/80798.htmlDreamSky DreamSky Thu, 23 Apr 2009 00:05:00 GMT http://www.shnenglu.com/Dreams/archive/2009/04/23/80798.html http://www.shnenglu.com/Dreams/comments/80798.html http://www.shnenglu.com/Dreams/archive/2009/04/23/80798.html#Feedback 0 http://www.shnenglu.com/Dreams/comments/commentRss/80798.html http://www.shnenglu.com/Dreams/services/trackbacks/80798.html http://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 ; }
]]> hdu 2275 Kiki & Little Kiki 1 http://www.shnenglu.com/Dreams/archive/2009/04/17/80278.htmlDreamSky DreamSky Fri, 17 Apr 2009 10:33:00 GMT http://www.shnenglu.com/Dreams/archive/2009/04/17/80278.html http://www.shnenglu.com/Dreams/comments/80278.html http://www.shnenglu.com/Dreams/archive/2009/04/17/80278.html#Feedback 0 http://www.shnenglu.com/Dreams/comments/commentRss/80278.html http://www.shnenglu.com/Dreams/services/trackbacks/80278.html http://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 ( * p > 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 ; }
]]> Decode the Strings http://www.shnenglu.com/Dreams/archive/2009/03/31/78464.htmlDreamSky DreamSky Tue, 31 Mar 2009 07:48:00 GMT http://www.shnenglu.com/Dreams/archive/2009/03/31/78464.html http://www.shnenglu.com/Dreams/comments/78464.html http://www.shnenglu.com/Dreams/archive/2009/03/31/78464.html#Feedback 1 http://www.shnenglu.com/Dreams/comments/commentRss/78464.html http://www.shnenglu.com/Dreams/services/trackbacks/78464.html http://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 ; }
]]>
2019久久久高清456 |
久久人做人爽一区二区三区 |
久久99国产综合精品 |
精品久久久无码中文字幕 |
久久久久精品国产亚洲AV无码 |
77777亚洲午夜久久多喷 |
成人a毛片久久免费播放 |
精品熟女少妇av免费久久 |
久久精品国产99国产精品 |
天天综合久久久网 |
99久久人妻无码精品系列蜜桃 |
国产精品无码久久四虎 |
国产成人精品三上悠亚久久 |
久久国产免费 |
www性久久久com |
久久久久久久波多野结衣高潮
|
热久久视久久精品18 |
93精91精品国产综合久久香蕉 |
欧洲精品久久久av无码电影 |
久久精品人人做人人爽电影 |
欧美综合天天夜夜久久 |
国产婷婷成人久久Av免费高清 |
伊人久久大香线蕉AV一区二区 |
伊人久久大香线蕉综合5g |
91精品婷婷国产综合久久 |
久久电影网2021 |
国内精品久久久久久久影视麻豆
|
天天综合久久一二三区 |
色综合久久精品中文字幕首页
|
久久精品国产99久久久古代 |
久久精品国产精品亚洲下载 |
久久精品一区二区国产 |
国产成人精品白浆久久69 |
国产成人久久精品一区二区三区 |
伊人色综合久久天天人守人婷 |
欧美精品一区二区久久 |
国产69精品久久久久久人妻精品 |
日韩一区二区三区视频久久 |
久久婷婷色综合一区二区 |
欧美日韩精品久久久免费观看 |
久久AAAA片一区二区 |