input 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. Monkey 0:
  2. Starting items: 83, 88, 96, 79, 86, 88, 70
  3. Operation: new = old * 5
  4. Test: divisible by 11
  5. If true: throw to monkey 2
  6. If false: throw to monkey 3
  7. Monkey 1:
  8. Starting items: 59, 63, 98, 85, 68, 72
  9. Operation: new = old * 11
  10. Test: divisible by 5
  11. If true: throw to monkey 4
  12. If false: throw to monkey 0
  13. Monkey 2:
  14. Starting items: 90, 79, 97, 52, 90, 94, 71, 70
  15. Operation: new = old + 2
  16. Test: divisible by 19
  17. If true: throw to monkey 5
  18. If false: throw to monkey 6
  19. Monkey 3:
  20. Starting items: 97, 55, 62
  21. Operation: new = old + 5
  22. Test: divisible by 13
  23. If true: throw to monkey 2
  24. If false: throw to monkey 6
  25. Monkey 4:
  26. Starting items: 74, 54, 94, 76
  27. Operation: new = old * old
  28. Test: divisible by 7
  29. If true: throw to monkey 0
  30. If false: throw to monkey 3
  31. Monkey 5:
  32. Starting items: 58
  33. Operation: new = old + 4
  34. Test: divisible by 17
  35. If true: throw to monkey 7
  36. If false: throw to monkey 1
  37. Monkey 6:
  38. Starting items: 66, 63
  39. Operation: new = old + 6
  40. Test: divisible by 2
  41. If true: throw to monkey 7
  42. If false: throw to monkey 5
  43. Monkey 7:
  44. Starting items: 56, 56, 90, 96, 68
  45. Operation: new = old + 7
  46. Test: divisible by 3
  47. If true: throw to monkey 4
  48. If false: throw to monkey 1