How to find the 24 point algorithm with VB? Which computer whiz is doing me a favor!

Updated on technology 2024-03-09
21 answers
  1. Anonymous users2024-02-06

    There are a lot of ** on the Internet, search for it yourself.

  2. Anonymous users2024-02-05

    b error, which only places the frame layer on top of the radio button.

    d error, again, will only let the radio button be placed on the frame layer.

    Neither of the above practices makes the frame a container for radio buttons.

  3. Anonymous users2024-02-04

    VB really hasn't played it!

    But it's actually an exhaustive method, let 4 numbers iterate through all the operations, and then judge the result, and output it if you meet 24!

  4. Anonymous users2024-02-03

    If you look for a book on data structures, or look up the Internet for knowledge, you'll understand.

  5. Anonymous users2024-02-02

    Let me give you an idea for your reference: suppose there are four numbers: a, b, c, d, and calculate first so that a b c d=24 (where represents addition, subtraction, multiplication, division), and if true, the output.

    Then continue to count (a b) c d=24 a (b c) d=24, (a b) (c d)=24, (a b c) d=24, just follow this line of thought and write it out.

  6. Anonymous users2024-02-01

    dim s as long, i%, j%, n%, fh%, str1 as string

    n = val(text1)

    for i = 1 to n

    s = 0fh = iif(i mod 2 = 0, 1, -1) 'Controls the positive and negative signs of the first item of the data in row i.

    for j = 1 to i

    fh = fh * 1 'Controls the positive and negative signs of the data on column j.

    s = s * 10 + j 'Generate data on column J.

    str1 = trim(str(s))

    if fh = 1 then 'Output the data on column J.

    str1;str1;

    end if

    next j

    next i

  7. Anonymous users2024-01-31

    "Simple level net adjustment"

    I've given a sample, but I don't know what your function is?

  8. Anonymous users2024-01-30

    What is the level net adjustment procedure? This is to RMB, the single-level route adjustment procedure is about the same!

  9. Anonymous users2024-01-29

    Why are there so many masters? Please, don't talk nonsense!

    This fault is caused by the CMOS not being able to save the content of the BIOS settings, and there are generally two reasons: one is because the CMOS battery has no power or poor contact; The second is because the CMOS control manifold is damaged. Please rule out the problem according to the elimination method.

    It's not a virus at all, it's just a fixed production time inside the BIOS.

  10. Anonymous users2024-01-28

    Carrot show. That's right, it's most likely that the CMOS battery is dead, and the CMOS control manifold is damaged, and generally you don't have such good luck!

    What virus,This is obviously not able to save the personal configuration of coms,And the error report as for the virus to change the time, it will no longer affect what can not be applied to the personal configuration of the coms to save the problem, if the time is just changed,,It will only affect your Kaba and will not affect the situation of the boot error,To report the error, it is also Kaba after booting and entering, it can not be protected in real time。

  11. Anonymous users2024-01-27

    From the landlord's speech, it can be seen that your computer is not just a simple CMOS battery that is dead.

    Instead, it was hit by a virus that specifically dealt with Kaspersky.

    It is characterized by restoring time to a date when Kaspersky failed before starting the computer.

    I remember seeing similar issues before.

    You can be in:"Know", search"Kaspersky fails"problems. Find that post. The solution seems to be quite simple. It's about writing a reg file. Import the registry and it's OK

  12. Anonymous users2024-01-26

    CMOS setting problems, usually the motherboard has no battery.

  13. Anonymous users2024-01-25

    It shouldn't be a virus problem, it may be that the motherboard battery is running out of power

  14. Anonymous users2024-01-24

    It is estimated that the motherboard battery is dead, so replace it with a new one.

  15. Anonymous users2024-01-23

    The battery is dead, and the system time cannot be saved! Spend 5 yuan to buy a battery and replace it!

  16. Anonymous users2024-01-22

    Your motherboard battery is dead...

    Go to the computer market and buy one.

  17. Anonymous users2024-01-21

    Get a new motherboard battery, OK

  18. Anonymous users2024-01-20

    52 51 50 49 (4 3 2 1) cases, but also consider addition, subtraction, multiplication and division, the different positions of the parentheses, and use eval to calculate. With just one algorithm, it takes about half an hour to enumerate them all. In the future, the question can be randomly selected according to the enumeration results, and it will be fast.

    Also consider the divisor of zero for fault tolerance. Parentheses are more troublesome, and only one layer of parentheses is considered at present, but two sets of parentheses must be considered, otherwise they will be missed. There is only one possibility for two sets of parentheses, so it is relatively simple.

    Things like 3 3 8 8, 1 3 5 7, and so on are all fast.

  19. Anonymous users2024-01-19

    I've done this topic before, but at that time my thoughts seemed to be too complicated, so I'll tell you a rough idea now, and you should just use it as a reference.

    24 is 4 cards at a time, and then the final result is calculated according to addition, subtraction, multiplication and division.

    Then you can imagine that there are 7 spaces in front of you (follow-up.

  20. Anonymous users2024-01-18

    1.4 numbers are drawn at random, with each number representing a card.

    2.Adding and subtracting, multiplying and dividing the four cards knows that the answer is 24

  21. Anonymous users2024-01-17

    The space of the section is for cards (one card per empty), while the space of section is for the addition, subtraction, multiplication and division symbols (one symbol for each empty).

    Okay, then according to the permutations and combinations in mathematics, there are 24 different permutations of 4 cards in 4 spaces, and there are 24 different permutations of 4 symbols in 3 spaces, so if you arrange these two permutations again, there are 24 * 24 = 576 permutations, then what your program has to do is to calculate all the 576 permutations, and the result is not equal to 24 OK, I think it should take less than 1 second for the program loop 576.

Related questions
2 answers2024-03-09

The data source addnew itself is to add a line.,Of course, two lines appear when the landlord executes twice.,It should be placed on a line.,And then addnew's two parameters to two arrays on the line.,The usage is still used like this (field name,Content),It's just that the number of members of these two arrays is the same.,You can meet your requirements.,Try it.。

6 answers2024-03-09

Good question, write with a for loop and judgment statement. >>>More

11 answers2024-03-09

Insert 3 texts, 1 command

private sub form_load()= "1000" 'Blood volume. >>>More

6 answers2024-03-09

2, Then, save the file to your computer.

3. Select the notepad file, click "Rename" in the right-click menu, and click to open. >>>More

14 answers2024-03-09

private sub command1_click()dim i as integer

dim sum as long >>>More