Skip to content

Instantly share code, notes, and snippets.

View E7-87-83's full-sized avatar

Fung Cheok Yin E7-87-83

View GitHub Profile
use v5.30.0;
use warnings;
use List::Util qw/uniqint shuffle/;
my @segments = ();
for (0..3, 4..7) {
push @segments, [$_, $_+4, $_+8];
}
for (0,4,8,12, 1,5,9,13) {
use v5.30.0;
use warnings;
use List::Util qw/uniqint shuffle/;
my @segments = (
[0, 1, 3],
[0, 2, 5],
[1, 3, 6],
[1, 4, 8],
[2, 4, 7],
use v5.30.0;
use warnings;
my @segments =
([0, 1, 3],
[0, 2, 5],
[1, 3, 6],
[1, 4, 8],
[2, 4, 7],
[2, 5, 9],
@E7-87-83
E7-87-83 / q3.pl
Created November 28, 2023 16:02
HKPS Programming Game Nov 28
=pod
time perl q3.pl
3 12312341235432
4 12312341235432
4 12312341235432
4 12312341235432
4 12312341235432
4 12312341235432
4 12312341235432
4 12312341235432