All Projects → EndlessCheng → codeforces-go

EndlessCheng / codeforces-go

Licence: MIT license
Golang 算法竞赛模板库 | Solutions to Codeforces by Go 💭💡🎈

Programming Languages

go
31211 projects - #10 most used programming language
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to codeforces-go

category-wise-problems
contains category wise problems(data structures, competitive) of popular platforms.
Stars: ✭ 32 (-96.2%)
Mutual labels:  leetcode, competitive-programming, codeforces, codeforces-solutions
problem-solving
A platform where you can learn about algorithms and data structures. A heaven for competitive programmers. Learn here: https://reyadussalahin.github.io/problem-solving/
Stars: ✭ 33 (-96.08%)
Mutual labels:  leetcode, icpc, competitive-programming, codeforces
Leetcode Go
✅ Solutions to LeetCode by Go, 100% test coverage, runtime beats 100% / LeetCode 题解
Stars: ✭ 22,440 (+2565.08%)
Mutual labels:  leetcode, acm-icpc, leetcode-golang, leetcode-go
Competitive-programing
This repository is for encouraging people in competitive programming. And making PR's on a regular basis. Through this repo, Geeks can find solutions for various programming problems and also give your code to increase the repo.
Stars: ✭ 20 (-97.62%)
Mutual labels:  leetcode, competitive-programming, codeforces, codeforces-solutions
algorithms
🎈My notebook and solutions for 300+ problems that I solved during practice for ACM-ICPC
Stars: ✭ 26 (-96.91%)
Mutual labels:  icpc, competitive-programming, acm-icpc, codeforces-solutions
competitive-programming
Roadmap to learn data structures, algorithms, mathematics, dynamic programming to beat in competitive programming, or crack any interview.
Stars: ✭ 21 (-97.51%)
Mutual labels:  leetcode, competitive-programming, codeforces
Resources
Data Structures, Algorithms, Utility Classes for Competitive Programming, Codeforces: https://codeforces.com/profile/wleung_bvg, AtCoder: https://atcoder.jp/users/wleung_bvg, DMOJ: https://dmoj.ca/user/wleung_bvg
Stars: ✭ 34 (-95.96%)
Mutual labels:  icpc, competitive-programming, codeforces
competitive-programming
This is my collection of various algorithms and data structures that I feel that are needed frequently in competitive programming .
Stars: ✭ 30 (-96.44%)
Mutual labels:  icpc, competitive-programming, codeforces
Competitive Coding
Contains Solution for all type of Problems of Competitive Programming. Updates Frequently as any problem is solved.
Stars: ✭ 16 (-98.1%)
Mutual labels:  competitive-programming, codeforces, codeforces-solutions
Competitive Programing
个人算法刷题处
Stars: ✭ 33 (-96.08%)
Mutual labels:  leetcode, acm-icpc, codeforces
CPTH
🌟 Competitive Programming Template Headers | With documentation, CI tests and Codecov
Stars: ✭ 23 (-97.27%)
Mutual labels:  icpc, competitive-programming, acm-icpc
LearnCPP
Learn Cpp from Beginner to Advanced ✅ Practice 🎯 Code 💻 Repeat 🔁 One step solution for c++ beginners and cp enthusiasts.
Stars: ✭ 359 (-57.36%)
Mutual labels:  leetcode, competitive-programming, codeforces
ProgrammingProblems
Our answers to some programming problems,like ACM ICPC problems and others.(All problems are available on http://uva.onlinejudge.org or https://open.kattis.com) ** PLEASE STAR THE REPO IF IT 'S USEFUL :) **
Stars: ✭ 27 (-96.79%)
Mutual labels:  competitive-programming, codeforces, codeforces-solutions
competitive-programming
Solutions of some problems in competitive programming
Stars: ✭ 23 (-97.27%)
Mutual labels:  leetcode, competitive-programming, codeforces
CP
Competitive Coding
Stars: ✭ 25 (-97.03%)
Mutual labels:  leetcode, competitive-programming, codeforces
Competitive Programming
Hello Programmers 💻 , A one-stop Destination✏️✏️ for all your Competitive Programming Resources.📗📕 Refer CONTRIBUTING.md for contributions
Stars: ✭ 113 (-86.58%)
Mutual labels:  leetcode, competitive-programming, codeforces
OI-wiki
🌟 Wiki of OI / ICPC for everyone. (某大型游戏线上攻略,内含炫酷算术魔法)
Stars: ✭ 12,821 (+1422.68%)
Mutual labels:  icpc, competitive-programming, acm-icpc
cp-tool
cp-tool is an auto generator for solved problems at different online judges.
Stars: ✭ 24 (-97.15%)
Mutual labels:  competitive-programming, codeforces, codeforces-solutions
Competitive-Programming--Solution
This ia an public repository for Accepted solution of coding problems on different coding plateforms like codeforces , hackerearth, codechef , hackerrank .......
Stars: ✭ 24 (-97.15%)
Mutual labels:  competitive-programming, codeforces, codeforces-solutions
CodeForces
Python solutions to CodeForces problems
Stars: ✭ 48 (-94.3%)
Mutual labels:  competitive-programming, codeforces, codeforces-solutions

codeforces-go 💭💡🎈

算法 Algorithm

由于算法知识点繁杂,将自己学习到的算法、做过的题目分类整理好是有必要的。

一个算法模板应当涵盖以下几点:

  • 对该算法的基本介绍(核心思想、复杂度等)
  • 参考链接或书籍章节(讲的比较好的资料)
  • 模板代码(可以包含一些注释、使用说明)
  • 模板补充内容(常见题型中的额外代码、建模技巧等)
  • 相关题目链接(模板题、经典题、思维转换题等)

算法目录

如何选择题目 How to Choose Problems

Rating < 2100

这一阶段主要目标是提高对问题的观察能力。做构造题可以针对性地训练这一点。

选择难度在自己 rating 到 rating+200 范围内的构造题 (tag: constructive algorithms),按照过题人数降序做题,比如 [1700,1900] 区间的就是下面这个链接:

https://codeforces.com/problemset?order=BY_SOLVED_DESC&tags=constructive+algorithms%2C1700-1900

通过大量的构造题训练,提高观察能力,快速找到切题入口。具体见我在知乎上的这篇 回答

Rating >= 2100

这一阶段要想上分,应以 DP 为主,图论和数据结构为辅。难度范围选择同上,可以根据自己在该项的能力上下调整。

我的 Codeforces 账号:

0x3F

测试及对拍 Testing

编写一个 run(io.Reader, io.Writer) 函数来处理输入输出。这样写的理由是:

  • main 中调用 run(os.Stdin, os.Stdout) 来执行代码;
  • 测试时,将测试数据转换成 strings.Reader 当作输入,并用一个 strings.Builder 来接收输出,将这二者传入 run 中,然后就能比较输出与答案了;
  • 对拍时需要实现一个暴力算法 runAC,参数和 run 一样。通过 随机数据生成器 来生成数据,分别传入 runACrun,通过比对各自的输出,来检查 run 中的问题。

具体可以见 Codeforces 代码仓库 main,所有非交互题的代码及其对应测试全部按照上述框架实现。

例如:1439C_test.go

交互题的写法要复杂一些,需要把涉及输入输出的地方抽象成接口,详见 interactive_problem

学习资料及题目 Resources

注:由于入门经典上选了很多区域赛的题,一部分题目可以在 GYM 上找到,这样可以就可以用 Go 编程提交了。

算法竞赛入门经典(第二版)

算法竞赛入门经典训练指南

算法竞赛入门经典训练指南(升级版)

算法竞赛进阶指南

算法竞赛入门到进阶

OI Public Library(含国家队论文)

算法竞赛 (ICPC, OI, etc) 论文,课件,文档,笔记等

算法竞赛课件分享 by hzwer

算法第四版 Java 源码

数据结构和算法动态可视化

OI Wiki

CP-Algorithms

洛谷日报

All the good tutorials found for Competitive Programming

Codeforces Problem Topics

GeeksforGeeks 上的算法合集

Pepcy 模板

F0RE1GNERS 模板

【模板整合计划】目录

算法学习笔记(目录)

洛谷模板题(建议按难度筛选)

能力全面提升综合题单

Luogu Problem List

洛谷原试炼场

Links of ICPC/CCPC Contests from China

AtCoder 版《挑战程序设计竞赛》

AtCoder 版!蟻本 (初級編)

AtCoder 版!蟻本 (中級編)

AtCoder 版!蟻本 (上級編)

AtCoder 版!蟻本 (発展的トピック編)

待整理

【杂文】记一些有用的神奇网站

偶然在 GitHub 上发现的超长列表

算法竞赛训练中较难的部分

算法竞赛中可能不太会遇到的论文题

[杂谈]OI/ACM中冷门算法

https://blog.csdn.net/calabash_boy/article/details/79973483

https://github.com/zimpha/algorithmic-library

https://www.luogu.com.cn/blog/command-block/blog-suo-yin-zhi-ding-post

https://wcysai.github.io/

https://www.luogu.com.cn/blog/Troverld/index

其他 Others

My GoLand Live Templates and Postfix Completion settings

Useful Tools

GeoGebra 经典

Draw Geometry

Draw Graph

OEIS

Wolfram|Alpha

UpSolve.me

Codeforces Upsolving Helper

Contests Filter

Codeforced

Codeforces Visualizer

Codeforces Solve Tracker

Another Codeforces Solve Tracker

Rating and Difficulties

Open Codeforces Rating System

How to Interpret Contest Ratings

Codeforces: Problem Difficulties

Elo rating system

Stay Healthy

Exercises!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].