![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
HDU
刘da帅气
这个作者很懒,什么都没留下…
展开
-
hdu 5832 A water problem 大数取模问题 大水
大数取模问题,模拟除法,从第一个数字开始不断地对10001取模即可 #include #include #include using namespace std; char s[10000010]; int main() { int cnt = 1; while(~scanf("%s", s)){ int mod = 0; for(int原创 2016-08-16 10:41:16 · 250 阅读 · 0 评论 -
hdu 5842 Lweb and String 字符串水题
比赛的时候硬生生的写的Longest_increasing_subsequence,结果比赛完才知道原来就是个统计字母个数的。。。英语不好啊啊,GG~~~~ #include #include #include using namespace std; char s[110000]; int a[30]; int main() { int t; scanf("%d", &原创 2016-08-16 10:36:08 · 233 阅读 · 0 评论 -
hdu 1166
题目地址:敌兵布阵 按照胡浩版的线段树代码写的 #include #include #include #include #include using namespace std; #define lson l, mid, rt<<1 //直接定义子节点,因为每次都要用到,所以直接定义一个很方便 #define rson mid+1, r, rt<<1|1 const int M原创 2017-02-21 16:52:39 · 314 阅读 · 0 评论 -
hdu 1164 Eddy's research I 打印素数表
Eddy's research I Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 9710 Accepted Submission(s): 5989 Problem Description Eddy's i原创 2017-02-21 14:43:50 · 352 阅读 · 0 评论 -
字典树的题目 找了个时间刷了一点字典树的题目
http://acm.sdut.edu.cn/onlinejudge2/index.php/Home/Contest/contestproblem/cid/2009/pid/2828 #include #include #include #include #include using namespace std; struct node { int v; node原创 2017-04-26 09:24:58 · 1225 阅读 · 2 评论