Time limit: 1 second Memory limit: 256 MB There are a number of taxis at a taxi stand.…
Jump to turn (8)
- 1Time limit: 1 second Memory limit: 256 MB There are a number of taxis at a taxi
- 2Time limit: 1 second Memory limit: 256 MB Description of the image Shamir's birt
- 3Time limit: 2 seconds Memory limit: 256 MB under negotiation Auxiliary character
- 4Time limit: 2 seconds Memory limit: 256 MB on a table n n milk containers are pl
- 5Time limit: 1 second Memory limit: 256 MB Rodzyanko Dobromil Vyacheslavovich, wh
- 6Time limit: 2 seconds Memory limit: 256 MB Recently, the period of 1028 AE has r
- 7Time limit: 1 second Memory limit: 256 MB As you know, Henna has a special inter
- 8java
- User
Time limit: 1 second Memory limit: 256 MB There are a number of taxis at a taxi stand. Each taxi has the capacity of four passengers. A number of passengers come to this taxi station and we want to seat all these passengers in taxis. Each of these passengers has three states: female, male and drug addict. Note that it does not matter if the addicts are male or female.
Every woman is disturbed by the number of male passengers or drug addicts who are near her. Every man gets upset with the number of addicts around him. Every addict is upset by the number of addicts who are close to him. We know that in a taxi, there is one seat next to the driver and three seats in the back, and two people whose seats are next to each other are adjacent to each other (the passenger who sits on the seat next to the driver is not adjacent to anyone, and the passenger who sits on the middle seat in the back row is with two The person next to him is adjacent and the two people who sit next to the rear doors are only adjacent to the middle person).