2019

    AtCoder-5165 Kleene Inversion

    The answer of the problem has a regular pattern. For example, there is a sequence A and for number An in A, the number that is bigger than An has two parts

    Random events and their probabilities

    This is an overview of the knowledges in chapter 1.

    AtCoder-5633 Counting of Trees

    At first I didn't understand the meaning of the problem. It means 1 is the root and the distance between the points on the first layer with the root is 1.

    AtCoder-5039 AB Substrings

    This is to find how many strings that starts with A and ends with B and the number of AB inside the string.

    AtCoder-4871 Lower

    The max number = max(max number, answer).

    AtCoder-4870 Attack Survival

    The main mission of this problem is to count each players number of right questions.

    AtCoder-4297 Monsters Battle Royale

    Seeing the operation, we can easily think of Euclidean algorithm which is the way to calculate GCD.

    AtCoder-4873 ModSum

    The biggest answer is that after the operation the number can remain it self.

    AtCoder-5037 Consecutive Integers

    If you have three numbers 1, 2, 3 and want the length of the consecutive subsequence be two, the answer is 3-2+1, because you can choose 1, 2 or 1, 3.

    Calculator (double stack)

    The pre-knowledges you should know is priority of operator. Priority is the rule that determines when we meet two operators, which to calculate first. Like 3+2*5, we calculate 2 * 5 first.

    The priority of operators are:


TOP
COMMENT
made with ❤️ by o_oyao
©o_oyao 2019-2025

|