Programming masters, please enter 50, ask for programming gods

Updated on technology 2024-05-22
8 answers
  1. Anonymous users2024-02-11

    The first question: there are 9x8x7x6x5x4x3x2x1 cases, just write in a loop, and recursively can also be.

    Second question:

    Some people may think that this is actually quite simple, 55x54 directly....x1 will do the trick. In fact, people who think so don't see the real point of this question, that is, the representation of large numbers in the computer.

    There is no common data type in a computer that can represent "55! "That's a lot.

    Therefore, you need to construct a new data structure by yourself, and then write a matching algorithm to solve the problem!

    How to write? I'm lazy. And this thing is really complicated to write, so I found you a material "Big Numbers".

    This article is quite well written, it is specially trained by ACM, and it is enough for you

  2. Anonymous users2024-02-10

    The first question is 9x8x7x6x5x4x3x2x1

    The second 55x54....x1

    The first problem and the second problem are really an algorithm.

  3. Anonymous users2024-02-09

    Let x, y, and z be the number of roosters, hens, and chicks to buy, respectively.

  4. Anonymous users2024-02-08

    Do it with MATLAB:

    x y]=meshgrid(0:20,0:33);

    z=100-5*x-3*y;

    The three two-dimensional arrays of x, y, and z are obtained, and the elements with the same subscript are all solutions of the equation;

    At the same time, x, y, and z should all be greater than 0.

  5. Anonymous users2024-02-07

    n%10 represents the remainder of n divided by 10, which is the single digit of n.

    n 10)%10 is the number of tens of digits.

  6. Anonymous users2024-02-06

    This person who has studied C will, it's easy.

  7. Anonymous users2024-02-05

    Go to the NetEase open class to find information and study.

  8. Anonymous users2024-02-04

    /2.Minute conversion.

    int h = 560/60;

    int m = 560-60*h;

    hours"+m+"minutes");

    3.Single, ten, and hundred-digit sums.

    Please enter a three-digit number:");

    scanner sc = new scanner(;

    int num = ;

    int sum = num%10+num%100/10+num/100;

    And yes:"+sum);

    4.Swap variables.

    Please enter two variables:");

    scanner scanner = new scanner(;

    int num1 = ;

    int num2 = ;

    The order before the exchange is:"+num1+" "+num2);

    int num3 = num1;

    num1 = num2;

    num2 = num3;

    The order after the exchange is:"+num1+" "+num2);

Related questions
9 answers2024-05-22

It's best to have some basic knowledge, such as computer basics, basic web basics, data structure basics, HTML basics (js, css, div and tools), a little bit of it. >>>More

7 answers2024-05-22

First understand the most basic elements --- the label of **, and then you will basically know everything.

10 answers2024-05-22

Learning to code well requires a long-term learning plan that includes multiple aspects such as front-end, back-end, databases, programming tools, and programming languages. Learning programming should be based on hands-on exercises, supplemented by reading books and studying. If you want to learn programming well, it is best to find a senior programming teacher and learn with an open mind. >>>More

14 answers2024-05-22

Programming requires a foundation in mathematics and the ability to translate all real-world problems into equations (or laws) like mathematics. If you can't do that, continue to tutor in math. >>>More

28 answers2024-05-22

Watch more** to accumulate experience and play a few more games is also to accumulate experience, this really can't be taught! When I started playing, I kept watching the commentary**, and I watched the hero I wanted to play when I played a game**Watch about 3, find my own shortcomings and accumulate experience, and now I have 500 games to play matching, and the ranking is almost more than 300 games to Platinum 2, and when I don't have the heart to play for a long time, I will watch more of the master's commentary**! This kind of growth is much better than those who can't find room for improvement in the game every day. >>>More