摘要:
void addedge(long long from,long long to,long long dis)//入边链式前向星 { num_edge++;//编号 edge[num_edge].next=head[from];//把next值改为此边编号 edge[num_edge].to=to; 阅读全文
摘要:
Practice link: https://codeforces.ml/contest/1395 A. Boboniu Likes to Color Balls 思路:要构成回文,就要至少有三个颜色的数量是偶数,那么只需要判断两种情况,就是一个都不减的情况和 r g b 三种颜色减一,w 加一时的 阅读全文
摘要:
Practice link: https://vjudge.net/problem/HDU-6808 题意:给你有 x 和 t 组成的点,表示某个人在 t 时刻位置为 x,问你至少有几个人。 思路:因为每个人可以跑的方向不确定,因此一个点可以得到两条直线,那么题意就变成了最少需要几条直线可以覆盖所有 阅读全文
摘要:
Practice link: https://vjudge.net/problem/HDU-6763 题目描述 Problem Description There are n cities and m bidirectional roads in Byteland. These cities are 阅读全文
摘要:
Parctice link: https://vjudge.net/problem/HDU-6795 Problem Description There are n members in our ACM club. Little W wants to select three persons fro 阅读全文
摘要:
solve: 5/13 Practice link:https://vjudge.net/contest/388613#overview A - Adrien and Austin 题意:给你 n 个石头,编号从1~n,有两个人,每个人每次操作只能从石头中取 1~k 个连续编号的石头,最后不能取的一 阅读全文