![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
树
Seeyouer
这个作者很懒,什么都没留下…
展开
-
静态邻接表的建立
struct edge{ int end,next; }e[1000]; int head[1000],cnt=0; void add(int start,int end){//头插法,单向 e[cnt]={end,head[start]}; head[start]=cnt;//记录下标 cnt++; }原创 2017-11-29 10:42:08 · 307 阅读 · 0 评论 -
codeforces-768B Code for 1
Jon fought bravely to rescue the wildlings who were attacked by the white-walkers at Hardhome. On his arrival, Sam tells him that he wants to go to Oldtown to train at the Citadel to become a maester,原创 2017-12-03 11:16:40 · 276 阅读 · 0 评论 -
AtCoder Grand Contest 009—Tournament
题目描述 N contestants participated in a competition. The total of N−1 matches were played in a knockout tournament. For some reasons, the tournament may not be “fair” for all the contestants...原创 2018-04-24 13:20:37 · 197 阅读 · 0 评论