-
Notifications
You must be signed in to change notification settings - Fork 0
/
11-test.txt
62 lines (56 loc) · 1.01 KB
/
11-test.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
[
{
items: [79n, 98n],
operation: old => old * 19n,
test: 23n,
iftrue: 2,
iffalse: 3,
},
{
items: [54n, 65n, 75n, 74n],
operation: old => old + 6n,
test: 19n,
iftrue: 2,
iffalse: 0,
},
{
items: [79n, 60n, 97n],
operation: old => old * old,
test: 13n,
iftrue: 1,
iffalse: 3,
},
{
items: [74n],
operation: old => old + 3n,
test: 17n,
iftrue: 0,
iffalse: 1,
},
]
/*
Monkey 0:
Starting items: 79, 98
Operation: new = old * 19
Test: divisible by 23
If true: throw to monkey 2
If false: throw to monkey 3
Monkey 1:
Starting items: 54, 65, 75, 74
Operation: new = old + 6
Test: divisible by 19
If true: throw to monkey 2
If false: throw to monkey 0
Monkey 2:
Starting items: 79, 60, 97
Operation: new = old * old
Test: divisible by 13
If true: throw to monkey 1
If false: throw to monkey 3
Monkey 3:
Starting items: 74
Operation: new = old + 3
Test: divisible by 17
If true: throw to monkey 0
If false: throw to monkey 1
*/