摘要: CREATE DATABASE BANK_SYSTEMON ( NAME = bank_dat, FILENAME = 'F:\bank_dat.mdf', SIZE = 10MB, MAXSIZE = 50MB, FILEGROWTH = 5MB)LOG ON( NAME = bank_log, FILENAME = 'F:\bank_log.ldf', SIZE = 5MB, MAXSIZE = 25MB, FILEGROWTH = 5MB );GOUSE BANK_SYSTEMGOCREATE TABLE customer ... 阅读全文
posted @ 2012-10-18 22:45 Sinker 阅读(237) 评论(0) 推荐(0) 编辑
摘要: /* ID:chenjiong PROG:clocks LANG:C++*/#include <cstdio>#include <string>#include <queue>#include <iostream>#include <string.h>using namespace std;typedef struct { int clock[9]; string opt;}S;S f;queue<S> q;bool vis[4][4][4][4][4][4][4][4][4];void move(S& cur,i 阅读全文
posted @ 2012-10-18 22:43 Sinker 阅读(181) 评论(0) 推荐(0) 编辑
摘要: /* ID:chenjiong PROG:barn1 LANG:C++*/#include <stdio.h>#include <string.h>#include <algorithm>using namespace std;const int MAXN = 205;int M,S,C;int p[MAXN];int l[MAXN];bool cmp(const int& x,const int& y){ return x > y;}int main(){ freopen("barn1.in","r&qu 阅读全文
posted @ 2012-10-18 22:42 Sinker 阅读(143) 评论(0) 推荐(0) 编辑
摘要: /* ID:chenjiong PROG:calfflac LANG:C++*/#include <stdio.h>#include <string.h>#include <iostream>using namespace std;char txt[20005];int len;typedef struct { int l; int r; int mid; int length;}NODE;NODE final;NODE tmp;bool is_same(char a,char b){ if ( a == b || a - b == 'A' 阅读全文
posted @ 2012-10-18 22:41 Sinker 阅读(134) 评论(0) 推荐(0) 编辑
摘要: /* ID:chenjiong PROG:milk3 LANG:C++*/#include <stdio.h>#include <string.h>#include <algorithm>using namespace std;int bucket[3];int amount[3];int ans[20];int num;bool vis_2[21];bool vis[21][21][21];int order[6][2] = {{2,1},{2,0},{1,0},{1,2},{0,1},{0,2}};bool is_empty(int No){ if ( 阅读全文
posted @ 2012-10-18 22:40 Sinker 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 深搜和回溯。关键是如何生成每种layout。有点恶心。一天内再也不想看自己写的这个代码了。有必要截个图告慰一下自己。/* ID:chenjiong PROG:packrec LANG:C++*/#include <stdio.h>#include <string.h>#include <algorithm>#include <iostream>using namespace std;int max(int a,int b){ return a > b ? a : b;}int min(int a,int b){ return a < 阅读全文
posted @ 2012-10-18 20:25 Sinker 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 吐槽->china unix真是渣渣,竟然随意删除我的文章。 阅读全文
posted @ 2012-10-18 20:19 Sinker 阅读(149) 评论(0) 推荐(0) 编辑