每日一练1
来源:互联网 发布:java基础数据类型长度 编辑:程序博客网 时间:2024/04/30 11:11
1、2、3、4个数字,能组成多少个互不相同且无重复数字的三位数?都是多少?
public class Test1 {
public static int test(){
int d = 0 ;
for(int a = 0;a < 4 ;a++){
for(int b = 0 ; b < 4; b++){
for(int c = 0 ; c < 4; c++){
if( a != b && a != c && b!=c){
d++;
System.out.println(a*100+b*10+c);
}
}
}
}
return d;
}
阅读全文
0 0
- #每日一练-1#
- 每日一练1
- 算法每日一练1
- 前端进阶每日一练(1)
- 2017-11-1每日一练
- 算法每日一练
- 每日一练
- 每日一练
- 每日一练
- 每日一练
- 每日一练
- 每日一练
- 每日一练
- 每日一练
- 每日一练
- 每日一练
- 每日一练
- 每日一练
- 【java虚拟机】栈帧、局部变量表、操作数栈
- 简单测试的makefile编写
- OkHttp简单封装Demo
- org.hibernate.InvalidMappingException: Unable to read XML
- java.lang.IllegalArgumentException: other than LinearLayoutManger is not supported
- 每日一练1
- 这世界为什么还需要一朵“同方安全云”?
- shell中$*与$@的区别
- 封装HttpURLConnection
- 数据结构—栈小结
- [C#]4.0具名参数与选用参数
- angular 回车事件添加数据到li
- Java四类八种数据类型
- 青蛙跳-LintCode