20171110
来源:互联网 发布:php memcache set参数 编辑:程序博客网 时间:2024/06/05 00:55
JavaScript 编程题
- null 和 undefined 的区别?
答:undefined:声明了变量,但是没有给这个变量赋值。
null:表示一个为空的值。
MySQL 编程题
SELECT username,sno FROM students GROUP BY username,sno HAVING
COUNT(course) = 1;
Java 编程题
- 打印出所有的「水仙花数」,所谓「水仙花数」是指一个三位数,其各位数字立方和等于该数本身。例如:153 是一个「水仙花数」,因为 153=1的三次方+5 的三次方+3 的三次方。
public class Work20171110 { public static void main(String[] args) {
for(int i = 100; i < 1000; i++) { int x = i / 100; int y = i /
10 % 10; int z = i % 10; if(x*x*x+y*y*y*y+z*z*z == i) {
System.out.println(“水仙花数:”+ i); } } }
}
阅读全文
0 0
- 20171110
- 20171110
- 20171110
- 20171110 自省
- 每日一练(20171110)
- 20171110每日一练
- 每日一练20171110
- 每日一练 20171110
- 每日一练-20171110
- C++20171110日志 Static类型的声明
- 推荐系统---基于概率的矩阵分解(PMF)
- 对比Ubuntu与Win10的资源占用
- java.lang.StackOverflowError错误
- Spring之BeanFactory 与 FactoryBean
- Caused by: org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be
- 20171110
- hdu 1213
- 找最高分
- 【编译原理练习题】由字母表求字符串个数
- 调研NFV编排工具(by quqi99)
- Maven中pom.xml详解
- application.properties与application.yml之间的区别
- 硬盘的那些事(主分区、扩展分区、逻辑分区、活动分区、系统分区、启动分区、引导扇区、MBR等
- 浅谈 Mybatis 中的 ${ } 和 #{ }的区别