
best-coder
chaojidage
我只是想多赚点币子,然后好下资源。
展开
-
hdu5776
这个就是维护一个前缀和,让前面的和molm然后,如果有相同的值出现,那就可以,但是还有一坑点,我就是这个被坑了,当vis[]=0的时候,不用判相同,一开始就要赋值给vis[0] = 1;就行了#include<cstdio>#include<algorithm>#include<cstring>using namespace std;const int MaxN = 1e5 + 10;int原创 2016-09-22 21:41:31 · 392 阅读 · 0 评论 -
hdu5777
这个吧就是xjb乱搞,不停地和他搞来搞去搞来搞去,搞出来一波事情,然后就是来干。就是这么回事。 说一下哈这么回事,明显排序加贪心,首先,牌子都是1,都加上,然后就是那个远,就用1给他代替,但是代替的个数不能超过所给的个数#include<cstdio>#include<algorithm>#include<cstring>#include<cmath>using namespace std原创 2016-09-22 21:53:00 · 354 阅读 · 0 评论 -
hdu5805&hdu5806
这是以前bc的两道题,还是有很多坑点的 这提醒我们要多考虑考虑几种情况还有就是需要多想想别的事情。 5805 思路这个就是看能不能组成4变形,但是,可能会爆longlong还有可能一条边为0,这他们是真的坑。一般人真想不到。#include<cstdio>#include<algorithm>#include<cmath>#include<iostream>using namespac原创 2016-09-21 19:17:33 · 263 阅读 · 0 评论 -
bestcoder#round88
第一个,尺取法的简单题,但是就是一开始想用阶乘的,但是想了想,怕爆long long 然后就放弃了#include<cstdio>#include<cstring>#include<algorithm>using namespace std;const int MaxN = 1e5 + 10;char a[MaxN];int main(){ //int x = fac(5);//原创 2016-10-01 21:51:07 · 117 阅读 · 0 评论