2019

    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

    HDU-1056 HangOver

    Since the data is every small, you just need to loop and calculate until you find a answer that is bigger than the given number.

    HDU-1048 The Hardest Problem Ever

    You can easily see that the law of ciphers is that each letter moves 21 bits backward. The 26 letters form a circle to support the law. However, in the ascii code, the letters are not a circle so you need to judge separately.

    HDU-1040 As Easy As A+B

    This is a sorting problem, you can either use quick sort or bubble sort or other sorts.

    HDU-1037 Keep on Truckin'

    Just estimate each number, if it is lower than 168, then this underpass is unable to be passed. If no number is less than 168 ,then there is no crash.


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

|