WPBDC 2016.1.3 → 2016.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/ext/WPBDC/extconf.rb +1 -1
- data/ext/WPBDC/judge.h +5 -5
- data/ext/WPBDC/scenario_descriptors.h +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MjkyZWM0NmNjYzBhNjRkYWQ2ZTY1YmEzNGU5ZWQxNTQxZDFiOGE3NQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDA3MmMwYjg5YzQxODZlYzVlNjQ5MzVkNmUzMmQxMTE5NDdmNDdkZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzgzZTdlMzQ2NDgzMmUyOWUwMDBjOGJhNjE0NjhiNGI4ZTY0M2NhYmE4MjQz
|
10
|
+
Mjc1MmJkYTgwYzJhZDY1NDlkNzRiMjdiOWUwOTNlZWU4OTYxMjcwYjJlZTFk
|
11
|
+
OTFmZWQ4YmQxNjA0NmM3MTk3Mjg5NDNjMDg3YTg5YzllZjllMGY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODliZmVkMjM0ZDk0MDU3MDRhNjdhZTg0ODY3YzVkM2YxMTY4ZGZhYjRiNjdi
|
14
|
+
NGFkNzExMzJjNDM3OWQ0NWQwM2FlZGU3OTc0MWQyNmI4Yjk0NzViZTYyMGM1
|
15
|
+
NmVmMGY4NTU0OWI4MTk1YjE4MGM5NWNjNjA3YmU1M2Q4NWM5NGE=
|
data/ext/WPBDC/extconf.rb
CHANGED
data/ext/WPBDC/judge.h
CHANGED
@@ -18,8 +18,8 @@
|
|
18
18
|
#define NULL_SEMIFINAL_SCENARIO_ID "0000000000"
|
19
19
|
|
20
20
|
// When you set this, you _must_ change the scenario table so its record is in sorted order!
|
21
|
-
|
22
|
-
|
21
|
+
#define SEMIFINAL_SCENARIO_ID "4110216000"
|
22
|
+
//#define SEMIFINAL_SCENARIO_ID NULL_SEMIFINAL_SCENARIO_ID
|
23
23
|
|
24
24
|
// Status returns from analyze().
|
25
25
|
#define BRIDGE_OK 0
|
@@ -94,7 +94,7 @@ struct analysis_result_t {
|
|
94
94
|
// This must match ruby string length type.
|
95
95
|
typedef long STRLEN;
|
96
96
|
|
97
|
-
// Representation for a string of arbitrary length, which may possibly
|
97
|
+
// Representation for a string of arbitrary length, which may possibly
|
98
98
|
// contain NULLs. We'll convert RSTRINGs to and from this type.
|
99
99
|
typedef struct t_string {
|
100
100
|
char *ptr;
|
@@ -109,7 +109,7 @@ void endecrypt(STRING *bridge_as_string);
|
|
109
109
|
void analyze(STRING *bridge_as_string, struct analysis_result_t *result);
|
110
110
|
|
111
111
|
// Compare two bridges for functional equality, that is geometry
|
112
|
-
// identical up to joint and member numbers.
|
112
|
+
// identical up to joint and member numbers.
|
113
113
|
// Returns -1 if one or both bridges were malformed.
|
114
114
|
// Else returns a boolean indicating equality.
|
115
115
|
#define BRIDGE_COMPARISON_ERROR -1
|
@@ -129,7 +129,7 @@ char *failed_variant(STRING *bridge_as_string, int seed);
|
|
129
129
|
// one grid and/or the given number of members thickened (or sometimes thinned).
|
130
130
|
// The resulting bridge has _no_ guarantee of correctness, let alone that it will
|
131
131
|
// carry any kind of load.
|
132
|
-
char *perturbation(STRING *bridge_as_string, int seed,
|
132
|
+
char *perturbation(STRING *bridge_as_string, int seed,
|
133
133
|
int n_joints, int n_members);
|
134
134
|
|
135
135
|
// Do an analysis and also return a PNG image sketch of the bridge.
|
@@ -374,6 +374,7 @@ static TScenarioDescriptor scenario_descriptor_tbl[] = {
|
|
374
374
|
{ 372, "4101220300", "16D", 93400.00 },
|
375
375
|
{ 373, "4101220360", "78D", 113400.00 },
|
376
376
|
{ 374, "4101220361", "83D", 125900.00 },
|
377
|
+
{ 999, "4110216000", "99D", 170000.00 },
|
377
378
|
{ 375, "4110804060", "48D", 104600.00 },
|
378
379
|
{ 376, "4110804360", "76D", 116600.00 },
|
379
380
|
{ 377, "4110808060", "47D", 102300.00 },
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: WPBDC
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2016.1.
|
4
|
+
version: 2016.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gene Ressler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Container for C code extension that implements the West Point Bridge
|
14
14
|
Contest Judge.
|