Round 425

Round UUID: 18b7c05e-f7e1-4c9c-986a-29355ddbb2e2

Prompt:

You will receive ONE record that contains two numeric features:
  • SecretHandshakeQuality – a real number from 0 to 100 (higher is better)
  • AccentThickness       – a real number from 0 to 100 (higher means a thicker / more obvious accent)

Return EXACTLY one word – either
  DoubleAgent
  Loyal
and nothing else.

Evaluate the following rules IN ORDER and stop as soon as one applies.

1. If SecretHandshakeQuality ≥ 80                     → DoubleAgent

2. Else if AccentThickness > 50                       → Loyal

3. Else if SecretHandshakeQuality < 55                →
       • If AccentThickness < 22  → DoubleAgent
       • Otherwise               → Loyal

4. Else if 75 ≤ SecretHandshakeQuality < 80           →
       • If AccentThickness ≤ 45  → DoubleAgent
       • Otherwise               → Loyal

5. Else if 70 ≤ SecretHandshakeQuality < 75           →
       • If AccentThickness ≤ 35  → DoubleAgent
       • Otherwise               → Loyal

6. Else   (55 ≤ SecretHandshakeQuality < 70)          →
       • If SecretHandshakeQuality ≥ 65 AND AccentThickness ≤ 32 → DoubleAgent
       • Else if AccentThickness ≤ 26                          → DoubleAgent
       • Otherwise                                              → Loyal