Home > Back-end >  Points coconut
Points coconut

Time:10-18

The sailor points coconut
Five sailors on the island found a pile of coconut, first by the first sailors stacked coconut is divided into the same amount of 5, the left one to the monkey, his hide 1 heap, and then, the second sailor stacked the remaining 4 mixed back into the same amount of 5, 1 is left to the monkey, his hide 1 heap, after 3 or 4 sailor in processing by this method, finally, the fifth sailor stacked up the rest of the coconut is divided into the same amount of 5, the same one to the monkey,
# include
Int main ()
{

Int a, b, c, d, e, f=0, g;
For (a=0; A % 5==1; +)
{
B=(a - 1)/5 * 4;
For (; B % 5==1; B++)
{
C=(1 b)/5 * 4;
For (; C % 5==1; C + +)
{
D=(c - 1)/5 * 4;
For (; D % 5==1; D++)
{
E=(d - 1)/5 * 4;
For (; E % 5==1; E++)
{
F++;
}
}
}
}
}
Printf (" % d ", a);
return 0;
}

CodePudding user response:

Not a monkey peach points ~ ~ ~

CodePudding user response:

?????///?//

CodePudding user response:

reference 1/f, play big shoot early nuclear response:
monkey points peach, isn't it ~ ~ ~
??
  • Related