Assuming that there is now a ticket hall, assuming that can accommodate a maximum of 100 individuals, if there is a surplus of less than 100 people and votes, you can allow users to buy a ticket,
If more than 10 individuals or tickets sold out, the more wait for 10 seconds,
If after 10 s hall is less than 100 people and have a rest, is allowed to enter the ticket, otherwise will end the program directly,
Assuming that a total of only 30 tickets, and every one can buy at most five tickets,
CodePudding user response:
Help me help me to hurry to help wCodePudding user response:
This is the category of applications