Add COPYING
[gruntmaster-daemon.git] / lib / Gruntmaster / Daemon / Judge / Points.pm
index 6d13ad07f4c489dff820c0e2c10cfe48690405a6..6e6563b4baad6e3b0d784556b967a069d0f25b84 100644 (file)
@@ -7,14 +7,15 @@ use warnings;
 use Gruntmaster::Daemon::Constants qw/AC REJ/;
 use List::Util qw/sum/;
 use Log::Log4perl qw/get_logger/;
-our $VERSION = '0.001';
+
+our $VERSION = '5999-TRIAL';
 
 ##################################################
 
 sub judge{
   no warnings qw/numeric/;
   get_logger->trace("Judging results: @_");
-  my $points = sum 0, grep { $_+0 eq "$_" } @_;
+  my $points = sum 0, grep { !ref } @_;
   $points == 100 ? (result => AC, result_text => 'Accepted') : (result => REJ, result_text => "$points points", points => $points)
 }
 
This page took 0.009343 seconds and 4 git commands to generate.