且未

博客园 首页 新随笔 联系 订阅 管理

2018年3月23日 #

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1164题意很简单,只是写代码的时候需要注意几个问题一、筛选素数的时候记得用埃式筛选法,要是直接找可能会WA。int prime(int n){ int flag = 0; for(... 阅读全文
posted @ 2018-03-23 17:03 阿聊 阅读(78) 评论(0) 推荐(0)

摘要: double d = 345.678; String s = "hello!"; int i = 1234; //"%"表示进行格式化输出,"%"之后的内容为格式的定义。 System.out.printf("%f",d);//"f"表示格式化输出浮... 阅读全文
posted @ 2018-03-23 14:15 阿聊 阅读(1020) 评论(0) 推荐(0)