# EndlessCheng/codeforces-go

算法竞赛模板库 by 灵茶山艾府 💭💡🎈

Repository: https://github.com/EndlessCheng/codeforces-go
Canonical: https://ross.abutalabs.com/products/codeforces-go
Homepage: https://space.bilibili.com/206214
Language: Go
License: MIT
License Family: permissive
Topics: codeforces-solutions, codeforces-golang, codeforces, golang, leetcode-golang, competitive-programming, icpc, acm-icpc, algorithm, algorithms, leetcode, leetcode-go, codeforces-go, go, data-structure, data-structures
Last push: 2026-08-26T01:40:53+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 8, longevity 100
- inputs: {"age_days": 2536, "days_push": 8, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 8675, forks 820 (observed 2026-08-28T04:10:24.179349+00:00)

## What it is
A competitive programming template library in Go by EndlessCheng (灵茶山艾府), covering algorithms and data structures with annotated template code, explanations, and curated problem lists. It serves as both a reference for contests (Codeforces, ICPC, LeetCode) and a structured learning resource.

## Use cases
- find Go templates for segment trees and Fenwick trees
- prepare for Codeforces or ICPC contests
- study competitive programming algorithms with example problems
- copy ready-made implementations of string algorithms like KMP and suffix automaton
- learn data structures in Go
- practice LeetCode problems in Go

## When to choose
- you compete in algorithm contests using Go
- you want well-annotated, battle-tested algorithm templates with linked problems
- you need a broad catalog of data structures and algorithms in one place

## When to avoid
- you need a production-ready algorithm library with stable APIs
- you work in a language other than Go
- you want step-by-step beginner tutorials rather than reference templates

## Facets
- artifact type: learning-resource
- maturity: active
- function: developer-tools, documentation
- domain: education, programming-languages
- platform: go, cli
- tags: competitive-programming, codeforces, leetcode, algorithm-templates, data-structures, icpc, acm-icpc, copypasta, golang, algorithms

## Member repositories
- EndlessCheng/codeforces-go (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:24.179349+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:25:36.497687+00:00, confidence not recorded.
  - readme: https://github.com/EndlessCheng/codeforces-go (fetched 2026-08-28T04:10:24.179349+00:00, sha 85b7f6af1ba5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
