rbx.cp 0.5.70__py3-none-any.whl → 0.5.72__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -26,7 +26,7 @@ printf "%s" "${TestlibContent}" >testlib.h
26
26
  printf "%s" "${RbxHeaderContent}" >rbx.h
27
27
  printf "%s" "${CheckerContent}" >$CHECKER_PATH
28
28
 
29
- checker_hash=($(md5sum $CHECKER_PATH))
29
+ checker_hash=($(cat $CHECKER_PATH rbx.h testlib.h | md5sum))
30
30
  checker_cache="/tmp/boca-chk-${checker_hash}"
31
31
 
32
32
  echo "Polygon checker hash: $checker_hash"
@@ -115,7 +115,7 @@ if [ ! -x "\$cc" ]; then
115
115
  exit 47
116
116
  fi
117
117
  cd src
118
- "\$cc" {{rbxFlags}} "../$exe" "$name"
118
+ "\$cc" {{rbxFlags}} -o "../$exe" "$name"
119
119
  echo \$? > ../compileit.retcode
120
120
  exit 0
121
121
  EOF
@@ -81,10 +81,10 @@ fi
81
81
 
82
82
  time=$3
83
83
  if [ "$time" -gt "0" ]; then
84
- let "ttime = $time + 30"
84
+ let "ttime = $time * 4"
85
85
  else
86
86
  time=1
87
- ttime=30
87
+ ttime=4
88
88
  fi
89
89
 
90
90
  nruns=1
@@ -132,12 +132,18 @@ SFPID=\$!
132
132
  ./interactor.exe "stdin0" "stdout0" <fifo.out >fifo.in 2>stderr0 &
133
133
  INTPID=\$!
134
134
 
135
- wait \$SFPID
136
- ECSF=\$?
137
-
138
135
  wait \$INTPID
139
136
  ECINT=\$?
140
137
 
138
+ ECSF=0
139
+ if [[ \$ECINT -ge 1 ]] && [[ \$ECINT -le 4 ]]; then
140
+ # kill the solution
141
+ kill -9 \$SFPID
142
+ else
143
+ wait \$SFPID
144
+ ECSF=\$?
145
+ fi
146
+
141
147
  rm -rf fifo.in fifo.out
142
148
 
143
149
  echo "Ran solution as \$@" &>>stderr0
@@ -81,10 +81,10 @@ fi
81
81
 
82
82
  time=$3
83
83
  if [ "$time" -gt "0" ]; then
84
- let "ttime = $time + 30"
84
+ let "ttime = $time * 4"
85
85
  else
86
86
  time=1
87
- ttime=30
87
+ ttime=4
88
88
  fi
89
89
 
90
90
  nruns=1
@@ -132,12 +132,18 @@ SFPID=\$!
132
132
  ./interactor.exe "stdin0" "stdout0" <fifo.out >fifo.in 2>stderr0 &
133
133
  INTPID=\$!
134
134
 
135
- wait \$SFPID
136
- ECSF=\$?
137
-
138
135
  wait \$INTPID
139
136
  ECINT=\$?
140
137
 
138
+ ECSF=0
139
+ if [[ \$ECINT -ge 1 ]] && [[ \$ECINT -le 4 ]]; then
140
+ # kill the solution
141
+ kill -9 \$SFPID
142
+ else
143
+ wait \$SFPID
144
+ ECSF=\$?
145
+ fi
146
+
141
147
  rm -rf fifo.in fifo.out
142
148
 
143
149
  echo "Ran solution as \$@" &>>stderr0
@@ -81,10 +81,10 @@ fi
81
81
 
82
82
  time=$3
83
83
  if [ "$time" -gt "0" ]; then
84
- let "ttime = $time + 30"
84
+ let "ttime = $time * 4"
85
85
  else
86
86
  time=1
87
- ttime=30
87
+ ttime=4
88
88
  fi
89
89
 
90
90
  nruns=1
@@ -132,12 +132,18 @@ SFPID=\$!
132
132
  ./interactor.exe "stdin0" "stdout0" <fifo.out >fifo.in 2>stderr0 &
133
133
  INTPID=\$!
134
134
 
135
- wait \$SFPID
136
- ECSF=\$?
137
-
138
135
  wait \$INTPID
139
136
  ECINT=\$?
140
137
 
138
+ ECSF=0
139
+ if [[ \$ECINT -ge 1 ]] && [[ \$ECINT -le 4 ]]; then
140
+ # kill the solution
141
+ kill -9 \$SFPID
142
+ else
143
+ wait \$SFPID
144
+ ECSF=\$?
145
+ fi
146
+
141
147
  rm -rf fifo.in fifo.out
142
148
 
143
149
  echo "Ran solution as \$@" &>>stderr0
@@ -99,10 +99,10 @@ fi
99
99
 
100
100
  time=$3
101
101
  if [ "$time" -gt "0" ]; then
102
- let "ttime = $time + 30"
102
+ let "ttime = $time * 4"
103
103
  else
104
104
  time=1
105
- ttime=30
105
+ ttime=4
106
106
  fi
107
107
 
108
108
  nruns=1
@@ -145,12 +145,18 @@ SFPID=\$!
145
145
  ./interactor.exe "stdin0" "stdout0" <fifo.out >fifo.in 2>stderr0 &
146
146
  INTPID=\$!
147
147
 
148
- wait \$SFPID
149
- ECSF=\$?
150
-
151
148
  wait \$INTPID
152
149
  ECINT=\$?
153
150
 
151
+ ECSF=0
152
+ if [[ \$ECINT -ge 1 ]] && [[ \$ECINT -le 4 ]]; then
153
+ # kill the solution
154
+ kill -9 \$SFPID
155
+ else
156
+ wait \$SFPID
157
+ ECSF=\$?
158
+ fi
159
+
154
160
  rm -rf fifo.in fifo.out
155
161
 
156
162
  echo "Ran solution as \$@" &>>stderr0
@@ -91,10 +91,10 @@ fi
91
91
 
92
92
  time=$3
93
93
  if [ "$time" -gt "0" ]; then
94
- let "ttime = $time + 30"
94
+ let "ttime = $time * 4"
95
95
  else
96
96
  time=1
97
- ttime=30
97
+ ttime=4
98
98
  fi
99
99
 
100
100
  nruns=1
@@ -136,12 +136,18 @@ SFPID=\$!
136
136
  ./interactor.exe "stdin0" "stdout0" <fifo.out >fifo.in 2>stderr0 &
137
137
  INTPID=\$!
138
138
 
139
- wait \$SFPID
140
- ECSF=\$?
141
-
142
139
  wait \$INTPID
143
140
  ECINT=\$?
144
141
 
142
+ ECSF=0
143
+ if [[ \$ECINT -ge 1 ]] && [[ \$ECINT -le 4 ]]; then
144
+ # kill the solution
145
+ kill -9 \$SFPID
146
+ else
147
+ wait \$SFPID
148
+ ECSF=\$?
149
+ fi
150
+
145
151
  rm -rf fifo.in fifo.out
146
152
 
147
153
  echo "Ran solution as \$@" &>>stderr0
@@ -78,10 +78,10 @@ fi
78
78
 
79
79
  time=$3
80
80
  if [ "$time" -gt "0" ]; then
81
- let "ttime = $time + 30"
81
+ let "ttime = $time * 4"
82
82
  else
83
83
  time=1
84
- ttime=30
84
+ ttime=4
85
85
  fi
86
86
 
87
87
  nruns=1
@@ -123,12 +123,18 @@ SFPID=\$!
123
123
  ./interactor.exe "stdin0" "stdout0" <fifo.out >fifo.in 2>stderr0 &
124
124
  INTPID=\$!
125
125
 
126
- wait \$SFPID
127
- ECSF=\$?
128
-
129
126
  wait \$INTPID
130
127
  ECINT=\$?
131
128
 
129
+ ECSF=0
130
+ if [[ \$ECINT -ge 1 ]] && [[ \$ECINT -le 4 ]]; then
131
+ # kill the solution
132
+ kill -9 \$SFPID
133
+ else
134
+ wait \$SFPID
135
+ ECSF=\$?
136
+ fi
137
+
132
138
  rm -rf fifo.in fifo.out
133
139
 
134
140
  echo "Ran solution as \$@" &>>stderr0
@@ -78,10 +78,10 @@ fi
78
78
 
79
79
  time=$3
80
80
  if [ "$time" -gt "0" ]; then
81
- let "ttime = $time + 30"
81
+ let "ttime = $time * 4"
82
82
  else
83
83
  time=1
84
- ttime=30
84
+ ttime=4
85
85
  fi
86
86
 
87
87
  nruns=1
@@ -121,12 +121,18 @@ SFPID=\$!
121
121
  ./interactor.exe "stdin0" "stdout0" <fifo.out >fifo.in 2>stderr0 &
122
122
  INTPID=\$!
123
123
 
124
- wait \$SFPID
125
- ECSF=\$?
126
-
127
124
  wait \$INTPID
128
125
  ECINT=\$?
129
126
 
127
+ ECSF=0
128
+ if [[ \$ECINT -ge 1 ]] && [[ \$ECINT -le 4 ]]; then
129
+ # kill the solution
130
+ kill -9 \$SFPID
131
+ else
132
+ wait \$SFPID
133
+ ECSF=\$?
134
+ fi
135
+
130
136
  rm -rf fifo.in fifo.out
131
137
 
132
138
  echo "Ran solution as \$@" &>>stderr0
@@ -81,10 +81,10 @@ fi
81
81
 
82
82
  time=$3
83
83
  if [ "$time" -gt "0" ]; then
84
- let "ttime = $time + 30"
84
+ let "ttime = $time * 4"
85
85
  else
86
86
  time=1
87
- ttime=30
87
+ ttime=4
88
88
  fi
89
89
 
90
90
  nruns=1
@@ -81,10 +81,10 @@ fi
81
81
 
82
82
  time=$3
83
83
  if [ "$time" -gt "0" ]; then
84
- let "ttime = $time + 30"
84
+ let "ttime = $time * 4"
85
85
  else
86
86
  time=1
87
- ttime=30
87
+ ttime=4
88
88
  fi
89
89
 
90
90
  nruns=1
@@ -81,10 +81,10 @@ fi
81
81
 
82
82
  time=$3
83
83
  if [ "$time" -gt "0" ]; then
84
- let "ttime = $time + 30"
84
+ let "ttime = $time * 4"
85
85
  else
86
86
  time=1
87
- ttime=30
87
+ ttime=4
88
88
  fi
89
89
 
90
90
  nruns=1
@@ -99,10 +99,10 @@ fi
99
99
 
100
100
  time=$3
101
101
  if [ "$time" -gt "0" ]; then
102
- let "ttime = $time + 30"
102
+ let "ttime = $time * 4"
103
103
  else
104
104
  time=1
105
- ttime=30
105
+ ttime=4
106
106
  fi
107
107
 
108
108
  nruns=1
@@ -99,10 +99,10 @@ fi
99
99
 
100
100
  time=$3
101
101
  if [ "$time" -gt "0" ]; then
102
- let "ttime = $time + 30"
102
+ let "ttime = $time * 4"
103
103
  else
104
104
  time=1
105
- ttime=30
105
+ ttime=4
106
106
  fi
107
107
 
108
108
  nruns=1
@@ -79,10 +79,10 @@ fi
79
79
 
80
80
  time=$3
81
81
  if [ "$time" -gt "0" ]; then
82
- let "ttime = $time + 30"
82
+ let "ttime = $time * 4"
83
83
  else
84
84
  time=1
85
- ttime=30
85
+ ttime=4
86
86
  fi
87
87
 
88
88
  nruns=1
@@ -79,10 +79,10 @@ fi
79
79
 
80
80
  time=$3
81
81
  if [ "$time" -gt "0" ]; then
82
- let "ttime = $time + 30"
82
+ let "ttime = $time * 4"
83
83
  else
84
84
  time=1
85
- ttime=30
85
+ ttime=4
86
86
  fi
87
87
 
88
88
  nruns=1
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: rbx.cp
3
- Version: 0.5.70
3
+ Version: 0.5.72
4
4
  Summary:
5
5
  Author: Roberto Sales
6
6
  Requires-Python: >=3.9,<4.0
@@ -139,9 +139,9 @@ rbx/resources/default_setter_config.mac.yml,sha256=i28xwAUDg-kuxx19knCiYkh-NR7Qe
139
139
  rbx/resources/default_setter_config.yml,sha256=oy6fbuQyYaJS2Cw2zcbYcBBGt6138CyB3-bLl45_QqY,1000
140
140
  rbx/resources/envs/default.rbx.yml,sha256=8gl4DXc5mVISx__1libPQfmuHYdW32xjysfqpNESIAo,853
141
141
  rbx/resources/envs/isolate.rbx.yml,sha256=VZAJ-Mu-A5Rt4m0VtMygOXA7eLLvCCmoorv_0acDmXQ,870
142
- rbx/resources/packagers/boca/checker.sh,sha256=q34ZS2clnctOj_8XPUxUGc-qm0kGgUG9ThDm-WZRz3I,1196
142
+ rbx/resources/packagers/boca/checker.sh,sha256=nNif_PIHriktliHI-N2_PxLEO3T1zXbTGnM58ok0G1g,1218
143
143
  rbx/resources/packagers/boca/compare.sh,sha256=a6AmQqwrIq616DHjp_S2l95wO7UiMVy0LQ9EajZKDDk,1201
144
- rbx/resources/packagers/boca/compile/c,sha256=lHLvxzkG_he5jmxWrix0WT80ipMWWUZdOgOQMSpj8oo,4507
144
+ rbx/resources/packagers/boca/compile/c,sha256=7bx47zeZB5nJl2WmYmt2jjhQGgBnQnFwGFziL2p_Q-Y,4510
145
145
  rbx/resources/packagers/boca/compile/cc,sha256=B_18QkUGcjUg6yrTFlTQuMWnHpTWUKPZmFuk7Y0l1VA,4561
146
146
  rbx/resources/packagers/boca/compile/cpp,sha256=_1pJTSC7uADu-IIdQCaZyMbH8x01wfgxcdZ36oxXncI,4496
147
147
  rbx/resources/packagers/boca/compile/java,sha256=vh3IeWzvPWrEX0n9AmAHFlpQrq7MX1feLhHfdBP7onU,5259
@@ -149,22 +149,22 @@ rbx/resources/packagers/boca/compile/kt,sha256=3B900QSD4jSXnX91gJbvI4ZmNELHSiBb5
149
149
  rbx/resources/packagers/boca/compile/pas,sha256=C5IwZzmZpIos49FrLGafRbdGPODNJn7N5JbnLX_FT_4,4576
150
150
  rbx/resources/packagers/boca/compile/py2,sha256=UJknN4xiKP8oMN8tRZ92tDlESXgBfRO69QfyUyjijvA,4739
151
151
  rbx/resources/packagers/boca/compile/py3,sha256=L5Yzl_G5kTdmx7N7-oW3Dm_sq4uQJleRmFq84WNfZXo,4739
152
- rbx/resources/packagers/boca/interactive/c,sha256=7AgLVL8TO0vGgpAyNVC08ceG83-_yPO7BIPHGLTerck,5720
153
- rbx/resources/packagers/boca/interactive/cc,sha256=7AgLVL8TO0vGgpAyNVC08ceG83-_yPO7BIPHGLTerck,5720
154
- rbx/resources/packagers/boca/interactive/cpp,sha256=BdyAz61YV1ojQGTKOXJXrMfN9zA9r4X3NnCRb4vJIEE,5719
155
- rbx/resources/packagers/boca/interactive/java,sha256=hruT1TAUfhLITRwlh3wW_JnziAfXr75ELZl_OLUELQs,6687
156
- rbx/resources/packagers/boca/interactive/kt,sha256=n32qFNKjiov49ABnbGPJUVc-yd66o-OtQhcSYQl5nV0,6621
157
- rbx/resources/packagers/boca/interactive/py2,sha256=Ml0oE-xWnGFLkpns8fkTMbpC0UqIOThMoC1i6oL_xJk,5884
158
- rbx/resources/packagers/boca/interactive/py3,sha256=EfbjcrISSdLp6W46tlk77d69jdrdw9z6rD8hBYaMHuQ,5848
152
+ rbx/resources/packagers/boca/interactive/c,sha256=_AkIHI790gsa3_k_oYgvQdRCgLOzOymxnT0foEz_qu0,5829
153
+ rbx/resources/packagers/boca/interactive/cc,sha256=_AkIHI790gsa3_k_oYgvQdRCgLOzOymxnT0foEz_qu0,5829
154
+ rbx/resources/packagers/boca/interactive/cpp,sha256=Hybb9Z-ReWUGuR6Ia6ODPGPGcIJFtjdP_9iVG-7z3RE,5828
155
+ rbx/resources/packagers/boca/interactive/java,sha256=Q7507ehwXwCdLHyVQ2Rtsy5umBLQMX5pe6ptYIUfH18,6796
156
+ rbx/resources/packagers/boca/interactive/kt,sha256=HZ6rSAA0nvuFAov6F1psEja4FEV0V6MqiS8TLhZQMAw,6730
157
+ rbx/resources/packagers/boca/interactive/py2,sha256=Ieku094OBwNra_U0Dcd9VO6GbOzrljfJjzVB5JGJPYo,5993
158
+ rbx/resources/packagers/boca/interactive/py3,sha256=73WSpcBlqiuskdKQvPSBlQ0tAp18UavKOcMisrdXC8w,5957
159
159
  rbx/resources/packagers/boca/interactor_compile.sh,sha256=5dvF_eYuAJS3wlxyjUIJvu9HUNiMvET17rgoPq-WIlc,1082
160
160
  rbx/resources/packagers/boca/run/bkp,sha256=xyDkZDaxgUrW-K2I0YJs8a8dJMuF-k8_ganDGxqhvUQ,4218
161
- rbx/resources/packagers/boca/run/c,sha256=s-Krq9mqJf587HEO0px2K2b4I0Gp4_vp-wZnJB6dsK4,3689
162
- rbx/resources/packagers/boca/run/cc,sha256=s-Krq9mqJf587HEO0px2K2b4I0Gp4_vp-wZnJB6dsK4,3689
163
- rbx/resources/packagers/boca/run/cpp,sha256=s-Krq9mqJf587HEO0px2K2b4I0Gp4_vp-wZnJB6dsK4,3689
164
- rbx/resources/packagers/boca/run/java,sha256=e5Yge3Q1Fp68M3Ad4tKHNXQ1KhqBD9pD3HUtvdShNcY,5580
165
- rbx/resources/packagers/boca/run/kt,sha256=JmnCGuGacFj2PJAGir9qSi31fXBuZd8ESkhxYIir-o8,4675
166
- rbx/resources/packagers/boca/run/py2,sha256=PGQC9wX_Gh_kcSC8oEMrO9dyibrw6iqZKo0UAoIP5Mo,4919
167
- rbx/resources/packagers/boca/run/py3,sha256=MyOvtoQAz76hw8Ut-8X9w5uvDbipzJ_XoZQww35ZYWQ,4919
161
+ rbx/resources/packagers/boca/run/c,sha256=bhB-I-mJ4xNa6lr0OwC1O-eiMVTE_bdAd13nmySiT8A,3687
162
+ rbx/resources/packagers/boca/run/cc,sha256=bhB-I-mJ4xNa6lr0OwC1O-eiMVTE_bdAd13nmySiT8A,3687
163
+ rbx/resources/packagers/boca/run/cpp,sha256=bhB-I-mJ4xNa6lr0OwC1O-eiMVTE_bdAd13nmySiT8A,3687
164
+ rbx/resources/packagers/boca/run/java,sha256=rAcvpriBr3NAuzzjMzIrtTBTgD9dLVr49dW2P7LmYNc,5578
165
+ rbx/resources/packagers/boca/run/kt,sha256=0nTcFhEtGSJXLkPmGCqOx58XpTdoGn0qL5niePGDEdo,4673
166
+ rbx/resources/packagers/boca/run/py2,sha256=2IobOou2k6oYIa_mw0DjeZaqJgw9ZQc69e6XYnRS-fo,4917
167
+ rbx/resources/packagers/boca/run/py3,sha256=_w9IBoDhAThrABcvWfZQ0wOaqnzeiqwG5AL-eAQrVSU,4917
168
168
  rbx/resources/packagers/moj/scripts/c/compile.sh,sha256=d6IFuVf_EmUhkHg5urrv3G4e8AFFYgHqEYJ_ROs-A-M,231
169
169
  rbx/resources/packagers/moj/scripts/c/prep.sh,sha256=it1e07QRpsnku3-rXOO1ovaw-RJlVVPy9R3I6WWwgMM,126
170
170
  rbx/resources/packagers/moj/scripts/c/run.sh,sha256=w_DAapoBVMZj7uiA4TMcNi2D5S243Cvsa4VQ_OoHGtY,187
@@ -217,8 +217,8 @@ rbx/testcase.py,sha256=yKOq3CAJZ1YTmInvnoIs0u1iJnRj_X85XiWbLI-p9d8,1951
217
217
  rbx/testcase_rendering.py,sha256=nfmv6dSEqd4aR3TsaODwkKGK6AXty_DDKtWf_ejiQpI,2084
218
218
  rbx/testing_utils.py,sha256=x_PqD8Zd2PkN91NxVHUnSTs044-1WK5KKtttKQBXpFs,2083
219
219
  rbx/utils.py,sha256=SfR844_i0ebRDMkmS_w1YdZiWPc6h2RGADygewlWRbA,4845
220
- rbx_cp-0.5.70.dist-info/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
221
- rbx_cp-0.5.70.dist-info/METADATA,sha256=4h9GZhPBUyAJtHvIxkHF7APS3MBxLi6XsbcaX7D3UPs,3604
222
- rbx_cp-0.5.70.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
223
- rbx_cp-0.5.70.dist-info/entry_points.txt,sha256=qBTLBOeifT1F00LWaEewRRE_jQPgvH7BUdJfZ-dYsFU,57
224
- rbx_cp-0.5.70.dist-info/RECORD,,
220
+ rbx_cp-0.5.72.dist-info/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
221
+ rbx_cp-0.5.72.dist-info/METADATA,sha256=XcIhcEEPVCd1Ows9DFdu3qgQodAnSPokFDk4RU9hyA8,3604
222
+ rbx_cp-0.5.72.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
223
+ rbx_cp-0.5.72.dist-info/entry_points.txt,sha256=qBTLBOeifT1F00LWaEewRRE_jQPgvH7BUdJfZ-dYsFU,57
224
+ rbx_cp-0.5.72.dist-info/RECORD,,