林永吉的Algorithm库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
324 B

  1. [Test1]
  2. Input=0,1,0,3,12
  3. Output=1,3,12,0,0
  4. [Test2]
  5. Input=0,1,1,3,0,1
  6. Output=1,1,3,1,0,0
  7. [Test3]
  8. Input=0
  9. Output=0
  10. [Test4]
  11. Input=0,1
  12. Output=1,0
  13. [Test5]
  14. Input=0,1,0,2,0,3,0,4,0,5,0,6
  15. Output=1,2,3,4,5,6,0,0,0,0,0,0
  16. [Test6]
  17. Input=1,1,0,1,3,3,1,0
  18. Output=1,1,1,3,3,1,0,0
  19. [Test7]
  20. Input=0,1,1,1,0,0,2,2,0,1
  21. Output=1,1,1,2,2,1,0,0,0,0