]> iEval git - gruntmaster-daemon.git/blob - Points.pm
0ddc71f395d0b173aa46e3151b75b387e0a75711
[gruntmaster-daemon.git] / Points.pm
1 package Gruntmaster::Daemon::Judge::Points;
2
3 use 5.014000;
4 use strict;
5 use warnings;
6
7 use Gruntmaster::Daemon::Constants qw/AC REJ/;
8 use List::Util qw/sum/;
9 use Log::Log4perl qw/get_logger/;
10
11 our $VERSION = '5999.000_001';
12
13 ##################################################
14
15 sub judge{
16 no warnings qw/numeric/;
17 get_logger->trace("Judging results: @_");
18 my $points = sum 0, grep { !ref } @_;
19 $points == 100 ? (result => AC, result_text => 'Accepted') : (result => REJ, result_text => "$points points", points => $points)
20 }
21
22 1
This page took 0.042693 seconds and 3 git commands to generate.