摘要: What is the sum of the digits of the number 21000 public static int sumDigits(int n) { int int_retVal = 0; int int_pow = (int) Math.pow(2, n); String 阅读全文
posted @ 2020-06-24 17:23 BORS 阅读(317) 评论(0) 推荐(0)
摘要: LocalDateTime <=> String //时间转字符串格式化 DateTimeFormatter df1 = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss.SSS"); String dateTime = LocalDateTime.n 阅读全文
posted @ 2020-06-24 17:20 BORS 阅读(289) 评论(0) 推荐(0)
摘要: 已知 a^2+b^2=c^2(a,b,c 为自然数,a<b<c),且a+b+c=1000,求abc的值? public static int getABC() { int resVal = 1; for (int a = 0; a <= 1000; a++) { for (int b = 1; b 阅读全文
posted @ 2020-06-24 14:47 BORS 阅读(653) 评论(0) 推荐(0)
bors