From 5abfdbe02647a1ad221d807df857ee092ce7ece7 Mon Sep 17 00:00:00 2001
From: mugurelionut <mugurelionut@gmail.com>
Date: Tue, 17 Dec 2019 09:39:40 +0100
Subject: [PATCH] use 3 threads

---
 r2sol.cc       |  8 +++++++-
 run_local.py   |  2 +-
 scores.txt     | 17 +++++++++--------
 tmp-scores.txt |  1 -
 4 files changed, 17 insertions(+), 11 deletions(-)

diff --git a/r2sol.cc b/r2sol.cc
index bdb9ff2..6214637 100644
--- a/r2sol.cc
+++ b/r2sol.cc
@@ -31,7 +31,7 @@ using namespace std;
 #define NMAX 201
 #define MAXNODES 3000
 #define TMAX 2567
-#define MAX_NUM_THREADS 1//4
+#define MAX_NUM_THREADS 3//4
 #define MAX_CTURNS 5
 #define INF 10000
 #define ZERO 0.000001
@@ -2228,4 +2228,10 @@ int main() {
 0 115 85.1851851852 -49653.9166667006 10 7.4074074074 7.4074074074
 1 100 71.4285714286 -43604.9166666858 -6 -4.2857142857 1.5608465608
 2 66 54.5454545455 -47303.2500000250 11 9.0909090909 9.0909090909
+3 80 100.0000000000 -12082.7500000020 0 0.0000000000 0.0000000000
+4 123 79.3548387097 -84319.9166666058 19 12.2580645161 6.1290322581
+5 130 99.2366412214 -39629.9166666687 7 5.3435114504 5.8671919888
+6 165 95.3757225434 -60916.1666667209 35 20.2312138728 9.4581974598
+7 107 78.6764705882 -41366.8333333417 14 10.2941176471 9.6253814973
 */
+
diff --git a/run_local.py b/run_local.py
index c6eec4e..1022800 100644
--- a/run_local.py
+++ b/run_local.py
@@ -26,7 +26,7 @@ def GetTestParams(tid):
 
 def ShouldRunTest(tid):
   #return tid == 7
-  return tid >= 3
+  #return tid >= 3
   return True
 
 DEFAULT_SPEED_RATIO_MAP = {1.: 0.25,
diff --git a/scores.txt b/scores.txt
index 2132919..eb60eb5 100644
--- a/scores.txt
+++ b/scores.txt
@@ -1,11 +1,12 @@
-0 105 77.7777777778 -54551.6666667190 3 2.2222222222 2.2222222222
-1 106 75.7142857143 -42933.5833333511 5 3.5714285714 2.8968253968
-2 55 45.4545454545 -47614.0000000257 -7 -5.7851239669 0.0028422756
-3 80 100.0000000000 -12752.6666666697 0 0.0000000000 0.0021317067
-4 104 67.0967741935 -95937.8333332090 7 4.5161290323 0.9049311718
-5 123 93.8931297710 -44463.0833333478 -3 -2.2900763359 0.3724299205
-6 130 75.1445086705 -70924.3333333715 -9 -5.2023121387 -0.4239618022
-7 93 68.3823529412 -46478.5000000219 12 8.8235294118 0.7319745995
+0 115 85.1851851852 -49653.9166667006 10 7.4074074074 7.4074074074
+1 100 71.4285714286 -43604.9166666858 -6 -4.2857142857 1.5608465608
+2 66 54.5454545455 -47303.2500000250 11 9.0909090909 9.0909090909
+3 80 100.0000000000 -12082.7500000020 0 0.0000000000 0.0000000000
+4 123 79.3548387097 -84319.9166666058 19 12.2580645161 6.1290322581
+5 130 99.2366412214 -39629.9166666687 7 5.3435114504 5.8671919888
+6 165 95.3757225434 -60916.1666667209 35 20.2312138728 9.4581974598
+7 107 78.6764705882 -41366.8333333417 14 10.2941176471 9.6253814973
+
 8 79 65.8333333333 -42068.4166666825 -3 -2.5000000000 0.3728663107
 9 64 41.8300653595 -78048.1666666569 3 1.9607843137 0.5316581110
 10 87 51.7857142857 -92886.0833332524 -1 -0.5952380952 0.4292130013
diff --git a/tmp-scores.txt b/tmp-scores.txt
index 10f9d23..e69de29 100644
--- a/tmp-scores.txt
+++ b/tmp-scores.txt
@@ -1 +0,0 @@
-3 80 100.0000000000 -12082.7500000020 0 0.0000000000 0.0000000000
-- 
GitLab