fork download
  1. input
  2. 7 5
  3. 7 5 3 1 4 2 6
  4. L 1 3 2
  5. R 2 4 1
  6. P 1
  7. P 4
  8. P 7
  9. output
  10. 3
  11. 5
  12. 6
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty