]> iEval git - gruntmaster-daemon.git/blame_incremental - Points.pm
Add javascript
[gruntmaster-daemon.git] / Points.pm
... / ...
CommitLineData
1package Gruntmaster::Daemon::Judge::Points;
2
3use 5.014000;
4use strict;
5use warnings;
6
7use Gruntmaster::Daemon::Constants qw/AC REJ/;
8use List::Util qw/sum/;
9use Log::Log4perl qw/get_logger/;
10
11our $VERSION = '5999.000_001';
12
13##################################################
14
15sub 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
221
This page took 0.022787 seconds and 5 git commands to generate.