- 博客(18)
- 资源 (2)
- 问答 (1)
- 收藏
- 关注
原创 UVA 10106
#include #include #include using namespace std;char a[260], b[260];int result[550];void reverse(char a[]){int len = strlen(a);for (int i = 0; i {char temp = a[i];a[i] =
2014-08-29 19:15:10 342
原创 uva424
#include #include #include #include using namespace std;char c[105];int a[105];int sum[105];int main(){ memset(sum, 0, sizeof(sum)); int set = 0; w
2014-08-29 11:17:53 323
原创 八数码问题
2 6 4 1 3 7 0 5 88 1 5 7 3 6 4 0 2#include #include #include #include #include using namespace std;typedef int State[9];#define maxnsize 1000000State st[maxnsize], goal
2014-08-29 10:53:46 389
原创 UVA 409
#include #include #include #include #include #include #include using namespace std;map list;vector vec;int num[30];int n,m;string temp;char s[30];char str[30][1000];
2014-08-29 09:44:41 408
原创 10115
#include #include #include #include #include #include #include using namespace std;int n;int main(){ char c[300]; char str[300]; char sum[21][100];
2014-08-29 09:42:28 336
原创 Decode the tape
#include #include #include #include #include using namespace std;char s[20];string str;int num[] = {0, 128, 64, 32, 16, 8, 0, 4, 2, 1};int main(){ bool flag = fals
2014-08-29 09:41:29 253
原创 644
#include #include #include #include #include #include #include using namespace std;map list;vector vec;char s[100];int main(){ int cnt = 1; bool flag = fa
2014-08-29 09:40:34 392
原创 Artificial Intelligence?
#include #include #include #include using namespace std;#define m 0.001#define k 1000.0#define M 1000000.0double P, U, I;int main(){ int n; char s; char
2014-08-29 09:18:07 521
原创 537 Artificial Intelligence?
#include #include #include #include using namespace std;#define m 0.001#define k 1000.0#define M 1000000.0double P, U, I;int main(){ int n; char s; char
2014-08-29 09:17:48 359
原创 Automatic Poetry
#include #include #include using namespace std;#define maxnsize 105char s1[maxnsize];char s2[maxnsize];char s3[maxnsize];char s4[maxnsize];char s5[maxnsize];char line[maxnsize]
2014-08-29 09:14:10 307
原创 10010
#include #include #include #include using namespace std;#define maxnsize 55int n,m;char gird[maxnsize][maxnsize];int ansx, ansy;bool check(char *s){ int i,j,k,l; int
2014-08-29 09:12:01 1088
原创 Ojibwa754
提问全局题号1756添加于2009-10-29提交次数3652尝试人数2039通过人数1929评价此题共有12人评分33.3% 16.7% 8.3% 25.0% 16.7% 你的提交记录#结果时间2Accepted0
2014-08-24 20:30:13 329
原创 凸多边形定点逆时针排序
#include #include #include #include #include using namespace std;#define maxn 20000int top = 2;struct Point{ double x,y,len;}Pt[maxn],Stack[maxn],Point_A;double Cros
2014-08-09 23:28:20 1711
转载 区间DP
区间DP是一类在区间上进行动态规划的最优问题,一般是根据问题设出一个表示状态的dp,可以是二维的也可以是三维的,一般情况下为二维。然后将问题划分成两个子问题,也就是一段区间分成左右两个区间,然后将左右两个区间合并到整个区间,或者说局部最优解合并为全局最优解,然后得解。 这类DP可以用常规的for循环来写,也可以用记忆化搜索来写,个人更倾向于记忆化搜索写法,因为这种写法相当易懂,要什么
2014-08-09 20:23:59 305
原创 ZOJ 1639
#include #include #include #include #include using namespace std;map ma;int val[30];int di[2000];int n;int main(){ int p,m; string s; int ca = 1;
2014-08-04 23:52:45 394
原创 B - Big String
逆向递推#include #include #include #include using namespace std;#define LL long longLL a[100];int main(){ char s[] = "T.T^__^"; a[1] = 4; a[2] = 3; int n;
2014-08-04 23:10:19 361
原创 Dividing Stones
#include #include #include #include using namespace std;int cnt;int n,p;bool flag1 =false;setvec;//void prime()//{// cnt = 0;// Prime[cnt++] = 1;// for( int
2014-08-04 22:38:26 347
iOS app 模拟器图片显示不全
2016-01-06
TA创建的收藏夹 TA关注的收藏夹
TA关注的人