blob: 3d2c10c8ae7fcd0d0a41a268de396c6fe4c04692 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
p =: verb : '-:y*_1+3*y'
wa =: p 1+i.10000
isP =: e.&wa
sums =: isP +/~ wa
difs =: isP -/~ wa
heh =: sums *. difs
row =: I. +/"1 heh
col =: I. +/ heh
problem44 =: x: (p 1+row) - (p 1+col)
|