input 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. Monkey 0:
  2. Starting items: 74, 64, 74, 63, 53
  3. Operation: new = old * 7
  4. Test: divisible by 5
  5. If true: throw to monkey 1
  6. If false: throw to monkey 6
  7. Monkey 1:
  8. Starting items: 69, 99, 95, 62
  9. Operation: new = old * old
  10. Test: divisible by 17
  11. If true: throw to monkey 2
  12. If false: throw to monkey 5
  13. Monkey 2:
  14. Starting items: 59, 81
  15. Operation: new = old + 8
  16. Test: divisible by 7
  17. If true: throw to monkey 4
  18. If false: throw to monkey 3
  19. Monkey 3:
  20. Starting items: 50, 67, 63, 57, 63, 83, 97
  21. Operation: new = old + 4
  22. Test: divisible by 13
  23. If true: throw to monkey 0
  24. If false: throw to monkey 7
  25. Monkey 4:
  26. Starting items: 61, 94, 85, 52, 81, 90, 94, 70
  27. Operation: new = old + 3
  28. Test: divisible by 19
  29. If true: throw to monkey 7
  30. If false: throw to monkey 3
  31. Monkey 5:
  32. Starting items: 69
  33. Operation: new = old + 5
  34. Test: divisible by 3
  35. If true: throw to monkey 4
  36. If false: throw to monkey 2
  37. Monkey 6:
  38. Starting items: 54, 55, 58
  39. Operation: new = old + 7
  40. Test: divisible by 11
  41. If true: throw to monkey 1
  42. If false: throw to monkey 5
  43. Monkey 7:
  44. Starting items: 79, 51, 83, 88, 93, 76
  45. Operation: new = old * 3
  46. Test: divisible by 2
  47. If true: throw to monkey 0
  48. If false: throw to monkey 6