-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex_v1.html
More file actions
402 lines (359 loc) · 15.5 KB
/
index_v1.html
File metadata and controls
402 lines (359 loc) · 15.5 KB
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Humanity's Last Code Exam</title>
<!-- ======== Fonts & Icons ======== -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@100;400&display=swap" rel="stylesheet" />
<link rel="icon" href="figs/edited_1747725897.png" />
<!-- ======== Libraries ======== -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/PapaParse/5.3.0/papaparse.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/echarts@5.3.3/dist/echarts.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/css/bootstrap.min.css" />
<link href="https://cdn.jsdelivr.net/npm/prismjs@v1.x/themes/prism.css" rel="stylesheet" />
<script src="https://cdn.jsdelivr.net/npm/prismjs@v1.x/components/prism-core.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@v1.x/plugins/autoloader/prism-autoloader.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs-bibtex@2.1.0/prism-bibtex.min.js"></script>
<!-- ======== Styles ======== -->
<style>
body {
font-family: "JetBrains Mono", monospace;
background-color: #ffffff;
color: #000000;
}
#content {
width: 50%;
}
th,
td {
text-align: left;
}
th {
background-color: #f2f2f2;
cursor: pointer;
user-select: none;
font-weight: 800;
font-size: 1.1em;
}
tbody tr {
transition: background-color 0.2s ease;
}
tbody tr:hover {
background-color: #e9f6ff;
}
#notes {
font-size: 1.1em;
}
#notes h3 {
margin-top: 2em;
margin-bottom: 1em;
font-size: 2em;
text-align: center;
}
#notes li {
font-size: 1.2em;
font-weight: 300;
margin: 1em;
}
.form-select {
font-size: 1em;
}
@media screen and (max-width: 1400px) {
body {
font-size: 1.6vw;
}
#content {
width: 100%;
}
h1 {
font-size: 2em;
}
h2 {
font-size: 1.6em;
}
h3 {
font-size: 1.2em;
}
table {
font-size: small;
}
}
/* ---------- Author & Affiliation ---------- */
.paper-meta {
font-size: 1.05rem; /* 默认字号(≈17 px) */
line-height: 1.4;
}
.author-line span,
.affil-line span {
white-space: nowrap; /* 避免名字/单位被拆行 */
}
.author-line sup,
.affil-line sup {
font-size: 0.65em; /* 上标略小 */
vertical-align: super;
}
.author-line { font-weight: 600; } /* 姓名稍加粗 */
.affil-line { font-weight: 400; }
@media (min-width: 1400px) { /* 超宽屏略放大 */
.paper-meta { font-size: 1.15rem; }
}
@media (max-width: 768px) { /* 移动端自适应缩放 */
.paper-meta { font-size: 3.5vw; }
.author-line,
.affil-line { line-height: 1.3; }
}
</style>
</head>
<body>
<div id="content" class="container-fluid d-flex flex-column align-items-center gap-3 py-5 mt-3">
<h1 class="d-flex align-items-center gap-2 flex-wrap justify-content-center">
<img src="figs/edited_1747725897.png" alt="HLCE Logo" style="height:40px;" />
<span>HLCE: Humanity's Last Code Exam</span>
</h1>
<h3 class="fw-light text-nowrap">
<small id="warning">Can Advanced LLMs Conquer Human's Hardest Code Competition?<br /></small>
</h3>
<div class="paper-meta text-center my-3">
<!-- 作者行 -->
<div class="author-line">
<span>Xiangyang Li<sup>*</sup></span>,
<span>Xiaopeng Li<sup>*</sup></span>,
<span>Kuicai Dong<sup></sup></span>,
<span>Quanhu Zhang<sup></sup></span>,
<span>Rongju Ruan<sup></sup></span>,
<span>Xinyi Dai<sup></sup></span>,
<span>Yasheng Wang<sup></sup></span>,
<span>Ruiming Tang<sup></sup></span>
</div>
<!-- 单位行 -->
<div class="affil-line text-muted mt-1">
<span><sup></sup> Huawei Noah's Ark Lab</span>
</div>
</div>
<div class="d-flex flex-row justify-content-center gap-3">
<a href="https://github.com/Humanity-s-Last-Code-Exam/HLCE">
<img src="https://img.shields.io/badge/GitHub-Repo-181717.svg?style=for-the-badge&logo=github&logoColor=white"
alt="github" class="img-fluid" />
</a>
<a href="">
<img src="https://img.shields.io/badge/Paper-ArXiv'25-a55fed.svg?style=for-the-badge" alt="paper" class="img-fluid" />
</a>
<a href="https://huggingface.co/spaces/YourUsername/YourProject">
<img src="https://img.shields.io/badge/Hugging Face-🤗-FFD21E.svg?style=for-the-badge"
alt="huggingface" class="img-fluid" />
</a>
</div>
<div id="notes">
<h3> News </h3>
<div class="inline-block mt-3">
<p>📢 25‑Jun‑1: We are excited to release HLCE. Checkout <a href="https://github.com/Humanity-s-Last-Code-Exam/HLCE">🌏 GitHub</a> and <a href="">🤗 HuggingFace</a>!</p>
</div>
<h3> Introduction </h3>
<div id="notes">
HLCE is a challenging benchmark of 235 competitive programming problems sourced from the IOI and ICPC World Finals. It features both standard and interactive problems, along with a novel self‑assessment task designed to evaluate deeper reasoning capabilities.
By incorporating data from human competitions, HLCE provides metrics that directly compare large language models with elite human programmers—revealing a clear gap in performance. The benchmark is designed to push the boundaries of code generation, encouraging progress toward models that can truly compete at the highest levels of programming expertise.
<div style="text-align: center;">
<img src="figs/hlce_cover.png" alt="Cover" style="width: 90%; max-width: 100%; height: auto;" />
</div>
</div>
</div>
<!-- ======== Benchmark Switch ======== -->
<div id="notes">
<h3> LeaderBoard</h3>
<div class="btn-group my-3" role="group" id="benchmark-toggle">
<input type="radio" class="btn-check" name="benchmark" id="ICPC" autocomplete="off" checked />
<label class="btn btn-outline-primary" for="ICPC">ICPC</label>
<input type="radio" class="btn-check" name="benchmark" id="IOI" autocomplete="off" />
<label class="btn btn-outline-primary" for="IOI">IOI</label>
<input type="radio" class="btn-check" name="benchmark" id="Average" autocomplete="off" />
<label class="btn btn-outline-primary" for="Average">Average</label>
</div>
</div>
<!-- ======== Results Table ======== -->
<div class="table-responsive w-100">
<table id="results-table" class="table table-striped table-bordered align-middle"></table>
</div>
<!-- ======== Benchmark Switch ======== -->
<div id="notes">
<h3> Submitting Custom Models</h3>
To submit models you can create a pull request on our <a href="https://github.com/Humanity-s-Last-Code-Exam/results"> Results</a> . Particularly, you can copy your model generations folder from `output` to the `submissions` folder and create a pull request. We will review the submission and add the model to the leaderboard accordingly.
</div>
<div id="notes" class="w-100 mt-5">
<h3 class="text-center">Citation</h3>
<p>If you use <strong>HLCE</strong> in your research, please cite our paper:</p>
<pre class="mx-auto p-3 bg-light rounded" style="max-width: 700px;"><code class="language-bibtex">@article{hlce2025,
title = {Humanity's Last Code Exam: Can Advanced LLMs Conquer Human's Hardest Code Competition?},
author = {First Last and Second Author and Third Author},
journal = {arXiv preprint arXiv:2506.01234},
year = {2025}
}</code></pre>
</div>
</div>
</div>
<!-- ====================================================== -->
<!-- ======== Script ====================================== -->
<!-- ====================================================== -->
<script>
////////////////////////////////////////////////////////////////////////
// GLOBAL STATE //
////////////////////////////////////////////////////////////////////////
let tableData = [];
let tableKeys = [];
const sortState = new Map();
////////////////////////////////////////////////////////////////////////
// TABLE HELPERS //
////////////////////////////////////////////////////////////////////////
const buildHeader = (keys) => {
const thead = document.createElement('thead');
const tr = document.createElement('tr');
const rankTh = document.createElement('th');
rankTh.textContent = '#';
tr.appendChild(rankTh);
keys.forEach((k) => {
const th = document.createElement('th');
th.dataset.key = k;
th.addEventListener('click', handleSortClick);
updateSortIndicator(th, k);
tr.appendChild(th);
});
thead.appendChild(tr);
return thead;
};
const updateSortIndicator = (th, key) => {
const dir = sortState.get(key);
const arrow = dir === 'asc' ? ' ▲' : dir === 'desc' ? ' ▼' : '';
th.textContent = key + arrow;
};
const buildBody = (rows, keys) => {
const tbody = document.createElement('tbody');
rows.forEach((row, idx) => {
const tr = document.createElement('tr');
const rankTd = document.createElement('td');
rankTd.textContent = idx + 1;
tr.appendChild(rankTd);
keys.forEach((k) => {
const td = document.createElement('td');
if (k === 'Model' && row.URL) {
td.innerHTML = `<a href="${row.URL}" target="_blank" rel="noopener noreferrer">${row[k]}</a>`;
} else {
const v = row[k];
td.textContent = typeof v === 'number' && !Number.isNaN(v) ? v.toFixed(3) : v;
}
tr.appendChild(td);
});
tbody.appendChild(tr);
});
return tbody;
};
const renderTable = () => {
const table = document.getElementById('results-table');
table.innerHTML = '';
table.appendChild(buildHeader(tableKeys));
table.appendChild(buildBody(tableData, tableKeys));
};
////////////////////////////////////////////////////////////////////////
// SORTING //
////////////////////////////////////////////////////////////////////////
const handleSortClick = (e) => {
const key = e.currentTarget.dataset.key;
const current = sortState.get(key);
const dir = current === 'asc' ? 'desc' : current === 'desc' ? undefined : 'asc';
if (dir) sortState.set(key, dir); else sortState.delete(key);
tableData.sort((a, b) => compareValues(a[key], b[key], dir));
[...sortState.keys()].forEach((k) => { if (k !== key) sortState.delete(k); });
renderTable();
};
const compareValues = (a, b, dir = 'asc') => {
const m = dir === 'desc' ? -1 : 1;
const aNum = !Number.isNaN(parseFloat(a));
const bNum = !Number.isNaN(parseFloat(b));
if (aNum && bNum) return (parseFloat(a) - parseFloat(b)) * m;
return String(a).localeCompare(String(b)) * m;
};
////////////////////////////////////////////////////////////////////////
// DATA LOADING //
////////////////////////////////////////////////////////////////////////
const safeNum = (x) => {
const n = parseFloat(x);
return Number.isFinite(n) ? n : 0;
};
const loadAndRender = async (filename) => {
try {
const resp = await fetch(filename);
if (!resp.ok) throw new Error(`${filename} load failed`);
const json = await resp.json();
tableKeys = Object.keys(json[0]).filter((k) => k !== 'URL');
json.sort((a, b) => safeNum(b['pass@1']) - safeNum(a['pass@1']));
tableData = json;
sortState.clear();
renderTable();
} catch (err) {
alert(err.message);
}
};
const loadAverageAndRender = async () => {
try {
const [icpcResp, ioiResp] = await Promise.all([
fetch('ICPC_results.json'),
fetch('IOI_results.json')
]);
if (!icpcResp.ok || !ioiResp.ok) throw new Error('Failed to load results');
const [icpcData, ioiData] = await Promise.all([
icpcResp.json(),
ioiResp.json(),
]);
const aggMap = new Map();
// const pass1Candidates = ['Pass@1', 'pass1', 'pass@1 (%)'];
// const pass5Candidates = ['pass@5', 'pass5', 'pass@5 (%)'];
pass1Candidates = ['Pass@1', 'pass@1', 'pass1', 'Pass@1 (%)', 'pass@1 (%)'];
pass5Candidates = ['Pass@5', 'pass@5', 'pass5', 'Pass@5 (%)', 'pass@5 (%)'];
const accumulate = (rows) => {
rows.forEach((row) => {
const name = row.Model;
if (!aggMap.has(name)) {
aggMap.set(name, { Model: name, URL: row.URL || '', p1: 0, p5: 0, cnt: 0 });
}
const entry = aggMap.get(name);
const p1 = pass1Candidates.map((k) => row[k]).find((v) => v !== undefined);
const p5 = pass5Candidates.map((k) => row[k]).find((v) => v !== undefined);
entry.p1 += safeNum(p1);
entry.p5 += safeNum(p5);
entry.cnt += 1;
});
};
accumulate(icpcData);
accumulate(ioiData);
const avgRows = Array.from(aggMap.values()).map((e) => ({
Model: e.Model,
'Pass@1': e.cnt ? e.p1 / e.cnt : 0,
'Pass@5': e.cnt ? e.p5 / e.cnt : 0,
URL: e.URL,
}));
avgRows.sort((a, b) => safeNum(b['Pass@1']) - safeNum(a['Pass@1']));
tableKeys = ['Model', 'Pass@1', 'Pass@5'];
tableData = avgRows;
sortState.clear();
renderTable();
} catch (err) {
alert(err.message);
}
};
////////////////////////////////////////////////////////////////////////
// EVENT LISTENERS //
////////////////////////////////////////////////////////////////////////
document.getElementById('ICPC').addEventListener('change', (e) => {
if (e.target.checked) loadAndRender('ICPC_results.json');
});
document.getElementById('IOI').addEventListener('change', (e) => {
if (e.target.checked) loadAndRender('IOI_results.json');
});
document.getElementById('Average').addEventListener('change', (e) => {
if (e.target.checked) loadAverageAndRender();
});
// initial load
loadAndRender('ICPC_results.json');
</script>
</body>
</html>