蓝桥杯:打印图形蓝桥杯:打印图形标题:打印图形小明在 X 星球的城堡中发现了如下图形和文字: rank=3 * * * * * * * * *rank=5 * * * ...
分类:
其他好文 时间:
2015-04-08 00:50:40
阅读次数:
141
#include
using namespace std;
const int N = 100000;
int num[N];
int sa[N], rank[N],height[N];
int wa[N], wb[N], wv[N], wd[N]; int cmp(int *r, int a, int b, int l)
{
return r[a] == r[b] &...
分类:
编程语言 时间:
2015-04-06 12:56:23
阅读次数:
212
赤裸裸的模板题,刚开始忘记判断是否在同一字符串中了
#include
#include
#include
using namespace std;
typedef long long ll;
#define N 200010
char s1[100010],s2[100010];
int r[N];
int wa[N],wb[N],wv[N],ws[N],Rank[N],sa[N],heigh...
分类:
其他好文 时间:
2015-04-02 16:24:28
阅读次数:
117
CREATE DATABASE db_test;CREATE TABLE `tb1` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id', `rank` int(10) unsigned NOT NULL DEFAULT...
分类:
数据库 时间:
2015-04-02 16:21:10
阅读次数:
174
#include
#include
#include
#include
#include
#include
using namespace std;
typedef long long LL;
typedef pair P;
#define maxn 10000+10
int rank[maxn<<1];
int p[maxn<<1];
int n, m, R;
struct ed...
分类:
其他好文 时间:
2015-04-01 22:03:00
阅读次数:
111
n
#include
#include
#include
using namespace std;
typedef long long ll;
#define N 1005
char s[N];
int r[N];
int wa[N],wb[N],wv[N],ws[N],Rank[N],sa[N],height[N];
int cmp(int *r,int a,int b,int l){
r...
分类:
其他好文 时间:
2015-04-01 21:55:06
阅读次数:
126
POJ 2236
问在计算机坏了,修复若干,问检测两台是否能连通
#include
#include
#include
using namespace std;
const int N = 1005;
struct Point
{
int x,y;
};
Point p[N];
int repaired[N];
int pre[N],rank[N];
...
分类:
其他好文 时间:
2015-04-01 20:01:00
阅读次数:
145
今天看了rank的一篇javascript脚本控件topic,突然想总结一下一些写JS组件的方法,或者说一些不同人的不同coding style。 今天看了rank的一篇javascript脚本控件topic,突然想总结一下一些写JS组件的方法,或者说...
分类:
Web程序 时间:
2015-03-31 11:01:15
阅读次数:
172
Problem Description
曾经,Lele和他姐姐最喜欢,玩得最久的游戏就是俄罗斯方块(Tetris)了。
渐渐得,Lele发觉,玩这个游戏只需要手快而已,几乎不用经过大脑思考。
所以,Lele想出一个新的玩法。
Lele和姐姐先拿出一块长方形的棋盘,这个棋盘有些格子是不可用的,剩下的都是可用的。Lele和姐姐拿出俄罗斯方块里的正方形方块(大小为2*2的正方形方块)轮流往棋盘里放,要注意的是,放进去的正方形方块不能叠在棋盘不可用的格子上,也不能叠在已经放了的正方形方块上。
到最后,谁不能再放正...
分类:
其他好文 时间:
2015-03-30 16:26:04
阅读次数:
156
蓝桥杯:打印图形蓝桥杯:打印图形标题:打印图形小明在 X 星球的城堡中发现了如下图形和文字: rank=3*** * *rank=5*** * *** * ** * ** * * * * * *** * ** * ** * * * * * ** * ** * * * * ...
分类:
其他好文 时间:
2015-03-29 13:28:15
阅读次数:
134