A puzzle!

"Because if No.47 is in charge, they won't get a gold coin instead of giving No.50 two gold coins. (^_^) "

According to LZ, 49 can get 100, so he won't agree with 47 even if he gives it to 49, right?

Since the bottom line of No.50 is 0, it doesn't matter if it doesn't improve.

And according to LZ, 1 give everyone 1 gold coins, and 5 1 can pass?

In addition, I revised it and finally found some problems.

"But if the distribution of 2 1 pirates will pass" from here.

People who are patient and considerate can look down upon and understand. Don't scold me.

1, judgment range

In fact, we should think the other way around.

Because they are all smart.

So if the answer is yes,

And then they can all think,

If the answer is that the distribution of the nth pirate is approved,

So the issue of the previous one piece, the nth one piece, was approved.

This means that all pirates will die before,

But since they know that they will die, they must try to keep themselves alive.

But since there is an answer, it can only show that they can't make themselves immortal.

But it's impossible.

Because if n is pirated version 26 or higher,

Then the pirates in front of 1-25 can completely avoid this situation.

Therefore, n must be the piracy number 1-25 in order to have this "positive result".

2. The pirates are happy to see the death of other pirates while winning the same number of gold coins!

First of all, the last two pirates are definitely immortals.

So if they can't get the money, they must want someone else to die.

Then the pirates in front must buy off one of them if they want to live.

Why is it one of them? It's simple.

If there are two pirates, 49 and 50,

Then 49 can get 50 and 0 gold.

So 48 will die if it doesn't give benefits to 50, so 50 1 49 will get 0 48 and 99.

So 47 will die if it doesn't give benefits to 49, so 50 will get 1.48, 0.47, 99.

So, if No.46 doesn't give benefits to No.48 and No.50, No.50, 2, 49, 0, 48, 65, 438+0, 47, 0, 46, 97.

So 46 will die if you don't give it, so 50 will get 0.49, 2.48, 0.47, 65.438+0.46, 0.45, 97.

So 46 will die if you don't give it, so 50 will get 0.48, 2.47, 0.46, 65.438+0.45, 0.44, 94.

Because if you don't give more benefits, you want others to die in the same situation.

Thus, the number is a increasing function, so we can get1+2+3 ...+14 = 91.

Two situations are obtained:

50 49 48 47 46 ....30...24 23 22

1400130012 ... four ... 1 00 9

50 49 48 47 46 45 ....29...23 22 2 1

001400130012 ... iv ... 1 00 9

Because there is only 100 coin, there is no way to buy off the pirates behind before 2 1.

And just like the initial calculation, even if 1-20 agrees with the requirements of pirates 1, it is useless.

But if the distribution of Viking 2 1 is approved,

2122 23 24 25 26 27 28 29 303132 33 34 35 number

09090 1 0102020304050607 gold coins (bribers must add1here, because pirates will kill people because they get the same amount of gold coins standing up).

1-20 pirates also understand this.

So they won't buy off the last pirates, but will buy off some pirates.

Therefore, the number of 2 1-35 needs to be bought out on the 20th (16 votes passed) after calculation.

20 2 1 22 23 24 25 26 27 28 29 30 3 1 32 33 34 35

18 10 10 02 02 03 03 04 04 05 05 06 06 07 07 08

Therefore, the figure of 19 should be calculated from the figure of 20-34 (16 votes passed).

19 20 2 1 22 23 24 25 26 27 28 29 30 3 1 32 33 34

00 19 1 1 1 1 03 03 04 04 05 05 06 06 07 07 08 08 = 107

19 can't afford it, so it will unconditionally help pirates who can afford it before.

Therefore, the figure of 18 should be calculated from the figure of 20-34 (17 votes passed).

18 19 20 2 1 22 23 24 25 26 27 28 29 30 3 1 32 33 34

00 00 19 1 1 1 1 03 03 04 04 05 05 06 06 07 07 08 08 = 107

18 can't afford it, so it will unconditionally help pirates who can afford it before.

Therefore, the number of 17 should be calculated by the number of bribes of 20-33 (the number of 17 is passed).

17 18 19 20 2 1 22 23 24 25 26 27 28 29 30 3 1 32 33

0 1 00 00 19 1 1 1 1 03 03 04 04 05 05 06 06 07 07 08

Therefore, the number 16 should be calculated by the number 17-32 (18 votes passed).

16 17 18 19 20 2 1 22 23 24 25 26 27 28 29 30 3 1 32 33

00 02 0 1 0 1 20 12 12 04 04 05 05 06 06 07 07 08 08 09 = 1 17

16 can't afford it, so it will unconditionally help pirates who can afford it before.

Therefore, the number 15 should be calculated by the number 17-32 (18 votes passed).

15 16 17 18 19 20 2 1 22 23 24 25 26 27 28 29 30 3 1 32

00 00 02 0 1 0 1 20 12 12 04 04 05 05 06 06 07 07 08 08 = 108

15 can't afford it, so it will unconditionally help pirates who can afford it before.

Therefore, the number 14 should be calculated by the number 17-32 (19 votes passed).

14 15 16 17 18 19 20 2 1 22 23 24 25 26 27 28 29 30 3 1 32

00 00 00 02 0 1 0 1 20 12 12 04 04 05 05 06 06 07 07 08 08 = 108

14 can't afford it, so it will unconditionally help pirates who can afford it before.

Therefore, the figure 13 should be bribed by the figure 17-3 1 (19 votes passed).

13 14 15 16 17 18 19 20 2 1 22 23 24 25 26 27 28 29 30 3 1

00 00 00 00 02 0 1 0 1 20 12 12 04 04 05 05 06 06 07 07 08

Therefore, the number 12 should be 13-3 1 this number (after 20 votes) was bribed and calculated.

12 13 14 15 16 17 18 19 20 2 1 22 23 24 25 26 27 28 29 30 3 1

00 0 1 0 1 0 1 0 1 03 02 02 2 1 13 13 05 05 06 06 07 07 08 08 09 = 1 19

12 can't afford it, so it will unconditionally help pirates who can afford it before.

So 1 1 after calculation, it should be 13-30 (20 votes passed) for bribery.

1 1 12 13 14 15 16 17 18 19 20 2 1 22 23 24 25 26 27 28 29 30

00 00 0 1 0 1 0 1 0 1 03 02 02 2 1 13 13 05 05 06 06 07 07 08 08 = 109

1 1 can't afford it, so I will unconditionally help pirates who can afford it before.

Therefore, the number 10 should be calculated by the number 13-30 (2 1 votes passed).

10 1 1 12 13 14 15 16 17 18 19 20 2 1 22 23 24 25 26 27 28 29 30

00 00 00 0 1 0 1 0 1 0 1 03 02 02 2 1 13 13 05 05 06 06 07 07 08 08 = 109

10 can't afford it, so it will unconditionally help pirates who can afford it before.

Therefore, the number 13-29 (2 1 vote passed) needs to be bought out on the 9th.

9 10 1 1 12 13 14 15 16 17 18 19 20 2 1 22 23 24 25 26 27 28 29

0 00 00 00 0 1 0 1 0 1 0 1 03 02 02 2 1 13 13 05 05 06 06 07 07 08 = 10 1

If you can't afford it, help the pirates who can afford it before unconditionally.

So the number 13-29 will be bought out on the 8th (22 votes passed).

8 9 10 1 1 12 13 14 15 16 17 18 19 20 2 1 22 23 24 25 26 27 28 29

0 0 00 00 00 0 1 0 1 0 1 0 1 03 02 02 2 1 13 13 05 05 06 06 07 07 08 = 10 1

If you can't afford it, help the pirates who can afford it before unconditionally.

So the number 13-28 will be bought out on the 7th (22 votes passed).

7 8 9 10 1 1 12 13 14 15 16 17 18 19 20 2 1 22 23 24 25 26 27 28

7 0 0 00 00 00 0 1 0 1 0 1 0 1 03 02 02 2 1 13 13 05 05 06 06 07 07

Therefore, on the 6 th, it is necessary to buy off the 7-28 (23 votes passed) calculation.

6 7 8 9 10 1 1 12 13 14 15 16 17 18 19 20 2 1 22 23 24 25 26 27 28

0 8 1 1 0 1 0 1 0 1 02 02 02 02 04 03 03 22 14 14 06 06 07 07 08 08 = 123

If you can't afford it, help the pirates who can afford it before unconditionally.

So on the 5th, you have to buy off the 7th to 27th (23 votes passed) to calculate.

5 6 7 8 9 10 1 1 12 13 14 15 16 17 18 19 20 2 1 22 23 24 25 26 27

0 0 8 1 1 0 1 0 1 0 1 02 02 02 02 04 03 03 22 14 14 06 06 07 07 08 = 1 15

I can't afford it, so I will unconditionally help pirates who can afford it before.

Therefore, on the 4 th, it is necessary to buy off the 7 th to the 27 th (24 votes passed).

4 5 6 7 8 9 10 1 1 12 13 14 15 16 17 18 19 20 2 1 22 23 24 25 26 27

0 0 0 8 1 1 0 1 0 1 0 1 02 02 02 02 04 03 03 22 14 14 06 06 07 07 08 = 1 15

If you can't afford it, help the pirates who can afford it before unconditionally.

So on the 3 rd, you have to buy off the 7-26 (24 votes passed) to calculate.

3 4 5 6 7 8 9 10 1 1 12 13 14 15 16 17 18 19 20 2 1 22 23 24 25 26

0 0 0 0 8 1 1 0 1 0 1 0 1 02 02 02 02 04 03 03 22 14 14 06 06 07 07 = 107

I can't afford it, so I will unconditionally help pirates who can afford it before.

So on the 2nd, you have to buy out the 7th to 26th (after 25 votes).

2 3 4 5 6 7 8 9 10 1 1 12 13 14 15 16 17 18 19 20 2 1 22 23 24 25 26

0 0 0 0 0 8 1 1 0 1 0 1 0 1 02 02 02 02 04 03 03 22 14 14 06 06 07 07 = 107

I can't afford it, so I will unconditionally help pirates who can afford it.

Therefore, the number 1 will be bribed by the number 7-25 (after 25 votes).

1 2 3 4 5 6 7 8 9 10 1 1 12 13 14 15 16 17 18 19 20 2 1 22 23 24 25

0 0 0 0 0 0 8 1 1 0 1 0 1 0 1 02 02 02 02 04 03 03 22 14 14 06 06 07 = 100

just right

So in the end, the number 1 actually passed.

Distribute as above