
poj
你的目光看海
这个作者很懒,什么都没留下…
展开
-
poj 2506 Tiling
一道简单的递推题 , 主要用到了大数相加。#include <iostream>#include <algorithm>#include <cstdio>#include <cstdlib>#include <cstring>#include <math.h>#define pr printf#define sc scanfstruct bigint{ unsigned i原创 2017-04-27 16:19:59 · 230 阅读 · 0 评论 -
poj 1068
poj 1068。题意:定义一个只包含括号的字符串S(括号匹配的)有两种表示方法。 1. P : p[i] 表示S第 i 个右括号前面左括号的个数。 2. W:w[i] 表示S第 i 个右括号组成的合法表达式中 , 包含了多少括号。我的解法: 用数组记录i-1 , 与 i 的差值 , 也就是第 i-1 个右括号和 第 i 个右括号之间左括号的个数 , 记做 left_num,相应的还有个 r原创 2017-05-29 12:40:59 · 626 阅读 · 0 评论