摘要:
Bear and Big Brother 签到题,直接模拟就可以了。 Bear and Friendship Condition 满足只能是每个朋友圈中每个人和其他人都是朋友,这样的边数的确定的。 然后并查集求每个朋友圈大小再判断是否合法就可以啦。 #include<cstring> #includ 阅读全文
摘要:
Candy Replenishing Robot Find the Minimum Number 直接模拟 Melodious password dfs输出方案 Poles 题意:有多个仓库,只能从后面的仓库运动前面的仓库,现在要把仓库合并成k个,移动一个仓库i到另个仓库j的代价是costi*(xi 阅读全文
摘要:
A. Anton and Polyhedrons 直接统计+答案就可以了。 #include<cstdio> #include<cstring> #include<algorithm> #include<cmath> #define maxn 1000 #define LL long long us 阅读全文