上一页 1 ··· 8 9 10 11 12
  2015年4月7日
摘要: 1 #include 2 int dcsl(int n) 3 { 4 return n*(1+n)/2; 5 } 6 int main() 7 { 8 int k,i,j,a; 9 int s;10 scanf("%d%d",&i,&j);11 s=dcs... 阅读全文
posted @ 2015-04-07 18:08 Ricochet! 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 就是这样一个数塔输入n,数塔有n行,第i行有i个数字,如73 78 1 02 7 4 44 5 2 6 5找出一条经过的数字和最长的路径的数字和。。。比如吧,12 3可以走1-2 可以走1-3走1-2得3 走1-3得4所以最终输出为4以下为代码 1 #include 2 int main() 3 {... 阅读全文
posted @ 2015-04-07 17:26 Ricochet! 阅读(203) 评论(0) 推荐(0) 编辑
  2015年3月24日
摘要: 1 /* 2 =============================== 3 Code instruction 4 5 Coding by Kaka·"Ricochet"·Simpson 6 7 GreatIntCal. 8 ========================... 阅读全文
posted @ 2015-03-24 18:15 Ricochet! 阅读(654) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12