Skip to content

Kniffelige Belegungsregel

In einem Zimmer gelten folgende Belegungsregeln:



  • Das Zimmer darf maximal mit 4 Personen belegt werden

  • Alle Personen müssen älter als 2 Jahre sein

  • Mindestens eine Person muss 10 Jahre alt sein

  • Es dürfen höchstens 2 Personen im Alter von bis zu 12 Jahren in ein
    Zimmer


Welche Occupancy-Regel deckt diese Bedingungen ab?


A:


<Occupancy Key="A">
<Person>
<MinAge>10</MinAge>
<MinCount>1</MinCount>
<MaxCount>2</MaxCount>
</Person>
<Person>
<MinAge>2</MinAge>
<MaxAge>12</MaxAge>
<MaxCount>2</MaxCount>
</Person>
</Occupancy>

B:


<Occupancy Key="B">
<Person>
<MinAge>10</MinAge>
<Count>1</Count>
</Person>
<Person>
<MinAge>2</MinAge>
<MaxCount>3</MaxCount>
</Person>
<Exclude>
<Person>
<MinAge>10</MinAge>
<Count>1</Count>
</Person>
<Person>
<MaxAge>12</MaxAge>
<Count>3</Count>
</Person>
</Exclude>
</Occupancy>

Hinweis


Testen Sie Ihre Lösung mit folgender Personenliste (Alter)


(12,12,12,10) -> Falsch, da 3 Personen im Alter von bis zu 12
Jahren enthalten.


Trackbacks

No Trackbacks

Comments

Display comments as Linear | Threaded

No comments

Add Comment

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.
To leave a comment you must approve it via e-mail, which will be sent to your address after submission.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

Form options