You and 8 other students are trapped inside a temple and the temple will collapse in an hour.There are four ways, out of which only way one leads out and the other three have dead ends. Also one of the ways is cursed and it curses any two people on that path. Cursed students will lie occasionally(i.e. lie randomly). Assuming that all paths are equally long and you reach the dead end in 20 minutes. Devise a strategy to safely get out of the temple.
Edit:
You are cursed at the end of path. Nobody can tell if they(or someone else) are cursed or not. Also you cannot be cursed.