Skip to content

Instantly share code, notes, and snippets.

@tomcha
Created November 30, 2015 03:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomcha/0ab1fafa20da05dc3006 to your computer and use it in GitHub Desktop.
Save tomcha/0ab1fafa20da05dc3006 to your computer and use it in GitHub Desktop.
20
#!/usr/bin/env perl
use strict;
use warnings;
my $cal = 1300 / 16;
my $i = 0;
my @persons;
for my $j (0..15){
$persons[$i] += $cal;
if ($i == 6){
$i = 0;
}else{
$i++;
}
}
for my $person (@persons){
print "$person\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment