Notes
This function is in beta test. Please help improve it in the issues
here.
java.lang.IndexOutOfBoundsException: Index -1 out of bounds for length 10 at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248) at java.base/java.util.Objects.checkIndex(Objects.java:372) at java.base/java.util.ArrayList.get(ArrayList.java:459) at com.ve472.l1.Hall.search(Hall.java:90) at com.ve472.l1.Cinema.search(Cinema.java:69) at com.ve472.l1.Main$1Query.run(Main.java:45) at com.ve472.l1.Main.main(Main.java:72)
Hints
Your answer may be identical to the JOJ answer in the first several lines.
However, you will still get Wrong Answer because the complete output may be longer and there might be errors in the future lines.
Please double check your code to solve this problem and try again.
Your Answer
ok ? ! Emmanuel Herwig,Avengers: Endgame,orange,8,2,3,4,5 ok ? ! Rhea Imada,Avengers: Endgame,strawberry,7,1,2,3,4,5,6,7,8,9,10 Dillon Tumolillo,Avengers: Endgame ok ? usage: cinema -h,--help print this message --hall <arg> path of the hall config directory --query <arg> query of customer orders
JOJ Answer
Emmanuel Herwig,Avengers: Endgame,orange,9,6,7,8,9 Rhea Imada,Avengers: Endgame,orange,5,3,4,5,6,7,8,9,10,11,12 Dillon Tumolillo,Avengers: Endgame,strawberry,7,3,4,5,6,7,8,9 Blair Balo,Avengers: Endgame,orange,8,5,6,7,8,9 Garry Banegas,Avengers: Endgame,orange,1,5,6,7,8,9,10 Gabriel Kebert,Avengers: Endgame,orange,10,1,2,3,4,5 Rosalind Zazueta,Avengers: Endgame,orange,7,6,7,8 Tammy Barthe,Avengers: Endgame,orange,10,10,11,12,13 Ali Trodden,Avengers: Endgame,orange,2,6,7,8 Phebe Vantol,Avengers: Endgame,strawberry,6,4,5,6,7 Yuri Servey,Avengers: Endgame,strawberry,5,4,5,6,7 Len Kowitz,Avengers: Endgame,strawberry,4,4,5,6,7,8 Ronna Sarvas,Avengers: Endgame,orange,8,10 Michel Attilio,Avengers: Endgame,orange,7,9 Toby Hatchel,Avengers: Endgame,orange,6,7,8 Geralyn Groff,Avengers: Endgame,strawberry,6,8,9,10,11 Billy Bacolor,Avengers: Endgame,strawberry,3,4,5,6,7,8 Maryln Blomme,Avengers: Endgame,orange,10,14 Sachiko Lee,Avengers: Endgame,orange,9,1 So Lawrentz,Avengers: Endgame,orange,9,14 Clara Allerman,Avengers