Blog | 博客

BZOJ #3681. Arietta

Original link: https://www.shuizilong.com/house/archives/bzoj-3681-arietta/ https://darkbzoj.cc/problem/3681 Network flow modeling is simpler than the above problem. The functional segment tree aspect requires segment tree merging. Still, it’s simpler than the previous question. const int N = int(1e4) + 9; int T[N], H[N]; VI adj[N]; int n, m; namespace Chairman_Tree { #define lx c[0][x] #define rx c[1][x] #define ly […]

BZOJ #3681. Arietta Read More »

This week’s “Focusist” is here! Borderlands is all-time low, and several iOS apps and games are free to download

Original link: https://www.ifanr.com/app/1500730 The ecologist meets you again. In this issue, we have selected the following 3 iOS applications and 1 iOS game, which can be downloaded directly from the client-side free zone. A special reminder that Alipay has a “Fruit Fan Day” event every Friday, open Alipay and search for “Apple Zone”, you can

This week’s “Focusist” is here! Borderlands is all-time low, and several iOS apps and games are free to download Read More »

Are supermoons really aligned with Earth’s sun?

Original link: https://hfdavidyu.com/2022/07/14/super-moon-align/ A friend asked me why NASA’s website says “Earth, Moon and sun are all in a line”? In fact, I wrote an article seven years ago, “Little Knowledge of the Moon: The Moon Is Overcast and Clear”, and I will explain it again now. This article is reprinted from: https://hfdavidyu.com/2022/07/14/super-moon-align/ This site

Are supermoons really aligned with Earth’s sun? Read More »

Time to say goodbye to NullPointException gracefully

Original link: https://www.lifengdi.com/archives/transport/technology/3910 NullPointException should be a guy familiar to every coder, right? Whose code didn’t throw a few null pointer exceptions… For example: you wrote the following code: public void getCompanyFromEmployee() { Employee employee = getEmployee(); Company company = employee.getTeam().getDepartment().getCompany (); System.out.println(company); } private Employee […] This article is reproduced from: https://www.lifengdi.com/archives/transport/technology/3910 This site

Time to say goodbye to NullPointException gracefully Read More »

Java floating point arithmetic

Original link: https://www.lifengdi.com/archives/course/java/3909 Compared with integer operations, floating-point number operations can only perform numerical calculations such as addition, subtraction, multiplication and division, and cannot perform bit operations and shift operations. In computers, although floating-point numbers have a large range of representation, floating-point numbers have a very important feature, that is, floating-point numbers often cannot be

Java floating point arithmetic Read More »

Java Integer Operations

Original link: https://www.lifengdi.com/archives/course/java/3908 Java’s integer operations follow four arithmetic rules and can use any nested parentheses. The four arithmetic rules are the same as those of elementary mathematics. For example: // Four arithmetic public class Main { public static void main(String[] args) { int i = (100 + 200) * (99 – 88); // 3300

Java Integer Operations Read More »

Keep track of the latest internet quirks

Original link: https://www.bboy.app/2022/07/15/%E8%AE%B0%E5%BD%95%E6%9C%80%E8%BF%91%E5%8F%91% E7%94%9F%E7%9A%84%E7%BD%91%E7%BB%9C%E6%80%AA%E4%BA%8B/ Introduction The thing is like this, last week, during the house cleaning, I cleaned the cabinet by the way, and after restarting all the services, I found that the NAS could not back up my application virtual machine. Other virtual machines under the same physical machine can connect to this application

Keep track of the latest internet quirks Read More »

Abundant life

Original link: https://blog.shuiba.co/rich-life 2017, looking back now, was a year of great significance. In 2017, I am 29 years old, I have worked for three years, and my life is very stable. As I approached my thirties, I became more and more eager to understand the meaning of my existence and life. In 2017, Brother

Abundant life Read More »

Variables and data types

Original link: https://www.lifengdi.com/archives/course/java/3907 Variables What are variables? Variables are the algebraic concept of junior high school mathematics, such as a simple equation, x and y are variables: y=x^2+1 In Java, variables are divided into two types: basic type variables and reference type variables. Let’s start by discussing basic types of variables. In Java, variables must

Variables and data types Read More »

Java program basic structure

Original link: https://www.lifengdi.com/archives/course/java/3906 Let’s first analyze a complete Java program, what is its basic structure: /** * Comments that can be used to automatically create documents */ public class Hello { public static void main(String[] args) { // Output to the screen Text: System.out.println(“Hello, world!”); /* Multi-line comments start comment content Comment end */ }

Java program basic structure Read More »

Introduction to Java

Original link: https://www.lifengdi.com/archives/course/3905 Java was originally a programming language developed by James Gosling (Gao Commander, known as the father of Java) of SUN (which has been acquired by Oracle) in the early 1990s. It was originally named Oak and aimed at small The embedded application of home appliances, the result is that the market has

Introduction to Java Read More »

Earth FM Around nature with ears

Original link: https://conge.github.io/2022/07/14/earth-fm/ Today I would like to introduce a sound website called Earth FM, Earth FM. Earth FM is a pure sound website that includes natural sounds from all over the world, allowing people to travel by ear without leaving home. Go try it, maybe you will like it too. This article is reprinted

Earth FM Around nature with ears Read More »

Toots 2022 Jul.3 – Jul.9

Original link: http://z.arlmy.me/posts/MastodonArchives/2022/MastodonTootsArchives_20220709/ Jul.3 All paths, there is always a certain way Business is developed, and there is the illusion that replicas are more likely to become a source of wealth, “Indecision itself is the equivalent of making a decision” “With the widespread use of ES, its security issues have also attracted attention. Although ES

Toots 2022 Jul.3 – Jul.9 Read More »