Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,10 @@
|
|||
sub check_perm {
|
||||
my %hash; @hash{@_} = ();
|
||||
for my $s (@_) { exists $hash{$_} or return $_
|
||||
for map substr($s,1) . substr($s,0,1), (1..length $s); }
|
||||
}
|
||||
|
||||
# Check and display
|
||||
@perms = qw(ABCD CABD ACDB DACB BCDA ACBD ADCB CDAB DABC BCAD CADB CDBA
|
||||
CBAD ABDC ADBC BDCA DCBA BACD BADC BDAC CBDA DBCA DCAB);
|
||||
print check_perm(@perms), "\n";
|
||||
|
|
@ -0,0 +1 @@
|
|||
print eval join '^', map "'$_'", <>;
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
$\ ^= $_ while <>;
|
||||
print '';
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
local $_ = join '', <>;
|
||||
my %h = map { $_, '' } reverse =~ /\w+/g;
|
||||
delete @h{ /\w+/g };
|
||||
print %h, "\n";
|
||||
Loading…
Add table
Add a link
Reference in a new issue