-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
1109 lines (685 loc) · 45.1 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
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html theme="dark" showBanner="true" hasBanner="true" >
<link href="https://cdn.staticfile.org/font-awesome/6.4.2/css/fontawesome.min.css" rel="stylesheet">
<link href="https://cdn.staticfile.org/font-awesome/6.4.2/css/brands.min.css" rel="stylesheet">
<link href="https://cdn.staticfile.org/font-awesome/6.4.2/css/solid.min.css" rel="stylesheet">
<script src="/js/color.global.min.js" ></script>
<script src="/js/load-settings.js" ></script>
<head>
<meta charset="utf-8">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=true"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'true');
</script>
<!-- End Google Analytics -->
<title>2005ZHW's Blog</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="preload" href="/css/fonts/Roboto-Regular.ttf" as="font" type="font/ttf" crossorigin="anonymous">
<link rel="preload" href="/css/fonts/Roboto-Bold.ttf" as="font" type="font/ttf" crossorigin="anonymous">
<meta property="og:type" content="website">
<meta property="og:title" content="2005ZHW's Blog">
<meta property="og:url" content="http://2005zhw.github.io/index.html">
<meta property="og:site_name" content="2005ZHW's Blog">
<meta property="og:locale" content="zh_CN">
<meta property="article:author" content="Hervey">
<meta name="twitter:card" content="summary">
<link rel="alternate" href="/atom.xml" title="2005ZHW's Blog" type="application/atom+xml">
<link rel="icon" media="(prefers-color-scheme: light)" href="/images/favicon-light-32.png" sizes="32x32">
<link rel="icon" media="(prefers-color-scheme: light)" href="/images/favicon-light-128.png" sizes="128x128">
<link rel="icon" media="(prefers-color-scheme: light)" href="/images/favicon-light-180.png" sizes="180x180">
<link rel="icon" media="(prefers-color-scheme: light)" href="/images/favicon-light-192.png" sizes="192x192">
<link rel="icon" media="(prefers-color-scheme: dark)" href="/images/favicon-dark-32.png" sizes="32x32">
<link rel="icon" media="(prefers-color-scheme: dark)" href="/images/favicon-dark-128.png" sizes="128x128">
<link rel="icon" media="(prefers-color-scheme: dark)" href="/images/favicon-dark-180.png" sizes="180x180">
<link rel="icon" media="(prefers-color-scheme: dark)" href="/images/favicon-dark-192.png" sizes="192x192">
<link rel="stylesheet" href="/css/style.css">
<meta name="generator" content="Hexo 7.1.1"><link href="https://cdn.bootcss.com/KaTeX/0.11.1/katex.min.css" rel="stylesheet" /></head>
<body>
<div id="banner" class=" is_home ">
<img src="/assets/banner.png" itemprop="image">
<div id="banner-dim"></div>
</div>
<div id="main-grid" class=" ">
<div id="nav" class=" is_home " >
<navbar id="navbar">
<nav id="title-nav">
<a href="/">
<div id="vivia-logo">
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
</div>
<div>2005ZHW's Blog </div>
</a>
</nav>
<nav id="main-nav">
<a class="main-nav-link" href="/">Home</a>
<a class="main-nav-link" href="/archives">Archives</a>
<a class="main-nav-link" href="/about">About</a>
</nav>
<nav id="sub-nav">
<a id="theme-btn" class="nav-icon">
<span class="light-mode-icon"><svg xmlns="http://www.w3.org/2000/svg" height="20" viewBox="0 -960 960 960" width="20"><path d="M438.5-829.913v-48q0-17.452 11.963-29.476 11.964-12.024 29.326-12.024 17.363 0 29.537 12.024t12.174 29.476v48q0 17.452-11.963 29.476-11.964 12.024-29.326 12.024-17.363 0-29.537-12.024T438.5-829.913Zm0 747.826v-48q0-17.452 11.963-29.476 11.964-12.024 29.326-12.024 17.363 0 29.537 12.024t12.174 29.476v48q0 17.452-11.963 29.476-11.964 12.024-29.326 12.024-17.363 0-29.537-12.024T438.5-82.087ZM877.913-438.5h-48q-17.452 0-29.476-11.963-12.024-11.964-12.024-29.326 0-17.363 12.024-29.537t29.476-12.174h48q17.452 0 29.476 11.963 12.024 11.964 12.024 29.326 0 17.363-12.024 29.537T877.913-438.5Zm-747.826 0h-48q-17.452 0-29.476-11.963-12.024-11.964-12.024-29.326 0-17.363 12.024-29.537T82.087-521.5h48q17.452 0 29.476 11.963 12.024 11.964 12.024 29.326 0 17.363-12.024 29.537T130.087-438.5Zm660.174-290.87-34.239 32q-12.913 12.674-29.565 12.174-16.653-.5-29.327-13.174-12.674-12.673-12.554-28.826.12-16.152 12.794-28.826l33-35q12.913-12.674 30.454-12.674t30.163 12.847q12.709 12.846 12.328 30.826-.38 17.98-13.054 30.653ZM262.63-203.978l-32 34q-12.913 12.674-30.454 12.674t-30.163-12.847q-12.709-12.846-12.328-30.826.38-17.98 13.054-30.653l33.239-31q12.913-12.674 29.565-12.174 16.653.5 29.327 13.174 12.674 12.673 12.554 28.826-.12 16.152-12.794 28.826Zm466.74 33.239-32-33.239q-12.674-12.913-12.174-29.565.5-16.653 13.174-29.327 12.673-12.674 28.826-13.054 16.152-.38 28.826 12.294l35 33q12.674 12.913 12.674 30.454t-12.847 30.163q-12.846 12.709-30.826 12.328-17.98-.38-30.653-13.054ZM203.978-697.37l-34-33q-12.674-12.913-13.174-29.945-.5-17.033 12.174-29.707t31.326-13.293q18.653-.62 31.326 13.054l32 34.239q11.674 12.913 11.174 29.565-.5 16.653-13.174 29.327-12.673 12.674-28.826 12.554-16.152-.12-28.826-12.794ZM480-240q-100 0-170-70t-70-170q0-100 70-170t170-70q100 0 170 70t70 170q0 100-70 170t-170 70Zm-.247-82q65.703 0 111.475-46.272Q637-414.544 637-480.247t-45.525-111.228Q545.95-637 480.247-637t-111.475 45.525Q323-545.95 323-480.247t45.525 111.975Q414.05-322 479.753-322ZM481-481Z"/></svg></span>
<span class="dark-mode-icon"><svg xmlns="http://www.w3.org/2000/svg" height="20" viewBox="0 -960 960 960" width="20"><path d="M480.239-116.413q-152.63 0-258.228-105.478Q116.413-327.37 116.413-480q0-130.935 77.739-227.435t206.304-125.043q43.022-9.631 63.87 10.869t3.478 62.805q-8.891 22.043-14.315 44.463-5.424 22.42-5.424 46.689 0 91.694 64.326 155.879 64.325 64.186 156.218 64.186 24.369 0 46.978-4.946 22.609-4.945 44.413-14.076 42.826-17.369 62.967 1.142 20.142 18.511 10.511 61.054Q807.174-280 712.63-198.206q-94.543 81.793-232.391 81.793Zm0-95q79.783 0 143.337-40.217 63.554-40.218 95.793-108.283-15.608 4.044-31.097 5.326-15.49 1.283-31.859.805-123.706-4.066-210.777-90.539-87.071-86.473-91.614-212.092-.24-16.369.923-31.978 1.164-15.609 5.446-30.978-67.826 32.478-108.282 96.152Q211.652-559.543 211.652-480q0 111.929 78.329 190.258 78.329 78.329 190.258 78.329ZM466.13-465.891Z"/></svg></span>
</a>
<a id="nav-rss-link" class="nav-icon mobile-hide" href="/atom.xml" title="RSS 订阅">
<svg xmlns="http://www.w3.org/2000/svg" height="20" viewBox="0 -960 960 960" width="20"><path d="M198-120q-25.846 0-44.23-18.384-18.384-18.385-18.384-44.23 0-25.846 18.384-44.23 18.384-18.385 44.23-18.385 25.846 0 44.23 18.385 18.384 18.384 18.384 44.23 0 25.845-18.384 44.23Q223.846-120 198-120Zm538.385 0q-18.846 0-32.923-13.769-14.076-13.769-15.922-33.23-8.692-100.616-51.077-188.654-42.385-88.039-109.885-155.539-67.5-67.501-155.539-109.885Q283-663.462 182.385-672.154q-19.461-1.846-33.23-16.23-13.769-14.385-13.769-33.846t14.076-32.922q14.077-13.461 32.923-12.23 120.076 8.692 226.038 58.768 105.961 50.077 185.73 129.846 79.769 79.769 129.846 185.731 50.077 105.961 58.769 226.038 1.231 18.846-12.538 32.922Q756.461-120 736.385-120Zm-252 0q-18.231 0-32.423-13.461t-18.653-33.538Q418.155-264.23 348.886-333.5q-69.27-69.27-166.501-84.423-20.077-4.462-33.538-18.961-13.461-14.5-13.461-33.346 0-19.076 13.884-33.23 13.884-14.153 33.115-10.922 136.769 15.384 234.384 112.999 97.615 97.615 112.999 234.384 3.231 19.23-10.538 33.115Q505.461-120 484.385-120Z"/></svg>
</a>
<div id="nav-menu-btn" class="nav-icon">
<svg xmlns="http://www.w3.org/2000/svg" height="20" viewBox="0 -960 960 960" width="20"><path d="M177.37-252.282q-17.453 0-29.477-11.964-12.024-11.963-12.024-29.326t12.024-29.537q12.024-12.174 29.477-12.174h605.26q17.453 0 29.477 11.964 12.024 11.963 12.024 29.326t-12.024 29.537q-12.024 12.174-29.477 12.174H177.37Zm0-186.218q-17.453 0-29.477-11.963-12.024-11.964-12.024-29.326 0-17.363 12.024-29.537T177.37-521.5h605.26q17.453 0 29.477 11.963 12.024 11.964 12.024 29.326 0 17.363-12.024 29.537T782.63-438.5H177.37Zm0-186.217q-17.453 0-29.477-11.964-12.024-11.963-12.024-29.326t12.024-29.537q12.024-12.174 29.477-12.174h605.26q17.453 0 29.477 11.964 12.024 11.963 12.024 29.326t-12.024 29.537q-12.024 12.174-29.477 12.174H177.37Z"/></svg>
</div>
</nav>
</navbar>
<div id="nav-dropdown" class="hidden">
<div id="dropdown-link-list">
<a class="nav-dropdown-link" href="/">Home</a>
<a class="nav-dropdown-link" href="/archives">Archives</a>
<a class="nav-dropdown-link" href="/about">About</a>
<a class="nav-dropdown-link" href="/atom.xml" title="RSS 订阅">RSS</a>
</div>
</div>
<script>
let dropdownBtn = document.getElementById("nav-menu-btn");
let dropdownEle = document.getElementById("nav-dropdown");
dropdownBtn.onclick = function() {
dropdownEle.classList.toggle("hidden");
}
</script>
</div>
<div id="sidebar-wrapper">
<sidebar id="sidebar">
<div class="widget-wrap">
<div class="info-card">
<div class="avatar">
<div class="img-dim"></div>
</div>
<div class="info">
<div class="username">2005ZHW </div>
<div class="dot"></div>
<div class="subtitle">A ZJUT ACMer </div>
<div class="link-list">
<a class="link-btn" target="_blank" rel="noopener" href="https://github.com/2005ZHW" title="GitHub"><i class="fa-brands fa-github"></i></a>
</div>
</div>
</div>
</div>
<div class="sticky">
<div class="widget-wrap">
<div class="widget">
<h3 class="widget-title">分类</h3>
<div class="category-box">
<a class="category-link" href="/categories/%E7%AE%97%E6%B3%95/">
算法
<div class="category-count">5</div>
</a>
<div class="children"><div class="category-box">
<a class="category-link" href="/categories/%E7%AE%97%E6%B3%95/%E5%9B%BE%E8%AE%BA/">
图论
<div class="category-count">3</div>
</a>
</div></div>
<a class="category-link" href="/categories/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/">
数据结构
<div class="category-count">1</div>
</a>
<a class="category-link" href="/categories/%E9%A2%98%E8%A7%A3/">
题解
<div class="category-count">5</div>
</a>
<div class="children"><div class="category-box">
<a class="category-link" href="/categories/%E9%A2%98%E8%A7%A3/USACO/">
USACO
<div class="category-count">5</div>
</a>
</div></div></div>
</div>
</div>
<div class="widget-wrap">
<div class="widget">
<h3 class="widget-title">标签</h3>
<ul class="widget-tag-list" itemprop="keywords"><li class="widget-tag-list-item"><a class="widget-tag-list-link" href="/tags/Bellman-Ford/" rel="tag">Bellman-Ford</a></li><li class="widget-tag-list-item"><a class="widget-tag-list-link" href="/tags/CDQ%E5%88%86%E6%B2%BB/" rel="tag">CDQ分治</a></li><li class="widget-tag-list-item"><a class="widget-tag-list-link" href="/tags/Dijkstra/" rel="tag">Dijkstra</a></li><li class="widget-tag-list-item"><a class="widget-tag-list-link" href="/tags/Floyd-Warshall/" rel="tag">Floyd-Warshall</a></li><li class="widget-tag-list-item"><a class="widget-tag-list-link" href="/tags/Kruskal/" rel="tag">Kruskal</a></li><li class="widget-tag-list-item"><a class="widget-tag-list-link" href="/tags/Prim/" rel="tag">Prim</a></li><li class="widget-tag-list-item"><a class="widget-tag-list-link" href="/tags/RMQ/" rel="tag">RMQ</a></li><li class="widget-tag-list-item"><a class="widget-tag-list-link" href="/tags/SPFA/" rel="tag">SPFA</a></li><li class="widget-tag-list-item"><a class="widget-tag-list-link" href="/tags/The-Method-of-Four-Russians/" rel="tag">The Method of Four Russians</a></li><li class="widget-tag-list-item"><a class="widget-tag-list-link" href="/tags/Trie/" rel="tag">Trie</a></li><li class="widget-tag-list-item"><a class="widget-tag-list-link" href="/tags/%E5%88%86%E6%B2%BB/" rel="tag">分治</a></li><li class="widget-tag-list-item"><a class="widget-tag-list-link" href="/tags/%E5%AD%97%E7%AC%A6%E4%B8%B2/" rel="tag">字符串</a></li><li class="widget-tag-list-item"><a class="widget-tag-list-link" href="/tags/%E5%B7%AE%E5%88%86/" rel="tag">差分</a></li><li class="widget-tag-list-item"><a class="widget-tag-list-link" href="/tags/%E5%B9%BF%E5%BA%A6%E4%BC%98%E5%85%88%E6%90%9C%E7%B4%A2/" rel="tag">广度优先搜索</a></li><li class="widget-tag-list-item"><a class="widget-tag-list-link" href="/tags/%E5%BD%92%E5%B9%B6%E6%8E%92%E5%BA%8F/" rel="tag">归并排序</a></li><li class="widget-tag-list-item"><a class="widget-tag-list-link" href="/tags/%E6%82%AC%E7%BA%BF%E6%B3%95/" rel="tag">悬线法</a></li><li class="widget-tag-list-item"><a class="widget-tag-list-link" href="/tags/%E6%90%9C%E7%B4%A2/" rel="tag">搜索</a></li><li class="widget-tag-list-item"><a class="widget-tag-list-link" href="/tags/%E6%9C%80%E8%BF%91%E5%85%AC%E5%85%B1%E7%A5%96%E5%85%88-LCA/" rel="tag">最近公共祖先(LCA)</a></li><li class="widget-tag-list-item"><a class="widget-tag-list-link" href="/tags/%E6%9D%83%E5%80%BC%E6%A0%91%E7%8A%B6%E6%95%B0%E7%BB%84/" rel="tag">权值树状数组</a></li><li class="widget-tag-list-item"><a class="widget-tag-list-link" href="/tags/%E6%9D%83%E5%80%BC%E7%BA%BF%E6%AE%B5%E6%A0%91/" rel="tag">权值线段树</a></li><li class="widget-tag-list-item"><a class="widget-tag-list-link" href="/tags/%E6%A0%91%E7%8A%B6%E6%95%B0%E7%BB%84/" rel="tag">树状数组</a></li><li class="widget-tag-list-item"><a class="widget-tag-list-link" href="/tags/%E6%A0%91%E7%9A%84%E7%9B%B4%E5%BE%84/" rel="tag">树的直径</a></li><li class="widget-tag-list-item"><a class="widget-tag-list-link" href="/tags/%E6%A0%91%E7%9A%84%E9%87%8D%E5%BF%83/" rel="tag">树的重心</a></li><li class="widget-tag-list-item"><a class="widget-tag-list-link" href="/tags/%E6%A0%91%E9%93%BE%E5%89%96%E5%88%86/" rel="tag">树链剖分</a></li><li class="widget-tag-list-item"><a class="widget-tag-list-link" href="/tags/%E6%B4%AA%E6%B0%B4%E5%A1%AB%E5%85%85/" rel="tag">洪水填充</a></li><li class="widget-tag-list-item"><a class="widget-tag-list-link" href="/tags/%E7%A6%BB%E6%95%A3%E5%8C%96/" rel="tag">离散化</a></li><li class="widget-tag-list-item"><a class="widget-tag-list-link" href="/tags/%E7%AC%9B%E5%8D%A1%E5%B0%94%E6%A0%91/" rel="tag">笛卡尔树</a></li><li class="widget-tag-list-item"><a class="widget-tag-list-link" href="/tags/%E7%BA%BF%E6%AE%B5%E6%A0%91/" rel="tag">线段树</a></li><li class="widget-tag-list-item"><a class="widget-tag-list-link" href="/tags/%E8%B4%AA%E5%BF%83/" rel="tag">贪心</a></li><li class="widget-tag-list-item"><a class="widget-tag-list-link" href="/tags/%E9%80%86%E5%BA%8F%E5%AF%B9/" rel="tag">逆序对</a></li><li class="widget-tag-list-item"><a class="widget-tag-list-link" href="/tags/%E9%9A%9C%E7%A2%8D%E7%82%B9%E6%B3%95/" rel="tag">障碍点法</a></li></ul>
</div>
</div>
<div class="widget-wrap">
<div class="widget">
<h3 class="widget-title">归档</h3>
<a class="archive-link" href="/archives/2024/02 ">
二月 2024
<div class="archive-count">4 </div>
</a>
<a class="archive-link" href="/archives/2024/01 ">
一月 2024
<div class="archive-count">7 </div>
</a>
</div>
</div>
<div class="widget-wrap">
<div class="widget">
<h3 class="widget-title">最新文章</h3>
<ul>
<a class="recent-link" href="/2024/02/07/Minimum-Spanning-Tree/" title="最小生成树" >
<div class="recent-link-text">
最小生成树
</div>
</a>
<a class="recent-link" href="/2024/02/06/Shortest-Path/" title="最短路径算法" >
<div class="recent-link-text">
最短路径算法
</div>
</a>
<a class="recent-link" href="/2024/02/03/Problems-on-the-Tree/" title="树上问题总结" >
<div class="recent-link-text">
树上问题总结
</div>
</a>
<a class="recent-link" href="/2024/02/02/The-Number-of-Inversions/" title="求逆序对数的三种方法" >
<div class="recent-link-text">
求逆序对数的三种方法
</div>
</a>
<a class="recent-link" href="/2024/01/31/USACO08DEC-Secret-Message-G/" title="[USACO08DEC] Secret Message G" >
<div class="recent-link-text">
[USACO08DEC] Secret Message G
</div>
</a>
</ul>
</div>
</div>
</div>
</sidebar>
</div>
<div id="content-body">
<article id="post-Minimum-Spanning-Tree" class="h-entry article article-type-post" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
<div class="article-inner">
<div class="article-main">
<header class="article-header">
<div class="main-title-bar">
<div class="main-title-dot"></div>
<h1 itemprop="name">
<a class="p-name article-title" href="/2024/02/07/Minimum-Spanning-Tree/">最小生成树</a>
</h1>
</div>
<div class='meta-info-bar'>
<div class="meta-info">
<time class="dt-published" datetime="2024-02-07T13:49:09.000Z" itemprop="datePublished">2024-02-07</time>
</div>
<div class="need-seperator meta-info">
<div class="meta-cate-flex">
<a class="meta-cate-link" href="/categories/%E7%AE%97%E6%B3%95/">算法</a>><a class="meta-cate-link" href="/categories/%E7%AE%97%E6%B3%95/%E5%9B%BE%E8%AE%BA/">图论</a>
</div>
</div>
<div class="wordcount need-seperator meta-info">
6.4k 词
</div>
</div>
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Kruskal/" rel="tag">Kruskal</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Prim/" rel="tag">Prim</a></li></ul>
</header>
<div class="e-content article-entry" itemprop="articleBody">
<div class="truncate-text">
0 前言
总结一些最小生成树问题的常用模板
1 Kruskal
一种简单易实现的算法,基于贪心和并查集
1.1 原理
将所有的边按照边权从小到大排序,依次遍历每条边,如果两点未联通,就在生成树中加上这条边,选取 n−1n-1n−1 条边即可连成最小生成树
1.2 代码实现
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051#include <bits/stdc++.h>using namespace std;const int N = 5e3 + 5;const int M = 2e5 + 5;int n, m;struct Edge{ int u, v, w; friend bool operator < (const Edge & x, const Edge & y) { return x.w < y.w; }} E[M];int ...
</div>
</div>
</div>
<a class="right-panel non-pic "
href="/2024/02/07/Minimum-Spanning-Tree/"
>
<i class="fa-solid fa-angle-right non-pic"></i>
</a>
</div>
</article>
<article id="post-Shortest-Path" class="h-entry article article-type-post" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
<div class="article-inner">
<div class="article-main">
<header class="article-header">
<div class="main-title-bar">
<div class="main-title-dot"></div>
<h1 itemprop="name">
<a class="p-name article-title" href="/2024/02/06/Shortest-Path/">最短路径算法</a>
</h1>
</div>
<div class='meta-info-bar'>
<div class="meta-info">
<time class="dt-published" datetime="2024-02-05T23:31:54.000Z" itemprop="datePublished">2024-02-06</time>
</div>
<div class="need-seperator meta-info">
<div class="meta-cate-flex">
<a class="meta-cate-link" href="/categories/%E7%AE%97%E6%B3%95/">算法</a>><a class="meta-cate-link" href="/categories/%E7%AE%97%E6%B3%95/%E5%9B%BE%E8%AE%BA/">图论</a>
</div>
</div>
<div class="wordcount need-seperator meta-info">
14k 词
</div>
</div>
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Bellman-Ford/" rel="tag">Bellman-Ford</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Dijkstra/" rel="tag">Dijkstra</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Floyd-Warshall/" rel="tag">Floyd-Warshall</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/SPFA/" rel="tag">SPFA</a></li></ul>
</header>
<div class="e-content article-entry" itemprop="articleBody">
<div class="truncate-text">
0 前言
总结一些最短路问题的常用模板 (这回是小坑了)
1 Floyd-Warshall - 多源最短路
基础的动态规划,经典的三重循环,最简单的最短路算法
1.1 原理
AcWing 854. Floyd求最短路
设 Fi,jF_{i,j}Fi,j 表示点 iii 到点 jjj 的最短路径,枚举中转点 kkk ,每次通过中转点更新最短路径,转移方程 Fi,j=min{Gi,j,Fi,k+Fk,j}F_{i,j} = min\left\{ G_{i,j}, F_{i,k} + F_{k,j} \right\}Fi,j=min{Gi,j,Fi,k+Fk,j} ,时间复杂度 O(N3)O(N^3)O(N3).
12345678910111213141516171819202122232425262728293031323334353637383940#include <bits/stdc++.h>using namespace std;const int N = 500 + 5;const int INF = 0x3f3f3f3f;int n, m, k;in...
</div>
</div>
</div>
<a class="right-panel non-pic "
href="/2024/02/06/Shortest-Path/"
>
<i class="fa-solid fa-angle-right non-pic"></i>
</a>
</div>
</article>
<article id="post-Problems-on-the-Tree" class="h-entry article article-type-post" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
<div class="article-inner">
<div class="article-main">
<header class="article-header">
<div class="main-title-bar">
<div class="main-title-dot"></div>
<h1 itemprop="name">
<a class="p-name article-title" href="/2024/02/03/Problems-on-the-Tree/">树上问题总结</a>
</h1>
</div>
<div class='meta-info-bar'>
<div class="meta-info">
<time class="dt-published" datetime="2024-02-03T00:06:49.000Z" itemprop="datePublished">2024-02-03</time>
</div>
<div class="need-seperator meta-info">
<div class="meta-cate-flex">
<a class="meta-cate-link" href="/categories/%E7%AE%97%E6%B3%95/">算法</a>><a class="meta-cate-link" href="/categories/%E7%AE%97%E6%B3%95/%E5%9B%BE%E8%AE%BA/">图论</a>
</div>
</div>
<div class="wordcount need-seperator meta-info">
8.1k 词
</div>
</div>
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E6%9C%80%E8%BF%91%E5%85%AC%E5%85%B1%E7%A5%96%E5%85%88-LCA/" rel="tag">最近公共祖先(LCA)</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E6%A0%91%E7%9A%84%E7%9B%B4%E5%BE%84/" rel="tag">树的直径</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E6%A0%91%E7%9A%84%E9%87%8D%E5%BF%83/" rel="tag">树的重心</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E6%A0%91%E9%93%BE%E5%89%96%E5%88%86/" rel="tag">树链剖分</a></li></ul>
</header>
<div class="e-content article-entry" itemprop="articleBody">
<div class="truncate-text">
0 前言
总结一些树上问题的常用模板 (感觉开了个大坑)
1 树的直径
1.1 树形 DP 求树的直径
设 DuD_uDu 表示从节点 uuu 出发走向以 uuu 为根的子树,能够到达的最远节点的距离,对于 uuu 的子节点 vi(1≤i≤ti)v_i(1 \leq i \leq t_i)vi(1≤i≤ti) ,有
Du=max1≤i≤tu{Dvi+edgeu,vi}D_u = \max_{1 \leq i \leq t_u}\{D_{v_i} + edge_{u, v_i}\}
Du=1≤i≤tumax{Dvi+edgeu,vi}
设 FuF_uFu 表示经过节点 uuu 的最长链的长度, 考虑 uuu 的两个节点 vi,vjv_i, v_jvi,vj,将其通过节点 uuu 连接即可,转移方程
Fu=max1≤j<i≤tu{Dvi+edgeu,vi+Dvj+edgeu,vj}F_u = \max_{1 \leq j < i \leq t_u}\{D_{v_i} + edge_{u, v_i} + D_{v_j} + edge_{u, ...
</div>
</div>
</div>
<a class="right-panel non-pic "
href="/2024/02/03/Problems-on-the-Tree/"
>
<i class="fa-solid fa-angle-right non-pic"></i>
</a>
</div>
</article>
<article id="post-The-Number-of-Inversions" class="h-entry article article-type-post" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
<div class="article-inner">
<div class="article-main">
<header class="article-header">
<div class="main-title-bar">
<div class="main-title-dot"></div>
<h1 itemprop="name">
<a class="p-name article-title" href="/2024/02/02/The-Number-of-Inversions/">求逆序对数的三种方法</a>
</h1>
</div>
<div class='meta-info-bar'>
<div class="meta-info">
<time class="dt-published" datetime="2024-02-02T03:54:08.000Z" itemprop="datePublished">2024-02-02</time>
</div>
<div class="need-seperator meta-info">
<div class="meta-cate-flex">
<a class="meta-cate-link" href="/categories/%E7%AE%97%E6%B3%95/">算法</a>
</div>
</div>
<div class="wordcount need-seperator meta-info">
3k 词
</div>
</div>
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E5%88%86%E6%B2%BB/" rel="tag">分治</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E5%BD%92%E5%B9%B6%E6%8E%92%E5%BA%8F/" rel="tag">归并排序</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E6%9D%83%E5%80%BC%E6%A0%91%E7%8A%B6%E6%95%B0%E7%BB%84/" rel="tag">权值树状数组</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E6%9D%83%E5%80%BC%E7%BA%BF%E6%AE%B5%E6%A0%91/" rel="tag">权值线段树</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E6%A0%91%E7%8A%B6%E6%95%B0%E7%BB%84/" rel="tag">树状数组</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E7%BA%BF%E6%AE%B5%E6%A0%91/" rel="tag">线段树</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E9%80%86%E5%BA%8F%E5%AF%B9/" rel="tag">逆序对</a></li></ul>
</header>
<div class="e-content article-entry" itemprop="articleBody">
<div class="truncate-text">
0 前言
总结一下三种求逆序对数的方法
1 定义
逆序对:序列 ana_nan 中,满足 i<ji < ji<j 且 ai>aja_i > a_jai>aj 的有序数对 (i,j)(i, j)(i,j).
2 算法
2.1 归并法
2.1.1 算法原理
本质就是CDQ分治,在归并排序合并的过程中处理逆序对数,计算右区间的每一位数字对已排好序的左区间的贡献
时间复杂度 O(nlogn)O(nlogn)O(nlogn).
2.1.2 代码实现
123456789101112131415161718192021222324252627282930313233343536373839404142#include <bits/stdc++.h>using namespace std;const int N = 5e5 + 5;int n;int a[N];long long mergesort(int *arr, int l, int r){ if (l == r) return 0; int mid...
</div>
</div>
</div>
<a class="right-panel non-pic "
href="/2024/02/02/The-Number-of-Inversions/"
>
<i class="fa-solid fa-angle-right non-pic"></i>
</a>
</div>
</article>
<article id="post-USACO08DEC-Secret-Message-G" class="h-entry article article-type-post" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
<div class="article-inner">
<div class="article-main">
<header class="article-header">
<div class="main-title-bar">
<div class="main-title-dot"></div>
<h1 itemprop="name">
<a class="p-name article-title" href="/2024/01/31/USACO08DEC-Secret-Message-G/">[USACO08DEC] Secret Message G</a>
</h1>
</div>
<div class='meta-info-bar'>
<div class="meta-info">
<time class="dt-published" datetime="2024-01-31T03:39:19.000Z" itemprop="datePublished">2024-01-31</time>
</div>
<div class="need-seperator meta-info">
<div class="meta-cate-flex">
<a class="meta-cate-link" href="/categories/%E9%A2%98%E8%A7%A3/">题解</a>><a class="meta-cate-link" href="/categories/%E9%A2%98%E8%A7%A3/USACO/">USACO</a>
</div>
</div>
<div class="wordcount need-seperator meta-info">
3.4k 词
</div>
</div>
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Trie/" rel="tag">Trie</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E5%AD%97%E7%AC%A6%E4%B8%B2/" rel="tag">字符串</a></li></ul>
</header>
<div class="e-content article-entry" itemprop="articleBody">
<div class="truncate-text">
题目描述
DESCRIPTION
Bessie is leading the cows in an attempt to escape! To do this, the cows are sending secret binary messages to each other.
Ever the clever counterspy, Farmer John has intercepted the first bib_ibi (1≤bi≤10,0001 \le b_i \le 10,0001≤bi≤10,000) bits of each of MMM (1≤M≤50,0001 \le M \le 50,0001≤M≤50,000) of these secret binary messages.
He has compiled a list of NNN (1≤N≤50,0001 \le N \le 50,0001≤N≤50,000) partial codewords that he thinks the cows are using. Sadly, he only kno...
</div>
</div>
</div>
<a class="right-panel non-pic "
href="/2024/01/31/USACO08DEC-Secret-Message-G/"
>
<i class="fa-solid fa-angle-right non-pic"></i>
</a>
</div>
</article>
<article id="post-USACO09OCT-Invasion-of-the-Milkweed-G" class="h-entry article article-type-post" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
<div class="article-inner">
<div class="article-main">
<header class="article-header">
<div class="main-title-bar">
<div class="main-title-dot"></div>
<h1 itemprop="name">
<a class="p-name article-title" href="/2024/01/29/USACO09OCT-Invasion-of-the-Milkweed-G/">[USACO09OCT] Invasion of the Milkweed G</a>
</h1>
</div>
<div class='meta-info-bar'>
<div class="meta-info">
<time class="dt-published" datetime="2024-01-29T05:13:55.000Z" itemprop="datePublished">2024-01-29</time>
</div>
<div class="need-seperator meta-info">
<div class="meta-cate-flex">
<a class="meta-cate-link" href="/categories/%E9%A2%98%E8%A7%A3/">题解</a>><a class="meta-cate-link" href="/categories/%E9%A2%98%E8%A7%A3/USACO/">USACO</a>
</div>
</div>
<div class="wordcount need-seperator meta-info">
3k 词
</div>
</div>
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E5%B9%BF%E5%BA%A6%E4%BC%98%E5%85%88%E6%90%9C%E7%B4%A2/" rel="tag">广度优先搜索</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E6%90%9C%E7%B4%A2/" rel="tag">搜索</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E6%B4%AA%E6%B0%B4%E5%A1%AB%E5%85%85/" rel="tag">洪水填充</a></li></ul>
</header>
<div class="e-content article-entry" itemprop="articleBody">
<div class="truncate-text">
题目描述
DESCRIPTION
Farmer John has always done his best to keep the pastures full of luscious, delicious healthy grass for the cows. He has lost the battle, though, as the evil milkweed has attained a foothold in the northwest part of his farm.
The pasture, as usual, is partitioned into a rectilinear grid of height YYY (1≤Y≤1001 \leq Y \leq 1001≤Y≤100) and width XXX (1≤X≤1001 \leq X \leq 1001≤X≤100) with (1,1)(1,1)(1,1) being in the lower left corner (i.e., arranged as a normal XXX,YYY coordina...
</div>
</div>
</div>
<a class="right-panel non-pic "
href="/2024/01/29/USACO09OCT-Invasion-of-the-Milkweed-G/"
>
<i class="fa-solid fa-angle-right non-pic"></i>
</a>
</div>
</article>
<article id="post-The-Method-of-Four-Russians" class="h-entry article article-type-post" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
<div class="article-inner">
<div class="article-main">
<header class="article-header">
<div class="main-title-bar">
<div class="main-title-dot"></div>
<h1 itemprop="name">
<a class="p-name article-title" href="/2024/01/28/The-Method-of-Four-Russians/">四毛子算法(The Method of Four Russians)</a>
</h1>
</div>
<div class='meta-info-bar'>
<div class="meta-info">
<time class="dt-published" datetime="2024-01-28T07:15:51.000Z" itemprop="datePublished">2024-01-28</time>
</div>
<div class="need-seperator meta-info">
<div class="meta-cate-flex">
<a class="meta-cate-link" href="/categories/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/">数据结构</a>
</div>
</div>
<div class="wordcount need-seperator meta-info">
2.6k 词
</div>
</div>
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/RMQ/" rel="tag">RMQ</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/The-Method-of-Four-Russians/" rel="tag">The Method of Four Russians</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E7%AC%9B%E5%8D%A1%E5%B0%94%E6%A0%91/" rel="tag">笛卡尔树</a></li></ul>
</header>
<div class="e-content article-entry" itemprop="articleBody">
<div class="truncate-text">
0 前言
说实话这东西看了一天也没有看懂,只能先贴模板了,以后再来填坑. 咕咕咕警告
1 算法原理
以上内容引用自 CSP-S 2021 第一轮 的最后一题.
2 例题&代码实现
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143#include <iostream>#include <cmath>using namespace std;const int MA...
</div>
</div>
</div>
<a class="right-panel non-pic "
href="/2024/01/28/The-Method-of-Four-Russians/"
>
<i class="fa-solid fa-angle-right non-pic"></i>
</a>
</div>
</article>
<article id="post-USACO04OPEN-MooFest-G" class="h-entry article article-type-post" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
<div class="article-inner">
<div class="article-main">
<header class="article-header">
<div class="main-title-bar">
<div class="main-title-dot"></div>
<h1 itemprop="name">
<a class="p-name article-title" href="/2024/01/27/USACO04OPEN-MooFest-G/">[USACO04OPEN] MooFest G</a>
</h1>
</div>
<div class='meta-info-bar'>
<div class="meta-info">
<time class="dt-published" datetime="2024-01-27T05:31:50.000Z" itemprop="datePublished">2024-01-27</time>
</div>
<div class="need-seperator meta-info">
<div class="meta-cate-flex">
<a class="meta-cate-link" href="/categories/%E9%A2%98%E8%A7%A3/">题解</a>><a class="meta-cate-link" href="/categories/%E9%A2%98%E8%A7%A3/USACO/">USACO</a>
</div>
</div>
<div class="wordcount need-seperator meta-info">
4.1k 词
</div>
</div>
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/CDQ%E5%88%86%E6%B2%BB/" rel="tag">CDQ分治</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E5%88%86%E6%B2%BB/" rel="tag">分治</a></li></ul>
</header>
<div class="e-content article-entry" itemprop="articleBody">
<div class="truncate-text">
题目描述
DESCRIPTION
Every year, Farmer John’s NNN (1≤N≤20,0001 \leq N \leq 20,0001≤N≤20,000) cows attend “MooFest”,a social gathering of cows from around the world. MooFest involves a variety of events including haybale stacking, fence jumping, pin the tail on the farmer, and of course, mooing. When the cows all stand in line for a particular event, they moo so loudly that the roar is practically deafening. After participating in this event year after year, some of the cows have in fact lost a b...
</div>
</div>
</div>
<a class="right-panel non-pic "
href="/2024/01/27/USACO04OPEN-MooFest-G/"
>
<i class="fa-solid fa-angle-right non-pic"></i>
</a>
</div>
</article>
<article id="post-Maximum-Subrectangle-Problem" class="h-entry article article-type-post" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
<div class="article-inner">
<div class="article-main">
<header class="article-header">
<div class="main-title-bar">
<div class="main-title-dot"></div>
<h1 itemprop="name">
<a class="p-name article-title" href="/2024/01/26/Maximum-Subrectangle-Problem/">最大子矩形问题</a>
</h1>
</div>
<div class='meta-info-bar'>
<div class="meta-info">
<time class="dt-published" datetime="2024-01-26T12:47:54.000Z" itemprop="datePublished">2024-01-26</time>
</div>
<div class="need-seperator meta-info">
<div class="meta-cate-flex">
<a class="meta-cate-link" href="/categories/%E7%AE%97%E6%B3%95/">算法</a>
</div>
</div>
<div class="wordcount need-seperator meta-info">
5.4k 词
</div>
</div>
<ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E6%82%AC%E7%BA%BF%E6%B3%95/" rel="tag">悬线法</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E9%9A%9C%E7%A2%8D%E7%82%B9%E6%B3%95/" rel="tag">障碍点法</a></li></ul>
</header>
<div class="e-content article-entry" itemprop="articleBody">
<div class="truncate-text">
0 前言
最近做到了很多关于求解最大子矩形的问题,写个博客稍微总结一下 (顺便整理一下模板)
1 一些基本定义
有效子矩形:内部不包含任何障碍点且边界与坐标轴平行的子矩形。
极大有效子矩形:不存在包含它且比它大的有效子矩形的有效子矩形。
最大(有效)子矩形:所有极大有效子矩形中最大的一个(或多个)有效子矩形。
2 两种常用的算法
算法1 基于障碍点的算法
例题1 奶牛浴场
题目描述
由于 John 建造了牛场围栏,激起了奶牛的愤怒,奶牛的产奶量急剧减少。为了讨好奶牛,John 决定在牛场中建造一个大型浴场。但是 John 的奶牛有一个奇怪的习惯,每头奶牛都必须在牛场中的一个固定的位置产奶,而奶牛显然不能在浴场中产奶,于是,John 希望所建造的浴场不覆盖这些产奶点。这回,他又要求助于 Clevow 了。你还能帮助 Clevow 吗?
John 的牛场和规划的浴场都是矩形。浴场要完全位于牛场之内,并且浴场的轮廓要与牛场的轮廓平行或者重合。浴场不能覆盖任何产奶点,但是产奶点可以位于浴场的轮廓上。
Clevow 当然希望浴场的面积尽可能大了,所以你的任务就是帮她计算浴场的最大面积。...
</div>
</div>
</div>
<a class="right-panel non-pic "
href="/2024/01/26/Maximum-Subrectangle-Problem/"
>
<i class="fa-solid fa-angle-right non-pic"></i>
</a>
</div>
</article>
<article id="post-USACO18OPEN-Out-of-Sorts-G" class="h-entry article article-type-post" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
<div class="article-inner">
<div class="article-main">
<header class="article-header">
<div class="main-title-bar">
<div class="main-title-dot"></div>
<h1 itemprop="name">
<a class="p-name article-title" href="/2024/01/25/USACO18OPEN-Out-of-Sorts-G/">[USACO18OPEN] Out of Sorts G</a>
</h1>
</div>
<div class='meta-info-bar'>
<div class="meta-info">