随笔分类 -  JAVA

摘要:Problems involving the computation of exact values of very large magnitude and precision are common. For example, the computation of the national debt 阅读全文
posted @ 2019-08-09 11:42 black_hole6 阅读(367) 评论(0) 推荐(0)
摘要:五一到了,PKU-ACM队组织大家去登山观光,队员们发现山上一个有N个景点,并且决定按照顺序来浏览这些景点,即每次所浏览景点的编号都要大于前一个浏览景点的编号。同时队员们还有另一个登山习惯,就是不连续浏览海拔相同的两个景点,并且一旦开始下山,就不再向上走了。队员们希望在满足上面条件的同时,尽可能多的 阅读全文
posted @ 2019-07-27 09:29 black_hole6 阅读(244) 评论(0) 推荐(0)
摘要:Given two integers, a and b, you should check whether a is divisible by b or not. We know that an integer a is divisible by an integer b if and only i 阅读全文
posted @ 2019-07-26 20:01 black_hole6 阅读(260) 评论(0) 推荐(0)
摘要:关于计算基础问题华氏度与摄氏度互相转化问题 题目内容: 写一个将华氏温度转换成摄氏温度的程序,转换的公式是: °F = (9/5)*°C + 32 其中C表示摄氏温度,F表示华氏温度。 程序的输入是一个整数,表示华氏温度。输出对应的摄氏温度,也是一个整数。 输入格式: 一个整数。 输出格式: 一个整 阅读全文
posted @ 2018-11-11 18:36 black_hole6 阅读(285) 评论(0) 推荐(0)
摘要:import java.util.Scanner; public class hello { public static void main(String[] args) { System.out.println("hello world"); Scanner in = new Scanner(System.in); System.ou... 阅读全文
posted @ 2018-11-08 22:48 black_hole6 阅读(255) 评论(0) 推荐(0)