- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 HDU 1005 找规律
题解 看到题的第一眼是想些矩阵乘法+快速幂来着…但是发现模数好小 然后发现一共最多就49种情况…于是愉快的找一下圈就行了感觉自己写的有一点复杂QAQ不过还好#include <cstdio> #include <cstring> #include <algorithm> using namespace std;int f[10][10]; int main() { //freopen
2017-11-18 22:37:47 214
原创 HDU 1004 模拟题|STL题|Hash题
5/1000传送门 题目大意:给你好多颜色 问你那种最多 思路本来想手写一个hash来着 结果gg 看来hash还需要好好的学习一下 最后用stl里的map 水过去了emmm一会先学习一下hash再做其他的题目吧QAQ#include <cstdio> #include <cstring> #include <algorithm> #include <map> #include <iostream
2017-11-15 16:56:48 290
原创 HDU1003 Max Sum[DP]
4/1000传送门 题目大意:求最大的一段区间和并输出起点和终点 如果有多个 输出第一个很简单的区间dp…但是我还是PE了好久…令人无比绝望#include <cstdio> #include <cstring> #include <algorithm> using namespace std;const int maxn=1e5+10;int f[maxn],s[maxn],a[maxn]; i
2017-11-15 16:47:41 176
原创 11.14 新的开始
题目完成数3/1000hdu1000 hdu1001 hdu1002很简单的题..但是花了好久…为什么?因为心气太高 不去看输出格式 不去看输出格式…事情不是一成不变的啊…要进步的啊
2017-11-14 21:09:37 141
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人