• excral@feddit.org
    link
    fedilink
    arrow-up
    1
    ·
    2 天前

    It’s still trivial, assuming the three guards guard three doors: just ask each guard: “Would the guard that always lies say this door is safe?” The random guard will give a random answer while the other two give the inverted answer. Even better if don’t ask the random guard first, then you can repeat the question about the other doors to the same guard and only need two questions