Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

judge status

  • Loading branch information...
commit dadc49d02e7f9b49ed3d9f7a2d785da13faa47ad 1 parent 73c5c5c
@pewniak747 authored
Showing with 12 additions and 8 deletions.
  1. +4 −0 bin/common
  2. +7 −3 bin/judge
  3. +1 −5 run
View
4 bin/common
@@ -7,3 +7,7 @@ function red() {
function green() {
printf "\033[32m[$1]\033[0m\t$2\n"
}
+
+function white() {
+ printf "[$1]\t$2\n"
+}
View
10 bin/judge
@@ -37,10 +37,14 @@ if [[ $TIMELIMIT != 0 ]]; then
fi
fi
if [[ $3 == "" ]]; then
- if [[ $result != 0 ]]; then
- red $result "$file - $time s"
+ if [[ $result == 0 ]]; then
+ green "AC" "$file - $time s"
else
- green $result "$file - $time s"
+ if [[ $result == 3 ]]; then
+ red "TLE" "$file - $time s"
+ else
+ red "WA" "$file - $time s"
+ fi
fi
fi
View
6 run
@@ -39,11 +39,7 @@ for host in $HOSTS; do
fi
done
fi
- if [[ $ac_count == $test_count ]]; then
- green "$ac_count/$test_count" $problem
- else
- red "$ac_count/$test_count" $problem
- fi
+ white "$ac_count/$test_count" $problem
# cleanup
$CLEANUP
done
Please sign in to comment.
Something went wrong with that request. Please try again.