ChinaUnix.net
相关文章推荐:

poj 1422

该题是poj第1007,大概ratio在38%左右,分析一下我写的代码。先看看题目Description One measure of ``unsortedness'' in a sequence is the number of pairs of entries that are out of order with respect to each other. For instance, in the letter sequence ``DAABEC'', this measure is 5, since D is greater than four letters to its right and E is greater than one letter to its right. This measure is cal...

by dengjin - Linux文档专区 - 2009-11-12 20:21:55 阅读(938) 回复(0)

相关讨论

题目地址: http://acm.pku.edu.cn/JudgeOnline/problem?id=1001 程序代码: [code] dr s 5s 0 dn s 5s 0 dp1 s 10a dp2 s 10a dta s 15s 0 dim(60) dtb s 15s 0 dim(10) dtc s 15s 0 dim(60) ...

by 追尾巴 - AS400 - 2009-09-22 12:08:37 阅读(1599) 回复(2)

最近在做poj上面的题,做题的时候使用的是C语言。今天把其中的一道题用AS400里的RPG语言重新写了一遍。 题目地址如下: http://acm.pku.edu.cn/JudgeOnline/problem?id=1988 首先是考虑输入。我将输入改为使用文件来输入了。建立的物理文件如下: [quote] R INPUT LINE 14A COLHDG('LINE')[/quote] 里面的保存的内容为: [quote]Position to line . . . . . .......

by 追尾巴 - AS400 - 2009-09-22 10:29:58 阅读(2965) 回复(4)