about summary refs log tree commit diff
path: root/codechef/maxfun.raku
blob: bddd6caea91d84602b4ab12132e0ed4e9c72167f (plain) (blame)
1
2
3
4
5
6
#!/usr/bin/env raku
for ^get() {
    get;
    my @a = map (words get): +*;
    put (@a.max - @a.min) * 2
}