2017年12月18日

摘要: public static int num(int a,int b) { int result = 0; for(int i = a;i<b;i++){ result = result+i; } return result; } 阅读全文
posted @ 2017-12-18 21:45 杨寒 阅读(389) 评论(0) 推荐(0) 编辑
 
摘要: 小明最近喜欢搭数字积木,一共有10块积木,每个积木上有一个数字,0~9。 搭积木规则:每个积木放到其它两个积木的上面,并且一定比下面的两个积木数字小。最后搭成4层的金字塔形,必须用完所有的积木。 下面是两种合格的搭法: 0 1 2 3 4 56 7 8 9 0 3 1 7 5 29 8 6 4 请你 阅读全文
posted @ 2017-12-18 21:44 杨寒 阅读(258) 评论(0) 推荐(0) 编辑