infile.txt 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. Monkey 0:
  2. Starting items: 72, 64, 51, 57, 93, 97, 68
  3. Operation: new = old * 19
  4. Test: divisible by 17
  5. If true: throw to monkey 4
  6. If false: throw to monkey 7
  7. Monkey 1:
  8. Starting items: 62
  9. Operation: new = old * 11
  10. Test: divisible by 3
  11. If true: throw to monkey 3
  12. If false: throw to monkey 2
  13. Monkey 2:
  14. Starting items: 57, 94, 69, 79, 72
  15. Operation: new = old + 6
  16. Test: divisible by 19
  17. If true: throw to monkey 0
  18. If false: throw to monkey 4
  19. Monkey 3:
  20. Starting items: 80, 64, 92, 93, 64, 56
  21. Operation: new = old + 5
  22. Test: divisible by 7
  23. If true: throw to monkey 2
  24. If false: throw to monkey 0
  25. Monkey 4:
  26. Starting items: 70, 88, 95, 99, 78, 72, 65, 94
  27. Operation: new = old + 7
  28. Test: divisible by 2
  29. If true: throw to monkey 7
  30. If false: throw to monkey 5
  31. Monkey 5:
  32. Starting items: 57, 95, 81, 61
  33. Operation: new = old * old
  34. Test: divisible by 5
  35. If true: throw to monkey 1
  36. If false: throw to monkey 6
  37. Monkey 6:
  38. Starting items: 79, 99
  39. Operation: new = old + 2
  40. Test: divisible by 11
  41. If true: throw to monkey 3
  42. If false: throw to monkey 1
  43. Monkey 7:
  44. Starting items: 68, 98, 62
  45. Operation: new = old + 3
  46. Test: divisible by 13
  47. If true: throw to monkey 5
  48. If false: throw to monkey 6