-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
639 lines (599 loc) · 28.4 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="description"
content="Deformable Neural Radiance Fields creates free-viewpoint portraits (nerfies) from casually captured videos.">
<meta name="keywords" content="Nerfies, D-NeRF, NeRF">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Code-vision: Evaluating Multimodal LLMs Logic Understanding and Reasoning Capabilities Through Code Generation
</title>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PYVRSFMDRL"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-PYVRSFMDRL');
</script>
<link href="https://fonts.googleapis.com/css?family=Google+Sans|Noto+Sans|Castoro" rel="stylesheet">
<link rel="stylesheet" href="./static/css/bulma.min.css">
<link rel="stylesheet" href="./static/css/bulma-carousel.min.css">
<link rel="stylesheet" href="./static/css/bulma-slider.min.css">
<link rel="stylesheet" href="./static/css/fontawesome.all.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/jpswalsh/academicons@1/css/academicons.min.css">
<link rel="stylesheet" href="./static/css/index.css">
<link rel="icon" href="./static/images/logo_01.png">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script defer src="./static/js/fontawesome.all.min.js"></script>
<script src="./static/js/bulma-carousel.min.js"></script>
<script src="./static/js/bulma-slider.min.js"></script>
<script src="./static/js/index.js"></script>
</head>
<body>
<section class="hero">
<div class="hero-body">
<div class="container is-max-desktop">
<div class="columns is-centered">
<div class="column has-text-centered">
<h1 class="title is-1 publication-title">
<span style="font-size: 1.3em">C</span><span style="font-size: 0.9em">ODE-</span><span
style="font-size: 1.3em">V</span><span style="font-size: 0.9em">ISION</span>
<br>
<span style="font-size: 0.9em">Evaluating MLLMs Logic Understanding and
Reasoning Capabilities Through Code Generation</span>
</h1>
<div class="is-size-5 publication-authors">
<span class="author-block">
<a href="https://wanghanbinpanda.github.io/">Hanbin Wang</a><sup>*1</sup>,</span>
<span class="author-block">
<a href="https://august6676.github.io/about/">Xiaoxuan Zhou</a><sup>*2</sup>,</span>
<span class="author-block">
<a>Zhipeng Xu</a><sup>2</sup>,
</span>
<span class="author-block">
<a>Keyuan Cheng</a><sup>1</sup>,
</span>
<span class="author-block">
<a>Yuxin Zuo</a><sup>3</sup>,
</span>
<span class="author-block">
<a>Kai Tian</a><sup>2</sup>,
</span>
<span class="author-block">
<a>Jingwei Song</a><sup>4</sup>,
</span>
<span class="author-block">
<a>Wenhui Hu</a><sup>1</sup>,
</span>
<span class="author-block">
<a>Xueyang Liu</a><sup>1</sup>
</span>
</div>
<div class="is-size-5 publication-authors">
<p><sup>*</sup> These authors contributed equally to this work.</p>
<p><sup>1</sup> Peking University</p>
<p><sup>2</sup> Northeastern University</p> <!-- 区分机构 -->
<span class="author-block"><sup>3</sup>Chinese Academy of Sciences</span>
<span class="author-block"><sup>4</sup>The University of Hong Kong</span>
</div>
<div class="column has-text-centered">
<div class="publication-links">
<!-- PDF Link. -->
<span class="link-block">
<a href="" class="external-link button is-normal is-rounded is-dark">
<span class="icon">
<i class="fas fa-file-pdf"></i>
</span>
<span>Paper</span>
</a>
<span class="link-block">
<a href=""
class="external-link button is-normal is-rounded is-dark">
<span class="icon">
<i class="ai ai-arxiv"></i>
</span>
<span>arXiv</span>
</a>
</span>
<!-- Code Link. -->
<span class="link-block">
<a href="https://github.com/google/nerfies"
class="external-link button is-normal is-rounded is-dark">
<span class="icon">
<i class="fab fa-github"></i>
</span>
<span>Code</span>
</a>
</span>
<!-- Dataset Link. -->
<span class="link-block">
<a href="https://github.com/google/nerfies/releases/tag/0.1"
class="external-link button is-normal is-rounded is-dark">
<span class="icon">
<!-- <i class="far fa-images"></i> -->
<p style="font-size:18px">🤗</p>
</span>
<span>Data</span>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="section">
<div class="container" style="max-width: 80%;">
<!-- Abstract. -->
<div class="columns is-centered has-text-centered">
<div class="column is-full">
<h2 class="title is-3">Abstract</h2>
<div style="width: 100%; margin: 0 auto;padding: 2rem; ">
<div style="text-align: justify; line-height: 1.8; color: #2c3e50; font-size: 1.2rem;">
<p style="margin-bottom: 1.5rem;">
We present <b style="color: #1a73e8;"><span style="font-size: 1.3em">C</span><span style="font-size: 0.9em">ODE-</span><span style="font-size: 1.3em">V</span><span style="font-size: 0.9em">ISION</span></b>, a benchmark designed to evaluate the logical understanding and reasoning capabilities of Multimodal Large Language Models (MLLMs) through code generation.
<b style="color: #1a73e8;"><span style="font-size: 1.3em">C</span><span style="font-size: 0.9em">ODE-</span><span style="font-size: 1.3em">V</span><span style="font-size: 0.9em">ISION</span></b> challenges MLLMs to generate a correct program that fulfills specific functionality requirements based on a given flowchart, which visually represents the desired algorithm or process.
<b style="color: #1a73e8;"><span style="font-size: 1.3em">C</span><span style="font-size: 0.9em">ODE-</span><span style="font-size: 1.3em">V</span><span style="font-size: 0.9em">ISION</span></b> comprises three subsets—HumanEval-V, Algorithm, and MATH—which evaluate MLLMs' reasoning abilities across basic programming, algorithmic, and mathematical problem-solving domains.
Our experiments evaluate 12 MLLMs on <b style="color: #1a73e8;"><span style="font-size: 1.3em">C</span><span style="font-size: 0.9em">ODE-</span><span style="font-size: 1.3em">V</span><span style="font-size: 0.9em">ISION</span></b>. Experimental results demonstrate that there is a large performance difference between proprietary and open-source models. On hard problems, GPT-4o achieves a 79.3% pass@1, while the best open-source model only achieves 15%.
Further experiments reveal that <b style="color: #1a73e8;"><span style="font-size: 1.3em">C</span><span style="font-size: 0.9em">ODE-</span><span style="font-size: 1.3em">V</span><span style="font-size: 0.9em">ISION</span></b> poses unique challenges compared to other multimodal reasoning benchmarks, such as MMCode and MathVista. We also investigate the reasons behind the poor performance of open-source models.
All of our source codes and data will be released via GitHub.
</p>
</div>
</div>
</div>
</div>
<!--/ Abstract. -->
</div>
</section>
<section>
<!--添加标题行-->
<div style="width: 80%; margin: 0 auto;">
<h1 class="title is-2" align="center" style="margin-bottom: 20px">LeaderBoard on CodeVision</h1>
</div>
<div style="width: 80%; margin: 0 auto;">
<table border="1" style="width: 100%; border-collapse: collapse; text-align: center;">
<thead>
<tr style="background-color: #f3f3f3;">
<th rowspan="2" style="line-height: 2em; font-size: x-large; padding: 5px;vertical-align: middle;">Model</th>
<th colspan="1" rowspan="2" style="line-height: 4cap; font-size: larger; padding: 5px;vertical-align: middle;">HumanEval-V</th>
<th colspan="4" style="font-size: larger; line-height: 2em; padding: 5px;vertical-align: middle;">Algorithm</th>
<th colspan="4" style="font-size: larger; line-height: 2em; padding: 5px;vertical-align: middle;">MATH</th>
<th rowspan="2" style="font-size: larger; line-height: 2em; padding: 5px;vertical-align: middle;">Avg.</th>
</tr>
<tr style="background-color: #f3f3f3;">
<th style="line-height: 2em; padding: 5px;">Easy</th>
<th style="line-height: 2em; padding: 5px;">Medium</th>
<th style="line-height: 2em; padding: 5px;">Hard</th>
<th style="line-height: 2em; padding: 5px;">Overall</th>
<th style="line-height: 2em; padding: 5px;">Easy</th>
<th style="line-height: 2em; padding: 5px;">Medium</th>
<th style="line-height: 2em; padding: 5px;">Hard</th>
<th style="line-height: 2em; padding: 5px;">Overall</th>
</tr>
</thead>
<tbody>
<!-- Proprietary Models 分组 -->
<tr style="background-color: #e0f7fa;">
<td colspan="12" class="proprietary">Proprietary Models</td>
</tr>
<tr>
<td class="row-name" style="color: #cc0f35">GPT-4o
<img src="./static/images/gold-medal.png" alt="medal" class="medal">
</td>
<td><b>94.5</b></td>
<td><b>91.1</b></td>
<td><b>89.3</b></td>
<td><b>79.3</b></td>
<td><b>87.9</b></td>
<td><b>100.0</b></td>
<td><b>97.5</b></td>
<td><b>77.5</b></td>
<td><b>92.0</b></td>
<td><b>91.5</b></td>
</tr>
<tr>
<td class="row-name" style="color: #cc0f35">Gemini 1.5 Pro (May 2024)
<img src="./static/images/silver-medal.png" alt="medal" class="medal">
</td>
<!-- <td></td>-->
<td>89.6</td>
<td>88.9</td>
<td>72.0</td>
<td>44.8</td>
<td>71.8</td>
<td>95.6</td>
<td>92.5</td>
<td>57.5</td>
<td>82.4</td>
<td>81.3</td>
</tr>
<tr>
<td class="row-name" style="color: #cc0f35">Claude 3.5 Sonnet 20240620
<img src="static/images/bronze-medal.png" alt="medal" class="medal">
</td>
<td>82.3</td>
<!-- <td></td>-->
<td>84.4</td>
<td>77.3</td>
<td>48.3</td>
<td>73.8</td>
<td>97.8</td>
<td>95.0</td>
<td>52.5</td>
<td>82.4</td>
<td>79.5</td>
</tr>
<tr>
<td class="row-name">Claude 3 Sonnet</td>
<!-- <td></td>-->
<td>53.0</td>
<td>31.1</td>
<td>14.7</td>
<td>3.4</td>
<td>17.4</td>
<td>88.9</td>
<td>72.5</td>
<td>17.5</td>
<td>60.8</td>
<td>43.7</td>
</tr>
<tr>
<td class="row-name">Claude 3 Haiku</td>
<!-- <td></td>-->
<td>48.8</td>
<td>22.2</td>
<td>4.0</td>
<td>0.0</td>
<td>8.7</td>
<td>73.3</td>
<td>62.5</td>
<td>12.5</td>
<td>50.4</td>
<td>37.0</td>
</tr>
<tr>
<td class="row-name">Gemini 1.5 Flash (April 2024)</td>
<!-- <td></td>-->
<td>72.0</td>
<td>40.0</td>
<td>32.0</td>
<td>10.3</td>
<td>30.2</td>
<td>86.7</td>
<td>72.5</td>
<td>20.0</td>
<td>60.8</td>
<td>57.1</td>
</tr>
<!-- 更多 Proprietary Models 的行 -->
<!-- Open-source Models 分组 -->
<tr style="background-color: #e0f7fa;">
<td colspan="12" class="opensource">Open-source Models</td>
</tr>
<tr>
<td class="row-name">Llama-3.2-90B-Vision-Instruct</td>
<td><b>40.9</b></td>
<td>17.8</td>
<td>8.0</td>
<td>0.0</td>
<td>9.4</td>
<td><b>80.0</b></td>
<td><b>75.5</b></td>
<td><b>15.0</b></td>
<td><b>57.6</b></td>
<td><b>36.9</b></td>
</tr>
<tr>
<td class="row-name">Llama-3.2-11B-Vision-Instruct</td>
<td>29.3</td>
<!-- <td>30.5</td>-->
<td>8.9</td>
<td>1.3</td>
<td>0.0</td>
<td>3.4</td>
<td>62.2</td>
<td>27.5</td>
<td>2.5</td>
<td>32.0</td>
<td>23.8</td>
</tr>
<tr>
<td class="row-name">Phi-3-vision-128k-instruct</td>
<td>29.3</td>
<td>15.6</td>
<td>4.0</td>
<td>0.0</td>
<td>6.7</td>
<td>35.6</td>
<td>7.5</td>
<td>2.5</td>
<td>16.0</td>
<td>19.6</td>
</tr>
<tr>
<td class="row-name">Phi-3.5-vision-instruct</td>
<td>28.0</td>
<td>8.9</td>
<td>0.0</td>
<td>0.0</td>
<td>2.7</td>
<td>33.3</td>
<td>7.5</td>
<td>0.0</td>
<td>14.4</td>
<td>17.7</td>
</tr>
<tr>
<td class="row-name">MiniCPM-V 2.6</td>
<td>40.2</td>
<td><b>22.2</b></td>
<td><b>9.3</b></td>
<td>0.0</td>
<td><b>11.4</b></td>
<td>46.7</td>
<td>15.0</td>
<td>2.5</td>
<td>22.4</td>
<td>27.8</td>
</tr>
</tr>
<tr>
<td class="row-name">Qwen-VL-Plus</td>
<td>17.1</td>
<td>11.1</td>
<td>0.0</td>
<td>0.0</td>
<td>3.4</td>
<td>13.3</td>
<td>2.5</td>
<td>0.0</td>
<td>5.6</td>
<td>11.7</td>
</tr>
<!-- 更多 Open-source Models 的行 -->
</tbody>
</table>
</div>
</section>
<section class="section"></section>
<div class="container" style="max-width: 80%;">
<!-- Dataset Overview -->
<div class="columns is-centered has-text-centered">
<div class="column is-full">
<h2 class="title is-3">Dataset Overview</h2>
<div style="width: 100%; margin: 0 auto; padding: 2rem;">
<div style="text-align: justify; line-height: 1.8; color: #2c3e50; font-size: 1.2rem;">
<p>
The <b style="color: #1a73e8;"><span style="font-size: 1.3em">C</span><span style="font-size: 0.9em">ODE-</span><span style="font-size: 1.3em">V</span><span style="font-size: 0.9em">ISION</span></b> consists of three subsets: HumanEval-V, Algorithm, and MATH, covering various domains and difficulty levels (Easy, Medium, Hard). Each subset contains a distinct number of problems,
with HumanEval-V having 164 problems, Algorithm averaging 49.67 problems across difficulties,
and MATH averaging 42 problems. The number of test cases varies across subsets, with HumanEval-V averaging 8.08 test cases per problem,
while Algorithm maintains a high average of 100 test cases. In terms of flowchart complexity, the Algorithm subset shows the highest average node and edge counts,
with MATH and HumanEval-V following.
</p>
<!-- 展示一个表格 -->
</div>
</div>
<div style="text-align: center;">
<table border="1" cellspacing="0" cellpadding="5" style="border-collapse: collapse; text-align: center; margin: 0 auto;">
<thead>
<tr style="background-color: #f3f3f3;">
<th rowspan="2" style="vertical-align: middle;"> </th>
<th rowspan="2" style="vertical-align: middle;">HumanEval-V</th>
<th colspan="4" style="vertical-align: middle;">Algorithm</th>
<th colspan="4" style="vertical-align: middle;">MATH</th>
</tr>
<tr style="background-color: #f3f3f3;">
<th>Easy</th>
<th>Medium</th>
<th>Hard</th>
<th>Total/Avg.</th>
<th>Easy</th>
<th>Medium</th>
<th>Hard</th>
<th>Total/Avg.</th>
</tr>
</thead>
<tbody>
<tr>
<td style="font-weight: bold;">Problem</td>
<td>164.00</td>
<td>45.00</td>
<td>75.00</td>
<td>29.00</td>
<td>149.00</td>
<td>45.00</td>
<td>41.00</td>
<td>40.00</td>
<td>126.00</td>
</tr>
<tr>
<td style="font-weight: bold;">Avg. Test Cases</td>
<td>8.08</td>
<td>100.00</td>
<td>100.00</td>
<td>100.00</td>
<td>100.00</td>
<td>9.04</td>
<td>8.95</td>
<td>8.78</td>
<td>8.92</td>
</tr>
<tr>
<td style="font-weight: bold;">Avg. Flowchart Nodes</td>
<td>10.90</td>
<td>12.62</td>
<td>15.76</td>
<td>18.86</td>
<td>15.75</td>
<td>10.67</td>
<td>12.38</td>
<td>19.20</td>
<td>14.08</td>
</tr>
<tr>
<td style="font-weight: bold;">Avg. Flowchart Edges</td>
<td>11.07</td>
<td>13.29</td>
<td>15.87</td>
<td>19.14</td>
<td>16.10</td>
<td>10.49</td>
<td>12.00</td>
<td>19.08</td>
<td>13.85</td>
</tr>
</tbody>
</table>
</div>
<div style="text-align: center; margin-top: 1rem; color: #2c3e50; font-size: 1.1rem;">
<span style="font-weight: bold;">Table 1:Statistics of the CODE-VISION benchmark, including the number of problems, average test cases, and flowchart complexity.</span> </div>
</div>
</div>
<!--/ Dataset Overview -->
</div>
</section>
<!-- 新建一个DatasetConstruction的section -->
<section class="section" id="DatasetConstruction">
<div class="container" style="max-width: 80%;">
<div class="columns is-centered has-text-centered">
<div class="column is-full">
<h2 class="title is-3">Dataset Construction</h2>
<!-- 在这里添加一个图片美观展示 -->
<img src="./static/images/construction.png" alt="dataset construction" style="width: 80%; height: auto;">
<!-- 添加图片标题 -->
<p style="text-align: center; margin-top: 1rem; color: #2c3e50; font-size: 1.1rem;" ><span style="font-weight: bold;">Figure 1: The comparison of the dataset between CODE-VISION and MMCode.</span></span></p>
</div>
</div>
</div>
</section>
<!-- 数据集展示模块 -->
<section class="section" id="DatasetShowcase">
<div class="container" style="max-width: 80%;">
<div class="columns is-centered has-text-centered">
<div class="column is-full">
<h2 class="title is-3">Dataset Showcase</h2>
<!-- 修改后的轮播图容器 -->
<div class="slider-container" style="width: 100%; margin: 2rem auto; overflow: hidden; position: relative; padding: 20px;">
<!-- 轮播图容器 -->
<div class="slider-wrapper" style="display: flex; transition: transform 0.5s ease;">
<div class="slide" style="min-width: 100%; flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; align-items: center;">
<img src="./static/images/HumanEval-93.png" alt="dataset showcase" style="max-width: 90%; max-height: 500px; object-fit: contain;">
<p style="text-align: center; color: #2c3e50; font-size: 1.1rem; margin-top: 1rem;">
<span style="font-weight: bold;">Figure 2: A sample problem from HumanEval-V: HumanEval-93.</span>
</p>
</div>
<div class="slide" style="min-width: 100%; flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; align-items: center;">
<img src="./static/images/HumanEval-94.png" alt="showcase 2" style="max-width: 90%; max-height: 500px; object-fit: contain;">
<p style="text-align: center; color: #2c3e50; font-size: 1.1rem; margin-top: 1rem;">
<span style="font-weight: bold;">Figure 3: A sample problem from HumanEval-V: HumanEval-94.</span>
</p>
</div>
<div class="slide" style="min-width: 100%; flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; align-items: center;">
<img src="./static/images/biweekly-contest-118-maximize-area-of-square-hole-in-grid.png" alt="showcase 3" style="max-width: 90%; max-height: 500px; object-fit: contain;">
<p style="text-align: center; color: #2c3e50; font-size: 1.1rem; margin-top: 1rem;">
<span style="font-weight: bold;">Figure 4: A sample problem from Algorithm: weekly-contest-360-maximize-value-of-function-in-a-ball-passing-game.</span>
</p>
</div>
<div class="slide" style="min-width: 100%; flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; align-items: center;">
<img src="./static/images/weekly-contest-369-minimum-equal-sum-of-two-arrays-after-replacing-zeros.png" alt="showcase 3" style="max-width: 90%; max-height: 500px; object-fit: contain;">
<p style="text-align: center; color: #2c3e50; font-size: 1.1rem; margin-top: 1rem;">
<span style="font-weight: bold;">Figure 5: A sample problem from Algorithm: weekly-contest-369-minimum-equal-sum-of-two-arrays-after-replacing-zeros.</span>
</p>
</div>
<div class="slide" style="min-width: 100%; flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; align-items: center;">
<img src="./static/images/3116. Kth Smallest Amount With Single Denomination Combination.png" alt="showcase 4" style="max-width: 90%; max-height: 500px; object-fit: contain;">
<p style="text-align: center; color: #2c3e50; font-size: 1.1rem; margin-top: 1rem;">
<span style="font-weight: bold;">Figure 6: A sample problem from Math: 3116. Kth Smallest Amount With Single Denomination Combination.</span>
</p>
</div>
<div class="slide" style="min-width: 100%; flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; align-items: center;">
<img src="./static/images/weekly-contest-378-find-longest-special-substring-that-occurs-thrice-ii.png" alt="showcase 4" style="max-width: 90%; max-height: 500px; object-fit: contain;">
<p style="text-align: center; color: #2c3e50; font-size: 1.1rem; margin-top: 1rem;">
<span style="font-weight: bold;">Figure 7: A sample problem from Math: weekly-contest-378-find-longest-special-substring-that-occurs-thrice-ii.</span>
</p>
</div>
</div>
<!-- 导航按钮 -->
<button class="slider-button prev" style="position: absolute; left: 20px; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.3); border: none; border-radius: 50%; width: 40px; height: 40px; cursor: pointer; color: white;">❮</button>
<button class="slider-button next" style="position: absolute; right: 20px; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.3); border: none; border-radius: 50%; width: 40px; height: 40px; cursor: pointer; color: white;">❯</button>
</div>
</div>
</div>
</div>
</section>
<section class="section" id="BibTeX">
<div class="container is-max-desktop content">
<h2 class="title">BibTeX</h2>
<pre>
<code>
// some bibtex
</code></pre>
</div>
</section>
<footer class="footer">
<div class="container">
<div class="content has-text-centered">
<a class="icon-link" href="">
<i class="fas fa-file-pdf"></i>
</a>
<a class="icon-link" href="https://github.com/hellokisen/codevision.io" class="external-link" disabled>
<i class="fab fa-github"></i>
</a>
</div>
<div class="columns is-centered">
<div class="column is-8">
<div class="content">
<p>
This website is adapted from <a href="https://nerfies.github.io/">Nerfies</a>,licensed under a
<a href="http://creativecommons.org/licenses/by-sa/4.0/">Commons Attribution-ShareAlike 4.0 International License</a>.
</p>
</div>
</div>
</div>
</div>
</footer>
<script>
document.addEventListener('DOMContentLoaded', function() {
const sliderWrapper = document.querySelector('.slider-wrapper');
const slides = document.querySelectorAll('.slide');
const prevButton = document.querySelector('.prev');
const nextButton = document.querySelector('.next');
const dots = document.querySelectorAll('.dot');
let currentIndex = 0;
// 更新轮播图位置
function updateSlider() {
sliderWrapper.style.transform = `translateX(-${currentIndex * 100}%)`;
// 更新指示点状态
dots.forEach((dot, index) => {
dot.style.background = index === currentIndex ? '#fff' : 'rgba(255,255,255,0.5)';
});
}
// 下一张
function nextSlide() {
currentIndex = (currentIndex + 1) % slides.length;
updateSlider();
}
// 上一张
function prevSlide() {
currentIndex = (currentIndex - 1 + slides.length) % slides.length;
updateSlider();
}
// 绑定按钮事件
nextButton.addEventListener('click', nextSlide);
prevButton.addEventListener('click', prevSlide);
// 绑定指示点事件
dots.forEach((dot, index) => {
dot.addEventListener('click', () => {
currentIndex = index;
updateSlider();
});
});
// 可选:自动轮播
// setInterval(nextSlide, 5000);
});
</script>
</body>
</html>