锘??xml version="1.0" encoding="utf-8" standalone="yes"?>欧美一区二区三区男人的天堂,久久精品日产第一区二区三区
,一区二区三区 在线观看视频 http://www.shnenglu.com/yoyouhappy/category/4615.html嬈㈣繋鏉ュ埌鎴戠殑縐樺瘑鑺卞洯^^ zh-cn Wed, 21 May 2008 03:27:42 GMT Wed, 21 May 2008 03:27:42 GMT 60 POJ 1088 婊戦洩 http://www.shnenglu.com/yoyouhappy/archive/2008/01/28/42037.htmlyoyouhappy yoyouhappy Mon, 28 Jan 2008 08:19:00 GMT http://www.shnenglu.com/yoyouhappy/archive/2008/01/28/42037.html http://www.shnenglu.com/yoyouhappy/comments/42037.html http://www.shnenglu.com/yoyouhappy/archive/2008/01/28/42037.html#Feedback 5 http://www.shnenglu.com/yoyouhappy/comments/commentRss/42037.html http://www.shnenglu.com/yoyouhappy/services/trackbacks/42037.html 棰樼洰鏄粡鍏哥殑DP鍏ラ棬錛屽師鏉TcoolL鏈変竴嬈℃嬁鏉ヨ鍋氾紝褰撴椂榪樹笉鐭P涓轟綍鐗╋紝鎯寵鏆存悳錛岀幇鍦ㄥ張閲嶆柊緲誨嚭鏉ュ仛涓涓?br> DP鏂圭▼錛歭en[ i ][ j ] = max{ len[ i-1][ j ], len[ i ][ j-1], len[ i+1][ j ], len[ i ][ j+1] }; 浠g爜濡備笅錛?br>
1 #include < iostream > 2 using namespace std; 3 4 int node[ 102 ][ 102 ]; 5 int len [ 102 ][ 102 ]; 6 int r, c; 7 int getLength( int i, int j ) 8 { 9 if ( len [i][j] > 0 ) 10 return len [i][j]; 11 int max = 0 ; 12 if ( i + 1 <= r && node[i][j] > node[i + 1 ][j] ){ 13 int x = getLength( i + 1 , j ) + 1 ; 14 if ( max < x ) 15 max = x; 16 }17 if ( j + 1 <= c && node[i][j] > node[i][j + 1 ] ){ 18 int x = getLength( i, j + 1 ) + 1 ; 19 if ( max < x ) 20 max = x; 21 }22 if ( i - 1 > 0 && node[i][j] > node[i - 1 ][j] ){ 23 int x = getLength( i - 1 , j ) + 1 ; 24 if ( max < x ) 25 max = x; 26 }27 if ( j - 1 > 0 && node[i][j] > node[i][j - 1 ] ){ 28 int x = getLength( i, j - 1 ) + 1 ; 29 if ( max < x) 30 max = x; 31 } 32 return max;33 34 }35 int main() 36 {37 38 cin >> r >> c; 39 for ( int i = 1 ; i <= r; ++ i ){ 40 for ( int j = 1 ; j <= c; ++ j ){ 41 cin >> node[i][j]; 42 len [i][j] = 0 ; 43 }44 } 45 int maxLen = 0 ; 46 for ( int i = 1 ; i <= r; ++ i ){ 47 for ( int j = 1 ; j <= c; ++ j ){ 48 len [i][j] = getLength( i, j ); 49 if ( maxLen < len [i][j] ) 50 maxLen = len [i][j]; 51 }52 }53 cout << maxLen + 1 << endl; 54 system( " pause " ); 55 }56
]]> JOJ 1101 DNA Sorting http://www.shnenglu.com/yoyouhappy/archive/2007/08/20/30463.htmlyoyouhappy yoyouhappy Mon, 20 Aug 2007 15:05:00 GMT http://www.shnenglu.com/yoyouhappy/archive/2007/08/20/30463.html http://www.shnenglu.com/yoyouhappy/comments/30463.html http://www.shnenglu.com/yoyouhappy/archive/2007/08/20/30463.html#Feedback 4 http://www.shnenglu.com/yoyouhappy/comments/commentRss/30463.html http://www.shnenglu.com/yoyouhappy/services/trackbacks/30463.html PE鍚庣粓浜庤繃浜唦 闃呰鍏ㄦ枃 ]]> 璇″紓闃縹 http://www.shnenglu.com/yoyouhappy/archive/2007/08/18/30317.htmlyoyouhappy yoyouhappy Sat, 18 Aug 2007 10:07:00 GMT http://www.shnenglu.com/yoyouhappy/archive/2007/08/18/30317.html http://www.shnenglu.com/yoyouhappy/comments/30317.html http://www.shnenglu.com/yoyouhappy/archive/2007/08/18/30317.html#Feedback 4 http://www.shnenglu.com/yoyouhappy/comments/commentRss/30317.html http://www.shnenglu.com/yoyouhappy/services/trackbacks/30317.html 9.04*100鍐?100=3錛燂紒 闃呰鍏ㄦ枃 ]]> JOJ 1034 Worm Turns http://www.shnenglu.com/yoyouhappy/archive/2007/08/17/30198.htmlyoyouhappy yoyouhappy Fri, 17 Aug 2007 00:48:00 GMT http://www.shnenglu.com/yoyouhappy/archive/2007/08/17/30198.html http://www.shnenglu.com/yoyouhappy/comments/30198.html http://www.shnenglu.com/yoyouhappy/archive/2007/08/17/30198.html#Feedback 4 http://www.shnenglu.com/yoyouhappy/comments/commentRss/30198.html http://www.shnenglu.com/yoyouhappy/services/trackbacks/30198.html
棰樼洰鏄啓涓涓秴綆鍖栫増鐨勮椽鍚冭泧錛屽湪50*50鐨勭煩闃典腑錛岃搗濮嬩綅緗槸铔囧ご浣嶄簬鐨勶紙25錛?0錛夛紝铔囧熬鍦紙25錛?1錛夛紝铔囧崰20涓牸銆傝泧鍙互鍚慐 W N S鍥涗釜鏂瑰悜縐誨姩錛屽綋鐒朵笉鑳藉弽鍚戠Щ鍔紝涔熶笉鑳芥挒鍊掕嚜宸辨垨鑰呮挒鍊掑.
闃呰鍏ㄦ枃 ]]> POJ 1002 487-3279 http://www.shnenglu.com/yoyouhappy/archive/2007/08/06/29450.htmlyoyouhappy yoyouhappy Mon, 06 Aug 2007 12:50:00 GMT http://www.shnenglu.com/yoyouhappy/archive/2007/08/06/29450.html http://www.shnenglu.com/yoyouhappy/comments/29450.html http://www.shnenglu.com/yoyouhappy/archive/2007/08/06/29450.html#Feedback 4 http://www.shnenglu.com/yoyouhappy/comments/commentRss/29450.html http://www.shnenglu.com/yoyouhappy/services/trackbacks/29450.html 闃呰鍏ㄦ枃 ]]> yoyo鐨勫亣鏈熶綔涓?/title> http://www.shnenglu.com/yoyouhappy/archive/2007/07/17/28199.htmlyoyouhappy yoyouhappy Tue, 17 Jul 2007 09:04:00 GMT http://www.shnenglu.com/yoyouhappy/archive/2007/07/17/28199.html http://www.shnenglu.com/yoyouhappy/comments/28199.html http://www.shnenglu.com/yoyouhappy/archive/2007/07/17/28199.html#Feedback 0 http://www.shnenglu.com/yoyouhappy/comments/commentRss/28199.html http://www.shnenglu.com/yoyouhappy/services/trackbacks/28199.html 闃呰鍏ㄦ枃 ]]>
2021久久精品免费观看 |
婷婷国产天堂久久综合五月 |
久久99热国产这有精品 |
国产香蕉97碰碰久久人人 |
国产精品久久久香蕉 |
狠狠狠色丁香婷婷综合久久五月
|
国产精品99久久久久久宅男 |
久久综合久久久 |
久久久久亚洲AV成人网人人网站
|
久久午夜羞羞影院免费观看 |
国产三级精品久久 |
久久婷婷五月综合色奶水99啪 |
久久99精品久久久久久不卡 |
久久精品人人做人人妻人人玩 |
久久高清一级毛片 |
一本大道加勒比久久综合 |
久久亚洲精品成人无码网站 |
99久久国产综合精品麻豆 |
久久SE精品一区二区 |
久久影院亚洲一区 |
91精品日韩人妻无码久久不卡 |
激情伊人五月天久久综合 |
久久午夜福利无码1000合集 |
久久996热精品xxxx |
久久er国产精品免费观看2 |
精品久久亚洲中文无码 |
亚洲欧美成人久久综合中文网 |
亚洲一区二区三区日本久久九 |
久久久久人妻一区精品色 |
亚洲综合伊人久久综合 |
狠狠综合久久AV一区二区三区 |
亚洲午夜精品久久久久久浪潮
|
国产精品久久久久国产A级 |
久久无码人妻一区二区三区 |
久久久久人妻精品一区二区三区 |
久久精品桃花综合 |
亚洲色大成网站WWW久久九九 |
亚洲狠狠婷婷综合久久蜜芽 |
久久精品亚洲中文字幕无码麻豆
|
亚洲午夜久久久久久久久久 |
欧洲精品久久久av无码电影 |