Spaces:
Running
Running
fix bug
Browse files- day20/solution_jerpint.py +2 -2
- results.csv +32 -33
- solutions.json +2 -2
day20/solution_jerpint.py
CHANGED
@@ -157,7 +157,7 @@ def get_all_shortest_paths(grid, shortest_path):
|
|
157 |
# shortest_path = [shortest_path[0]] + shortest_path # Add the start position so we can consider it too
|
158 |
|
159 |
start_idx = get_symbol_pos(grid, "S")
|
160 |
-
print(start_idx)
|
161 |
|
162 |
# Start idx not included originally
|
163 |
shortest_path = [start_idx] + shortest_path
|
@@ -249,7 +249,7 @@ def get_all_shortest_paths(grid, shortest_path):
|
|
249 |
shortest_path = shortest_path[::-1] # Reverse it for easier logic, start_pos is now first
|
250 |
|
251 |
start_idx = get_symbol_pos(grid, "S")
|
252 |
-
print(start_idx)
|
253 |
|
254 |
# Start idx not included originally
|
255 |
shortest_path = [start_idx] + shortest_path
|
|
|
157 |
# shortest_path = [shortest_path[0]] + shortest_path # Add the start position so we can consider it too
|
158 |
|
159 |
start_idx = get_symbol_pos(grid, "S")
|
160 |
+
# print(start_idx)
|
161 |
|
162 |
# Start idx not included originally
|
163 |
shortest_path = [start_idx] + shortest_path
|
|
|
249 |
shortest_path = shortest_path[::-1] # Reverse it for easier logic, start_pos is now first
|
250 |
|
251 |
start_idx = get_symbol_pos(grid, "S")
|
252 |
+
# print(start_idx)
|
253 |
|
254 |
# Start idx not included originally
|
255 |
shortest_path = [start_idx] + shortest_path
|
results.csv
CHANGED
@@ -35,18 +35,18 @@ day,model,result,total_time
|
|
35 |
3,claude-3-5-sonnet-20241022,"173529487
|
36 |
99532691
|
37 |
",0.0305140018463134
|
38 |
-
4,gpt-4o,"2493
|
39 |
-
122
|
40 |
-
",0.1320409774780273
|
41 |
4,gemini-1.5-pro,"3872
|
42 |
0
|
43 |
",0.1471152305603027
|
44 |
-
4,
|
45 |
-
|
46 |
-
",0.
|
47 |
4,jerpint,"2493
|
48 |
1890
|
49 |
",0.1274900436401367
|
|
|
|
|
|
|
50 |
5,gpt-4o,"Error: Traceback (most recent call last):
|
51 |
File ""/Users/jeremypinto/advent24-llm/day05/solution_gpt-4o.py"", line 77, in <module>
|
52 |
main()
|
@@ -73,17 +73,17 @@ ValueError: invalid literal for int() with base 10: ''
|
|
73 |
",67.0117359161377
|
74 |
6,claude-3-5-sonnet-20241022,Error: Timeout,300.0090808868408
|
75 |
6,gemini-1.5-pro,Error: Timeout,300.00918889045715
|
76 |
-
7,claude-3-5-sonnet-20241022,"5540634308362
|
77 |
-
472290821152397
|
78 |
-
",20.063307762145996
|
79 |
7,gemini-1.5-pro,"5540634308362
|
80 |
472290821152397
|
81 |
",3.241072177886963
|
82 |
-
7,
|
83 |
472290821152397
|
84 |
-
",
|
85 |
7,gpt-4o,"472290821152397
|
86 |
",19.688328981399536
|
|
|
|
|
|
|
87 |
8,jerpint,"273
|
88 |
1017
|
89 |
",0.0589988231658935
|
@@ -116,18 +116,18 @@ IndexError: string index out of range
|
|
116 |
9,jerpint,"6421128769094
|
117 |
6448168620520
|
118 |
",38.908868074417114
|
119 |
-
10,gemini-1.5-pro,"760
|
120 |
-
1764
|
121 |
-
",0.0449333190917968
|
122 |
10,gpt-4o,"760
|
123 |
1764
|
124 |
",0.0459368228912353
|
125 |
-
10,
|
126 |
1764
|
127 |
-
",0.
|
128 |
10,claude-3-5-sonnet-20241022,"760
|
129 |
1764
|
130 |
",0.041105031967163
|
|
|
|
|
|
|
131 |
11,jerpint,"220722
|
132 |
261952051690787
|
133 |
",0.2919449806213379
|
@@ -239,23 +239,22 @@ ValueError: invalid literal for int() with base 10: 'Program: 2'
|
|
239 |
18,claude-3-5-sonnet-20241022,"330
|
240 |
10,38
|
241 |
",13.420971155166626
|
|
|
|
|
242 |
19,claude-3-5-sonnet-20241022,"290
|
243 |
712058625427487
|
244 |
",2.365529775619507
|
245 |
-
19,gpt-4o,"712058625427487
|
246 |
-
",0.9564287662506104
|
247 |
-
19,jerpint,"290
|
248 |
-
",0.10815191268920898
|
249 |
19,gemini-1.5-pro,Error: Timeout,300.0093183517456
|
250 |
-
|
251 |
-
",0.
|
252 |
-
20,jerpint,"(105, 35)
|
253 |
-
1375
|
254 |
-
",6.334330081939697
|
255 |
20,gemini-1.5-pro,Error: Timeout,300.0078308582306
|
|
|
|
|
256 |
20,claude-3-5-sonnet-20241022,"1
|
257 |
5
|
258 |
",145.0637719631195
|
|
|
|
|
259 |
21,jerpint,"157908
|
260 |
",0.0293052196502685
|
261 |
21,claude-3-5-sonnet-20241022,"157248
|
@@ -273,18 +272,18 @@ ValueError: invalid literal for int() with base 10: 'Program: 2'
|
|
273 |
return precomputed_sequences[code]
|
274 |
KeyError: '341A'
|
275 |
",0.0282812118530273
|
276 |
-
22,claude-3-5-sonnet-20241022,Error: Timeout,300.0252139568329
|
277 |
22,gemini-1.5-pro,Error: Timeout,300.00811290740967
|
|
|
|
|
278 |
22,jerpint,"14082561342
|
279 |
1568
|
280 |
",54.82558584213257
|
281 |
-
22,gpt-4o,Error: Timeout,300.00778007507324
|
282 |
23,jerpint,"926
|
283 |
az,ed,hz,it,ld,nh,pc,td,ty,ux,wc,yg,zz
|
284 |
",2.992269992828369
|
|
|
285 |
23,claude-3-5-sonnet-20241022,Error: Timeout,300.0074918270111
|
286 |
23,gemini-1.5-pro,Error: Timeout,300.00904989242554
|
287 |
-
23,gpt-4o,Error: Timeout,300.00809812545776
|
288 |
24,gemini-1.5-pro,"Error: Traceback (most recent call last):
|
289 |
File ""/Users/jeremypinto/advent24-llm/day24/solution_gemini-1.5-pro.py"", line 37, in <module>
|
290 |
z_values.append(str(evaluate_wire(f""z{i:02}"", circuit, cache)))
|
@@ -306,13 +305,13 @@ bfw,ffh,frj,hwm,mjb,nrd,tgd,wpb
|
|
306 |
",0.0257329940795898
|
307 |
24,jerpint,"51657025112326
|
308 |
",0.0270252227783203
|
309 |
-
25,gpt-4o,"3732
|
310 |
-
",0.0514318943023681
|
311 |
-
25,claude-3-5-sonnet-20241022,"585
|
312 |
-
Merry Christmas!
|
313 |
-
",0.0423557758331298
|
314 |
25,jerpint,"3690
|
315 |
",0.0443761348724365
|
316 |
25,gemini-1.5-pro,"25250
|
317 |
There is no part 2 for this challenge.
|
318 |
",0.0472519397735595
|
|
|
|
|
|
|
|
|
|
|
|
35 |
3,claude-3-5-sonnet-20241022,"173529487
|
36 |
99532691
|
37 |
",0.0305140018463134
|
|
|
|
|
|
|
38 |
4,gemini-1.5-pro,"3872
|
39 |
0
|
40 |
",0.1471152305603027
|
41 |
+
4,gpt-4o,"2493
|
42 |
+
122
|
43 |
+
",0.1320409774780273
|
44 |
4,jerpint,"2493
|
45 |
1890
|
46 |
",0.1274900436401367
|
47 |
+
4,claude-3-5-sonnet-20241022,"2493
|
48 |
+
1890
|
49 |
+
",0.2896838188171386
|
50 |
5,gpt-4o,"Error: Traceback (most recent call last):
|
51 |
File ""/Users/jeremypinto/advent24-llm/day05/solution_gpt-4o.py"", line 77, in <module>
|
52 |
main()
|
|
|
73 |
",67.0117359161377
|
74 |
6,claude-3-5-sonnet-20241022,Error: Timeout,300.0090808868408
|
75 |
6,gemini-1.5-pro,Error: Timeout,300.00918889045715
|
|
|
|
|
|
|
76 |
7,gemini-1.5-pro,"5540634308362
|
77 |
472290821152397
|
78 |
",3.241072177886963
|
79 |
+
7,claude-3-5-sonnet-20241022,"5540634308362
|
80 |
472290821152397
|
81 |
+
",20.063307762145996
|
82 |
7,gpt-4o,"472290821152397
|
83 |
",19.688328981399536
|
84 |
+
7,jerpint,"5540634308362
|
85 |
+
472290821152397
|
86 |
+
",159.69412803649902
|
87 |
8,jerpint,"273
|
88 |
1017
|
89 |
",0.0589988231658935
|
|
|
116 |
9,jerpint,"6421128769094
|
117 |
6448168620520
|
118 |
",38.908868074417114
|
|
|
|
|
|
|
119 |
10,gpt-4o,"760
|
120 |
1764
|
121 |
",0.0459368228912353
|
122 |
+
10,gemini-1.5-pro,"760
|
123 |
1764
|
124 |
+
",0.0449333190917968
|
125 |
10,claude-3-5-sonnet-20241022,"760
|
126 |
1764
|
127 |
",0.041105031967163
|
128 |
+
10,jerpint,"760
|
129 |
+
1764
|
130 |
+
",0.0722007751464843
|
131 |
11,jerpint,"220722
|
132 |
261952051690787
|
133 |
",0.2919449806213379
|
|
|
239 |
18,claude-3-5-sonnet-20241022,"330
|
240 |
10,38
|
241 |
",13.420971155166626
|
242 |
+
19,gpt-4o,"712058625427487
|
243 |
+
",0.9564287662506104
|
244 |
19,claude-3-5-sonnet-20241022,"290
|
245 |
712058625427487
|
246 |
",2.365529775619507
|
|
|
|
|
|
|
|
|
247 |
19,gemini-1.5-pro,Error: Timeout,300.0093183517456
|
248 |
+
19,jerpint,"290
|
249 |
+
",0.1081519126892089
|
|
|
|
|
|
|
250 |
20,gemini-1.5-pro,Error: Timeout,300.0078308582306
|
251 |
+
20,jerpint,"1375
|
252 |
+
",6.2632269859313965
|
253 |
20,claude-3-5-sonnet-20241022,"1
|
254 |
5
|
255 |
",145.0637719631195
|
256 |
+
20,gpt-4o,"20
|
257 |
+
",0.6666040420532227
|
258 |
21,jerpint,"157908
|
259 |
",0.0293052196502685
|
260 |
21,claude-3-5-sonnet-20241022,"157248
|
|
|
272 |
return precomputed_sequences[code]
|
273 |
KeyError: '341A'
|
274 |
",0.0282812118530273
|
|
|
275 |
22,gemini-1.5-pro,Error: Timeout,300.00811290740967
|
276 |
+
22,claude-3-5-sonnet-20241022,Error: Timeout,300.0252139568329
|
277 |
+
22,gpt-4o,Error: Timeout,300.00778007507324
|
278 |
22,jerpint,"14082561342
|
279 |
1568
|
280 |
",54.82558584213257
|
|
|
281 |
23,jerpint,"926
|
282 |
az,ed,hz,it,ld,nh,pc,td,ty,ux,wc,yg,zz
|
283 |
",2.992269992828369
|
284 |
+
23,gpt-4o,Error: Timeout,300.00809812545776
|
285 |
23,claude-3-5-sonnet-20241022,Error: Timeout,300.0074918270111
|
286 |
23,gemini-1.5-pro,Error: Timeout,300.00904989242554
|
|
|
287 |
24,gemini-1.5-pro,"Error: Traceback (most recent call last):
|
288 |
File ""/Users/jeremypinto/advent24-llm/day24/solution_gemini-1.5-pro.py"", line 37, in <module>
|
289 |
z_values.append(str(evaluate_wire(f""z{i:02}"", circuit, cache)))
|
|
|
305 |
",0.0257329940795898
|
306 |
24,jerpint,"51657025112326
|
307 |
",0.0270252227783203
|
|
|
|
|
|
|
|
|
|
|
308 |
25,jerpint,"3690
|
309 |
",0.0443761348724365
|
310 |
25,gemini-1.5-pro,"25250
|
311 |
There is no part 2 for this challenge.
|
312 |
",0.0472519397735595
|
313 |
+
25,gpt-4o,"3732
|
314 |
+
",0.0514318943023681
|
315 |
+
25,claude-3-5-sonnet-20241022,"585
|
316 |
+
Merry Christmas!
|
317 |
+
",0.0423557758331298
|
solutions.json
CHANGED
@@ -76,8 +76,8 @@
|
|
76 |
"N/A"
|
77 |
],
|
78 |
"20": [
|
79 |
-
"
|
80 |
-
"
|
81 |
],
|
82 |
"21": [
|
83 |
"157908",
|
|
|
76 |
"N/A"
|
77 |
],
|
78 |
"20": [
|
79 |
+
"1375",
|
80 |
+
"N/A"
|
81 |
],
|
82 |
"21": [
|
83 |
"157908",
|