busters专题

【UVALive】6163 Myth Busters 类24点

传送门:【UVALive】6163 Myth Busters 题目分析: 可以使用括号,还有加减乘除,问能否用四个0~9的数凑出10。。。我了个去。。渣渣不会写拿来当模拟写了,写的人都要吐了。。。。 先处理出所有两个数和起来的情况,然后用两个数和起来的情况再加上一个数处理出所有三个数和起来的情况,最后用两个两个数或者一个三个数加一个数的继续推出四个数的,最后按照不降序保存。 这个能一

cf——B. Number Busters

Arthur and Alexander are number busters. Today they've got a competition. Arthur took a group of four integers a, b, w, x (0 ≤ b < w, 0 < x < w) and Alexander took integer с. Arthur and Alexan

UVa1313/LA2693 Ghost Busters

UVa1313/LA2693 Ghost Busters 题目链接题意分析AC代码 题目链接     本题是2002年ICPC欧洲区域赛东北欧赛区的G题 题意     有 N ( N ≤ 100 ) N(N≤100) N(N≤100)个鬼,每个鬼是中心在 ( X i , Y i , Z i ) ( 1 ≤ X i , Y i , Z i ≤ 10000 ) (X_i,Y_i,

Little Busters! — 并查集

题目链接:http://acm.buaa.edu.cn/problem/418/   代码: #include<cstdio>#include<iostream>#include<algorithm>#include<cstring>using namespace std;const int maxn = 550;const int maxe = 5050;const int