-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgesp.html
More file actions
635 lines (562 loc) · 19.7 KB
/
Copy pathgesp.html
File metadata and controls
635 lines (562 loc) · 19.7 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
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
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Faruto | GESP 编程学习</title>
<meta name="description" content="Faruto GESP 编程学习导航页,整理 GESP 考级、C++ STL、算法专题与编程学习资料。">
<link rel="canonical" href="https://www.faruto.com/gesp.html">
<meta property="og:type" content="website">
<meta property="og:locale" content="zh_CN">
<meta property="og:url" content="https://www.faruto.com/gesp.html">
<meta property="og:title" content="Faruto | GESP 编程学习">
<meta property="og:description" content="GESP 考级、C++ STL、算法专题与编程学习内容入口。">
<style>
:root {
--ink: #172118;
--muted: #5d695f;
--paper: #f6f1e7;
--paper-deep: #e8dcc7;
--leaf: #1f7a4d;
--leaf-dark: #15543a;
--chalk: #fffdf7;
--amber: #d39b2a;
--line: rgba(23, 33, 24, 0.16);
--shadow: 0 24px 70px rgba(27, 44, 31, 0.16);
}
* {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
margin: 0;
min-height: 100vh;
color: var(--ink);
font-family: "Palatino Linotype", "Book Antiqua", "Noto Serif SC", "Source Han Serif SC", serif;
background:
linear-gradient(90deg, rgba(31, 122, 77, 0.05) 1px, transparent 1px),
linear-gradient(0deg, rgba(31, 122, 77, 0.04) 1px, transparent 1px),
radial-gradient(circle at 18% 20%, rgba(211, 155, 42, 0.18), transparent 34%),
radial-gradient(circle at 88% 12%, rgba(31, 122, 77, 0.16), transparent 36%),
var(--paper);
background-size: 42px 42px, 42px 42px, auto, auto, auto;
}
a {
color: inherit;
text-decoration: none;
}
.page {
width: min(1120px, calc(100% - 40px));
margin: 0 auto;
padding: 28px 0 44px;
}
.topbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
padding: 14px 0;
border-bottom: 1px solid var(--line);
}
.brand {
display: flex;
align-items: baseline;
gap: 10px;
font-family: Georgia, "Times New Roman", serif;
letter-spacing: 0;
}
.brand strong {
font-size: 24px;
line-height: 1;
}
.brand span {
color: var(--muted);
font-size: 14px;
}
.nav {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
gap: 10px;
}
.nav a {
border: 1px solid var(--line);
border-radius: 999px;
padding: 9px 14px;
color: var(--leaf-dark);
font-family: "Trebuchet MS", "Noto Sans SC", sans-serif;
font-size: 14px;
background: rgba(255, 253, 247, 0.58);
transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.nav a:hover {
transform: translateY(-2px);
border-color: rgba(31, 122, 77, 0.35);
background: var(--chalk);
}
.hero {
display: grid;
grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
gap: 44px;
align-items: center;
min-height: 520px;
padding: 54px 0 38px;
}
.eyebrow {
margin: 0 0 18px;
color: var(--leaf);
font-family: "Trebuchet MS", "Noto Sans SC", sans-serif;
font-size: 13px;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
}
h1 {
max-width: 780px;
margin: 0;
font-size: clamp(42px, 8vw, 86px);
line-height: 0.96;
letter-spacing: 0;
}
.lead {
max-width: 660px;
margin: 24px 0 0;
color: var(--muted);
font-family: "Trebuchet MS", "Noto Sans SC", sans-serif;
font-size: 18px;
line-height: 1.8;
}
.hero-actions {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: 30px;
}
.button {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 46px;
border: 1px solid var(--leaf-dark);
border-radius: 8px;
padding: 11px 18px;
font-family: "Trebuchet MS", "Noto Sans SC", sans-serif;
font-weight: 700;
background: var(--leaf-dark);
color: white;
box-shadow: 0 12px 28px rgba(21, 84, 58, 0.22);
transition: transform 180ms ease, box-shadow 180ms ease;
}
.button.secondary {
background: rgba(255, 253, 247, 0.7);
color: var(--leaf-dark);
box-shadow: none;
}
.button:hover {
transform: translateY(-2px);
box-shadow: 0 16px 34px rgba(21, 84, 58, 0.26);
}
.study-board {
position: relative;
min-height: 390px;
border: 1px solid rgba(23, 33, 24, 0.22);
border-radius: 8px;
padding: 24px;
background:
linear-gradient(135deg, rgba(255, 253, 247, 0.92), rgba(232, 220, 199, 0.86)),
repeating-linear-gradient(0deg, transparent 0 31px, rgba(23, 33, 24, 0.08) 31px 32px);
box-shadow: var(--shadow);
overflow: hidden;
}
.study-board::before {
content: "";
position: absolute;
inset: 17px;
border: 1px dashed rgba(31, 122, 77, 0.28);
pointer-events: none;
}
.code-card {
position: relative;
display: grid;
gap: 12px;
margin: 26px 0 0;
padding: 18px;
border-radius: 8px;
color: #f4f8ef;
font-family: "Consolas", "Courier New", monospace;
background: #20372b;
box-shadow: 0 16px 36px rgba(27, 44, 31, 0.24);
}
.code-line {
display: flex;
gap: 14px;
font-size: 15px;
line-height: 1.55;
white-space: nowrap;
}
.code-line span:first-child {
color: #a7b9a9;
user-select: none;
}
.token {
color: #f1c76c;
}
.board-note {
position: relative;
margin: 0;
color: var(--leaf-dark);
font-size: 24px;
font-weight: 700;
line-height: 1.25;
}
.board-meta {
position: relative;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
margin-top: 22px;
font-family: "Trebuchet MS", "Noto Sans SC", sans-serif;
}
.board-meta div {
border: 1px solid var(--line);
border-radius: 8px;
padding: 12px;
background: rgba(255, 253, 247, 0.62);
}
.board-meta span {
display: block;
color: var(--muted);
font-size: 12px;
}
.board-meta strong {
display: block;
margin-top: 4px;
color: var(--ink);
font-size: 16px;
}
.section-head {
display: grid;
grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.7fr);
gap: 32px;
align-items: end;
margin: 34px 0 20px;
padding-top: 12px;
border-top: 1px solid var(--line);
}
.section-head h2 {
margin: 0;
font-size: clamp(30px, 5vw, 54px);
line-height: 1;
}
.section-head p {
margin: 0;
color: var(--muted);
font-family: "Trebuchet MS", "Noto Sans SC", sans-serif;
line-height: 1.75;
}
.resource-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 18px;
}
.resource-card {
position: relative;
display: grid;
min-height: 310px;
border: 1px solid var(--line);
border-radius: 8px;
padding: 24px;
background: rgba(255, 253, 247, 0.82);
box-shadow: 0 14px 40px rgba(27, 44, 31, 0.08);
overflow: hidden;
transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.resource-card::after {
content: "";
position: absolute;
right: -52px;
bottom: -70px;
width: 190px;
height: 190px;
border: 30px solid rgba(31, 122, 77, 0.09);
transform: rotate(16deg);
}
.resource-card:hover {
transform: translateY(-4px);
border-color: rgba(31, 122, 77, 0.38);
box-shadow: 0 22px 56px rgba(27, 44, 31, 0.13);
}
.tag {
width: fit-content;
height: fit-content;
border-radius: 999px;
padding: 7px 11px;
color: var(--leaf-dark);
font-family: "Trebuchet MS", "Noto Sans SC", sans-serif;
font-size: 12px;
font-weight: 700;
background: rgba(31, 122, 77, 0.1);
}
.resource-card h3 {
position: relative;
z-index: 1;
margin: 22px 0 0;
font-size: clamp(25px, 4vw, 38px);
line-height: 1.08;
}
.resource-card p {
position: relative;
z-index: 1;
margin: 18px 0 0;
color: var(--muted);
font-family: "Trebuchet MS", "Noto Sans SC", sans-serif;
line-height: 1.75;
}
.card-footer {
position: relative;
z-index: 1;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
align-self: end;
margin-top: 28px;
border-top: 1px solid var(--line);
padding-top: 16px;
color: var(--leaf-dark);
font-family: "Trebuchet MS", "Noto Sans SC", sans-serif;
font-weight: 700;
}
.card-footer span:last-child {
color: var(--amber);
font-size: 20px;
}
.future {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 12px;
margin-top: 18px;
}
.future div {
border: 1px solid var(--line);
border-radius: 8px;
padding: 15px;
background: rgba(232, 220, 199, 0.52);
font-family: "Trebuchet MS", "Noto Sans SC", sans-serif;
color: var(--muted);
}
.future strong {
display: block;
margin-bottom: 6px;
color: var(--ink);
font-family: "Palatino Linotype", "Book Antiqua", "Noto Serif SC", serif;
font-size: 20px;
}
.footer {
margin-top: 34px;
border-top: 1px solid var(--line);
padding: 22px 0 4px;
color: var(--muted);
font-family: "Trebuchet MS", "Noto Sans SC", sans-serif;
font-size: 14px;
}
@media (max-width: 860px) {
.page {
width: min(100% - 28px, 720px);
padding-top: 18px;
}
.topbar,
.hero,
.section-head,
.resource-grid,
.future {
grid-template-columns: 1fr;
}
.topbar {
align-items: flex-start;
}
.nav {
justify-content: flex-start;
}
.hero {
min-height: auto;
gap: 26px;
padding-top: 42px;
}
.study-board {
min-height: auto;
}
.board-meta {
grid-template-columns: 1fr;
}
}
@media (max-width: 560px) {
h1 {
font-size: 42px;
}
.lead {
font-size: 16px;
}
.hero-actions,
.card-footer {
align-items: stretch;
flex-direction: column;
}
.button {
width: 100%;
}
.code-card {
overflow-x: auto;
}
.resource-card {
min-height: 280px;
padding: 20px;
}
}
</style>
</head>
<body>
<div class="page">
<header class="topbar">
<a class="brand" href="/gesp.html" aria-label="Faruto GESP 首页">
<strong>Faruto</strong>
<span>GESP 编程学习</span>
</a>
<nav class="nav" aria-label="页面导航">
<a href="/test.html" target="_blank" rel="noopener noreferrer">Faruto Preview</a>
<a href="/html/index.html" target="_blank" rel="noopener noreferrer">Archive</a>
<a href="#resources">学习资料</a>
<a href="/gesp/pointers.html" target="_blank" rel="noopener noreferrer">C++ 指针专题</a>
<a href="/gesp/file-io.html" target="_blank" rel="noopener noreferrer">文件读写专题</a>
<a href="/gesp/daniel-coding-guide.html" target="_blank" rel="noopener noreferrer">Daniel 编程宝典</a>
<a href="/gesp/matrix-neighborhood-practice.html" target="_blank" rel="noopener noreferrer">矩阵邻域 10 题</a>
<a href="/gesp/wrong-book/" target="_blank" rel="noopener noreferrer">错题训练</a>
</nav>
</header>
<main>
<section class="hero">
<div>
<p class="eyebrow">GESP / C++ / STL / Algorithms</p>
<h1>把考级知识整理成可反复打开的编程书桌</h1>
<p class="lead">这里收纳 GESP 考级相关的 C++ STL、算法可视化和编程学习资料,后续可以继续扩展真题练习、代码模板和学习路线。</p>
<div class="hero-actions">
<a class="button" href="#resources">查看学习资料</a>
<a class="button secondary" href="/test.html" target="_blank" rel="noopener noreferrer">返回 Faruto 导航</a>
</div>
</div>
<aside class="study-board" aria-label="GESP 学习看板">
<p class="board-note">C++ STL 和算法专题,是从“会写程序”到“写得更快更稳”的工具箱。</p>
<div class="code-card" aria-hidden="true">
<div class="code-line"><span>01</span><code><span class="token">vector</span><int> score;</code></div>
<div class="code-line"><span>02</span><code>sort(score.begin(), score.end());</code></div>
<div class="code-line"><span>03</span><code><span class="token">map</span><string, int> rank;</code></div>
<div class="code-line"><span>04</span><code>queue<Node> bfs;</code></div>
</div>
<div class="board-meta">
<div><span>Topic</span><strong>STL</strong></div>
<div><span>Language</span><strong>C++</strong></div>
<div><span>Track</span><strong>GESP</strong></div>
</div>
</aside>
</section>
<section id="resources" aria-labelledby="resources-title">
<div class="section-head">
<h2 id="resources-title">学习资料</h2>
<p>所有页面都放入网站的 `/gesp/` 目录:包含 C++ 指针专题、文件读写专题、Daniel 编程宝典、错题训练、STL 手册、STL 动画演示、二分答案算法专题,以及二维矩阵邻域模拟题。</p>
</div>
<div class="resource-grid">
<a class="resource-card" href="/gesp/pointers.html" target="_blank" rel="noopener noreferrer">
<span class="tag">Pointer Practice</span>
<h3>GESP C++ 指针专题</h3>
<p>面向 GESP 四级及以上,通俗讲解地址、指针、解引用、数组与指针传参,并配套高频易错点和 20 道真题化练习。</p>
<div class="card-footer">
<span>打开指针专题</span>
<span aria-hidden="true">→</span>
</div>
</a>
<a class="resource-card" href="/gesp/file-io.html" target="_blank" rel="noopener noreferrer">
<span class="tag">File Stream</span>
<h3>GESP 4 级文件读写专题</h3>
<p>强化讲解 ifstream、ofstream、fstream、freopen 与 rdbuf,覆盖文件流状态、打开模式、5 套模板、5 道样题和 20 道专项练习。</p>
<div class="card-footer">
<span>打开文件读写专题</span>
<span aria-hidden="true">→</span>
</div>
</a>
<a class="resource-card" href="/gesp/daniel-coding-guide.html" target="_blank" rel="noopener noreferrer">
<span class="tag">Daniel Guide</span>
<h3>Daniel's 编程宝典</h3>
<p>整理 Daniel(小葵)的 GESP 编程易错点、踩坑点和做题检查步骤,适合作为考前提交前清单与错题复盘入口。</p>
<div class="card-footer">
<span>打开宝典页</span>
<span aria-hidden="true">→</span>
</div>
</a>
<a class="resource-card" href="/gesp/matrix-neighborhood-practice.html" target="_blank" rel="noopener noreferrer">
<span class="tag">Matrix Practice</span>
<h3>GESP 4 级二维矩阵邻域模拟题 10 题</h3>
<p>参考扫雷题型设计,覆盖二维矩阵、8 邻域、4 邻域、方向控制、射线阻挡和位置检测,含样例、解析与 C++ 参考代码。</p>
<div class="card-footer">
<span>打开模拟题集</span>
<span aria-hidden="true">→</span>
</div>
</a>
<a class="resource-card" href="/gesp/wrong-book/" target="_blank" rel="noopener noreferrer">
<span class="tag">Wrong Book</span>
<h3>小葵的 GESP 4 级错题训练</h3>
<p>从错题本中抽取选择题和判断题,支持全部练习、随机练习、交卷统计、答案解析和只练错题。</p>
<div class="card-footer">
<span>打开错题训练</span>
<span aria-hidden="true">→</span>
</div>
</a>
<a class="resource-card" href="/gesp/stl-animation.html" target="_blank" rel="noopener noreferrer">
<span class="tag">STL Animation</span>
<h3>GESP 考级 C++ STL 动画演示</h3>
<p>用可视化方式理解常用容器和算法的运行过程,适合在学习 STL 时对照观察步骤、状态变化和典型用法。</p>
<div class="card-footer">
<span>打开动画版</span>
<span aria-hidden="true">→</span>
</div>
</a>
<a class="resource-card" href="/gesp/stl-handbook.html" target="_blank" rel="noopener noreferrer">
<span class="tag">STL Handbook</span>
<h3>GESP 考级 C++ STL 全套手册</h3>
<p>系统整理 STL 容器、算法、适用场景和常见写法,适合作为考级复习与日常刷题时的速查资料。</p>
<div class="card-footer">
<span>打开手册版</span>
<span aria-hidden="true">→</span>
</div>
</a>
<a class="resource-card" href="/gesp/binary-search-chocolate.html" target="_blank" rel="noopener noreferrer">
<span class="tag">Binary Search</span>
<h3>二分答案:分巧克力问题</h3>
<p>用互动可视化拆解“答案范围、检查函数、左右边界收缩”的完整过程,适合作为二分答案专题入门案例。</p>
<div class="card-footer">
<span>打开算法专题</span>
<span aria-hidden="true">→</span>
</div>
</a>
</div>
</section>
<section aria-labelledby="future-title">
<div class="section-head">
<h2 id="future-title">后续可扩展</h2>
<p>这个页面先作为入口骨架,后续新增内容时只需要继续往资源区追加卡片或专题分组。</p>
</div>
<div class="future" aria-label="未来内容方向">
<div><strong>考级路线</strong>级别目标、知识点清单、复习节奏。</div>
<div><strong>算法专题</strong>排序、搜索、递推、图论基础。</div>
<div><strong>代码模板</strong>常用输入输出、容器、函数模板。</div>
<div><strong>练习资料</strong>真题、错题、讲解与扩展题。</div>
</div>
</section>
</main>
<footer class="footer">
<p>Faruto / FQuantStudio · GESP 编程学习导航</p>
</footer>
</div>
</body>
</html>