(AB)^n=A*(BA)^(n-1)^B
Fast Matrix Calculation
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)
Total Submission(s): 576 Accepted Submission(s): 297...
分类:
其他好文 时间:
2014-08-20 22:43:43
阅读次数:
201
递归语法翻译。。。
Emmet
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)
Total Submission(s): 138 Accepted Submission(s): 44
Problem Description
For ev...
分类:
其他好文 时间:
2014-08-20 02:43:05
阅读次数:
326
枚举。。。
Improving the GPA
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)
Total Submission(s): 158 Accepted Submission(s): 126
Problem Description
...
分类:
其他好文 时间:
2014-08-19 22:34:15
阅读次数:
314
明明扫一遍的题目,比赛的时候居然用线段树。。。TLE 5发。。。
Killing Monsters
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)
Total Submission(s): 225 Accepted Submission(s): 128
...
分类:
其他好文 时间:
2014-08-19 20:56:55
阅读次数:
310
题意:。。
水题
代码:
#include
#include
#include
using namespace std;
int s[10];
int ans[1000005] = {0, 1};
int is(int n){
//n = 62;
int pre = 0, cur = 0, i;
while(n){
pre = cur;
...
分类:
其他好文 时间:
2014-08-19 20:52:15
阅读次数:
206
#include
#include
#include
using namespace std;
const int N = 101000;
int a[N];
struct Node
{
int l,r,num;
};
Node tree[4*N];
void build(int l,int r,int o)
{
tree[o].l=l,tree[o].r=r;
t...
分类:
其他好文 时间:
2014-08-19 11:03:14
阅读次数:
222
题目地址:http://acm.hdu.edu.cn/showproblem.php?pid=2064汉诺塔变种,只能从中间专业,递归关系为:f(n)=3*f(n-1)+2. 1 //汉诺塔变种,只能从中间转移 2 //11485816 2014-08-19 08:44:47 Accep...
分类:
其他好文 时间:
2014-08-19 09:16:54
阅读次数:
178
斜率优化DP
Print Article
Time Limit: 9000/3000 MS (Java/Others) Memory Limit: 131072/65536 K (Java/Others)
Total Submission(s): 5519 Accepted Submission(s): 1707
Problem Descriptio...
分类:
其他好文 时间:
2014-08-18 22:09:43
阅读次数:
322
题意:不解释(这题是学数据结构必做的)
以前自学数据结构的时候,只是会顺序表来模拟栈。最近简单学习了stack头文件 又来做了一遍(还是以前的味道)
代码:
#include
#include
#include
using std::stack;
stack s;
char s1[100], s2[100];
int vis[10];
char stac[100];
int main...
分类:
其他好文 时间:
2014-08-18 22:09:23
阅读次数:
283
题目地址:http://acm.hdu.edu.cn/showproblem.php?pid=3082字符串处理+并联电阻公式 1 //11481261 2014-08-18 16:52:47 Accepted 3082 0MS 384K 733 B G++...
分类:
其他好文 时间:
2014-08-18 18:02:32
阅读次数:
288