int $score + 0.5
}
+sub usname ($) {
+ local $Gruntmaster::Data::contest;
+ my $user = shift;
+ my $name = user_name $user;
+ "$name ($user)"
+}
+
+
sub _generate{
my ($self, $htc, $lang, $env, $ct) = @_;
debug $env => "language is '$lang' and contest is '$ct'";
my @st = sort { $b->{score} <=> $a->{score} or $a->{user} cmp $b->{user}} map {
my $user = $_;
+{
- user => user_name $user,
+ user => usname $user,
score => sum (values $scores{$user}),
scores => [map { $scores{$user}{$_} // '-'} @problems],
problems => $Gruntmaster::Data::contest,