aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex AUVOLAT <alex.auvolat@ens.fr>2014-11-10 19:39:45 +0100
committerAlex AUVOLAT <alex.auvolat@ens.fr>2014-11-10 19:39:45 +0100
commit9aa8b3a702c65f47033651e770ab3755a0210c16 (patch)
treeb83d41de074a7806b057e32aeedd43e60fee1709
parente650922ad088c5b003cd5d1e1ffa255e82b879b2 (diff)
parente40508aa7f25247443b2ff8ebb6637b36608b8dc (diff)
downloadCompetIA-9aa8b3a702c65f47033651e770ab3755a0210c16.tar.gz
CompetIA-9aa8b3a702c65f47033651e770ab3755a0210c16.zip
Merge branches 'master' and 'master' of adnab.me:~/git/CompetIA into ocaml-3.12
-rw-r--r--judge/main.ml5
1 files changed, 4 insertions, 1 deletions
diff --git a/judge/main.ml b/judge/main.ml
index 3e14ff2..85c09b6 100644
--- a/judge/main.ml
+++ b/judge/main.ml
@@ -110,8 +110,11 @@ end = struct
(fun (_, sc) (_, sc') -> sc' - sc)
(C.scores())
in
+ let p_sc = ref (-199028109) in
let show_sc i (n, s) =
- text2 (i+4) black (string_of_int (i+1)^". ");
+ if s <> !p_sc then
+ text2 (i+4) black (string_of_int (i+1)^". ");
+ p_sc := s;
text3 (i+4) black n;
text4 (i+4) black (string_of_int s)
in