摘要: 题目描述 一位老木匠需要将一根长的木棒切成N段。每段的长度分别为L1,L2,......,LN(1 int main() { int n,i,j,t,s=0; scanf("%d",&n); int a[n+1]; for (i = 1; i a[j+1]) { t = a[j]; a[j] = a 阅读全文
posted @ 2017-09-19 16:22 梦想未必轻 阅读(140) 评论(0) 推荐(0) 编辑