Web Secret之:导言

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/liuruhong/article/details/4070045
WebSecret之:导言        再提Web2.0,都有些索然无味,再去界定哪些应用是Web2.0的应用,也已经失去价值,虽然到现在,对于Web2.0还是没有一个绝对的共识,但是大家不约而同地界定出了非Web2.0的应用,那就是以门户和传统的Web企业应用为代表,“过去的、已有的、确定的”第一代互联网服务模式,我们叫着Web1.0,而今天的、未来的所有应用,都可以称为
展开阅读全文

The Secret Number

03-04

Your job is to find out the secret number hidden in a matrix, each of whose element is a digit ('0'-'9') or a letter ('A'-'Z'). You can see an example matrix in Figure 1.nnnFigure 1: A MatrixnnThe secret number and other non-secret ones are coded in a matrix as sequences of digits in a decimal format. You should only consider sequences of digits D1 D2 ... Dn such that Dk+1 (1 <= k < n) is either right next to or immediately below Dk in the matrix. The secret you are seeking is the largest number coded in this manner.nnFour coded numbers in the matrix in Figure 1, i.e., 908820, 23140037, 23900037, and 9930, are depicted in Figure 2. As you may see, in general, two or more coded numbers may share a common subsequence. In this case, the secret number is 23900037, which is the largest among the set of all coded numbers in the matrix.nnnnFigure 2: Coded NumbersnnIn contrast, the sequences illustrated in Figure 3 should be excluded: 908A2 includes a letter; the fifth digit of 23149930 is above the fourth; the third digit of 90037 is below right of the second.nnnnFigure 3: Inappropriate SequencesnnWrite a program to figure out the secret number from a given matrix.nnnInputnnThe input consists of multiple data sets, each data set representing a matrix. The format of each data set is as follows.nnW HnC11C12 ... C1WnC21C22 ... C2Wn...nCH1CH2 ... CHWnnIn the first line of a data set, two positive integers W and H are given. W indicates the width (the number of columns) of the matrix, and H indicates the height (the number of rows) of the matrix. W+H is less than or equal to 70.nnH lines follow the first line, each of which corresponds to a row of the matrix in top to bottom order. The i-th row consists of W characters Ci1Ci2 ... CiW in left to right order. You may assume that the matrix includes at least one non-zero digit.nnFollowing the last data set, two zeros in a line indicate the end of the input.nnnOutputnnFor each data set, print the secret number on a line. Leading zeros should be suppressed.nnnSample Inputnn7 4n9R2A993n0E314A0n8A900DEn820R037n6 7nJH03HEnID7722n0DA1AHn30C9G5n99971AnCA7EAInAHLBEMn20 2nA1234567891234CBDEGHnBDEDF908034265091499n0 0nnnSample Outputnn23900037n771971n12345908034265091499 问答

Secret Garden】人物记事

11-10

人物:[color=#FF0000]supertitan001[/color] [img=http://avatar.csdn.net/2/4/F/1_supertitan001.jpg][/img]rnrn[img=http://hi.csdn.net/attachment/201011/10/8675403_1289371072hJDw.jpg][/img]rnrn[color=#FF0000]您永远是我们的老大,还记得带我们开黑吗?[/color]rnrn人物:[color=#FF0000]bojiansky[/color] [img=http://avatar.csdn.net/0/B/B/1_bojiansky.jpg][/img]rnrn[img=http://hi.csdn.net/attachment/201011/10/8675403_1289371054KsX2.jpg][/img]rnrn[img=http://hi.csdn.net/attachment/201011/10/8675403_1289371037l6FC.jpg][/img]rn[color=#FF0000] 还记得我们一起砍SF么?[/color]rnrn人物: [color=#FF0000]baoshiqiang[/color] [img=http://avatar.csdn.net/7/A/D/1_baoshiqiang.jpg][/img]rnrn[img=http://hi.csdn.net/attachment/201011/10/8675403_12893710535XmV.jpg][/img]rn[img=http://hi.csdn.net/attachment/201011/10/8675403_1289371054ed55.jpg][/img]rn[img=http://hi.csdn.net/attachment/201011/10/8675403_1289373423ddZQ.jpg][/img]rn[color=#FF0000]还记得我们一起给MM催生么?[/color]rnrn人物: [color=#FF0000]piaolankeke[/color] [img=http://avatar.csdn.net/2/A/B/1_piaolankeke.jpg][/img]rnrn[img=http://hi.csdn.net/attachment/201011/10/8675403_12893716290ox6.jpg][/img]rnrn[color=#FF0000]话说可儿姐是里面唯一一位女生,还是大姐头rn 在这给大家爆个料,可儿姐有恐婚症[/color]rn[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/33.gif][/img]rn[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/monkey/21.gif][/img]rnrn人物: [color=#FF0000]IvoryTower[/color] [img=http://avatar.csdn.net/D/0/2/1_ivorytower.jpg][/img]rnrn[img=http://hi.csdn.net/attachment/201011/10/8675403_1289372229040q.jpg][/img]rnrn [color=#FF0000]话说娜娜的十二宫圣斗士很牛X[/color]rnrn人物:[color=#FF0000]xyylove520 [/color] [img=http://avatar.csdn.net/D/C/2/1_xyylove520.jpg][/img]rnrn[img=http://hi.csdn.net/attachment/201011/10/8675403_1289372746kICN.jpg][/img]rnrn [color=#FF0000]小哀很低调,但你别以为小哀好欺负!话说小哀真三的实力在CSDN是名列前茅的![/color]rnrn人物:[color=#FF0000]lthyxy[/color] [img=http://avatar.csdn.net/3/2/8/1_lthyxy.jpg][/img]rnrn [img=http://hi.csdn.net/attachment/201011/10/8675403_12893729700AjA.jpg][/img]rnrn [color=#FF0000] 飞哥就是有点贪,不然我们的第一次尝试也不会赚的那么少![/color] [img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/monkey/2.gif][/img]rnrn人物:[color=#FF0000]yetaodiao[/color] [img=http://avatar.csdn.net/E/9/A/1_yetaodiao.jpg][/img]rnrn[img=http://hi.csdn.net/attachment/201011/10/8675403_1289373651Q4QP.jpg][/img]rnrn [color=#FF0000]V5大人真好[/color][img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/monkey/20.gif][/img] 论坛

没有更多推荐了,返回首页