Update versions
[gruntmaster-daemon.git] / lib / Gruntmaster / Daemon / Judge / Points.pm
index 6d13ad07f4c489dff820c0e2c10cfe48690405a6..0ddc71f395d0b173aa46e3151b75b387e0a75711 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.000_001';
 
 ##################################################
 
 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.010492 seconds and 4 git commands to generate.