- 博客(4)
- 资源 (2)
- 收藏
- 关注
原创 求1+2+3+...+n,要求不能使用乘除法、for、while、if、else、switch、case等关键字及条件判断语句(A?B:C)。
题目描述:求1+2+3+...+n,要求不能使用乘除法、for、while、if、else、switch、case等关键字及条件判断语句(A?B:C)。输入:输入可能包含多个测试样例。对于每个测试案例,输入为一个整数n(1输出:对应每个测试案例,输出1+2+3+…+n的值。
2014-08-11 20:14:32 555
原创 全排列算法java实现
public class PermutationTool>{ public boolean next_permutation(T[] array){ int start=findReverseOrderStart(array); if(start == 0){ return false; } int precursor = start
2014-07-07 19:00:57 365
原创 MigLayout布局管理器的使用
public class ConfigPanel extends JPanel{ public ConfigPanel(){ LC lc = new LC(); lc.fill(); AC ac = new AC(); ac.size("pref").fill().grow(); //初始化时需要设定好行列的属性, 否则会造成不准确, 后续单元格的属性设置依赖布局
2014-03-28 15:49:28 2526
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人