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 9 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:87) 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 ? ! Lorrine Moccia,Andhadhun,cherry,9,6,7,8 Theodore Schuman,Andhadhun Vito Dinkins,Andhadhun Carmel Byran,Andhadhun ok ? ! Amado Sweeting,Andhadhun,cherry,8,4,5 Xavier Liptrap,Andhadhun Aiko Jorde,Andhadhun Yu Divito,Andhadhun Christy Harpel,Andhadhun ok usage: cinema -h,--help print this message --hall <arg> path of the hall config directory --query <arg> query of customer orders
JOJ Answer
Lorrine Moccia,Andhadhun,cherry,9,6,7,8 Theodore Schuman,Andhadhun,cherry,8,4,5,6,7,8,9,10 Vito Dinkins,Andhadhun,cherry,7,5,6,7,8,9 Carmel Byran,Andhadhun,cherry,3,4,5,6,7,8,9 Amado Sweeting,Andhadhun,cherry,9,4,5 Xavier Liptrap,Andhadhun,cherry,2,5,6,7,8,9 Aiko Jorde,Andhadhun,cherry,1,5,6,7,8 Yu Divito,Andhadhun Christy Harpel,Andhadhun Tam Palomba,Andhadhun,cherry,9,9,10,11 Simona Origer,Andhadhun Ada Cumba,Andhadhun Jaime Sharper,Andhadhun Reginald Portell,Andhadhun Tabatha Maclaughlin,Andhadhun,cherry,6,4,5 Migdalia Groomes,Andhadhun Katerine Bienfang,Andhadhun Addie Chesley,Andhadhun,cherry,6,9,10 Hillary Carza,Andhadhun Kristyn Wolfenden,Andhadhun,cherry,7,4