(answers are generated with theater_od solution)
all three (theater_od, theater_rs, theater_sp) solutions give different answers.
let's see test 08

burunduk3@burunduk3-laptop tests % cat 08
12 10 1 3 3
9 2
7 8
9 8
5
1 1
2 3 1
1 1
2 2 1
3 1 2 3
burunduk3@burunduk3-laptop tests % cat 08.a
18.666666666666668

burunduk3@burunduk3-laptop tests % ./test.sh "java theater_rs"
...
07 wrong answer answer doesn't match: 926680.5678302 instead of 1058516.7330361
08 wrong answer answer doesn't match: 19.3333333 instead of 18.6666667
09 wrong answer answer doesn't match: 2.6539657 instead of 2.6392599
...

18+2/3 is a correct answer, because:
1) during first pause light master turns on light 3 and goes to right wings --> 10 seconds
2) during second pause dark master turns off light 3 --> 2/3 seconds
3) during third pause light master turns on light 2 --> 6 seconds
4) during last pause light master turns on light 3 --> 2 seconds
Total: 18.(6)
