2019 December

    HDU-1005 Number Sequence

    This problem seems like a very huge problem, however, the answers have some certain regular pattern.

    HDU-1466 Number of intersections of lines

    The following analysis is from boss Tan when he taught me how to solve this problem. After passing the problem, I sum up his ideas and turned it into words.

    HDU-1562 Guess the number

    Just loop and calculate violently.

    HDU-1555 How many days?

    This is just stimulation. At first I think the answer was m + m / k . However, I didn't think of that there may be given more than k days more.

    HDU-1465 Not Easy Series One

    Note that the answer can be very huge, so you need to use long long.

    HDU-1412 {A}+{B}

    C++ has a set of very handy function for set. Here we just use UNION

    HDU-1395 2^x mod n=1

    This is a loop problem, you need to loop x from 1 to MAX to find if there is an x that fits it.

    HDU-1280 Front m biggest Numbers

    First sort all the original numbers. And then, add the first m biggest numbers one by one, we get biggest sums of first m * m numbers.

    HDU-1222 Wolf and Rabbit

    This problem is to judge whether the two numbers are relatively prime.

    HDU-1157 Who's in the Middle

    Just sort all the numbers, since the input numbers are odds, so the middle number is n / 2 + 1


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

|