上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 22 下一页
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=5143题意 : 有一定数量的 1 2 3 4 要求每三个或以上数字组成等差数列 每个数字用一次 问是否能把数字都用完思路: 等差数列的可能有 1 2 3 , 2 3 4 ,1 2 3 4, 或者三个... 阅读全文
posted @ 2015-01-26 10:05 sola94 阅读(193) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=2533#include#include#include#includeusing namespace std;int num[1000+100];int dp[1000+100];int main(){ int n; int i,j;... 阅读全文
posted @ 2015-01-25 23:24 sola94 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 不明白为什么要放在dp里#include#include#include#includeusing namespace std;int main(){ char add[10]="(max)"; char str[200]; while(scanf("%s",str)!=EOF) ... 阅读全文
posted @ 2015-01-25 23:06 sola94 阅读(98) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=5142#include#include#include#include#includeusing namespace std;int bin[100];int main(){ int t,n,i,j,k; ... 阅读全文
posted @ 2015-01-25 17:24 sola94 阅读(153) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#includeusing namespace std;#define INF 100000000int u[6000],v[6000],w[6000];int first[6000],next[6000];int coun[6000]... 阅读全文
posted @ 2015-01-25 01:24 sola94 阅读(104) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;char mat[20][20];int ans[15];int n;bool ok(int x,int y){ int tx,ty; int ans[15]; int temp... 阅读全文
posted @ 2015-01-25 01:22 sola94 阅读(105) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;char mat[50][50];int n,m;int ans;int op[4][2]={0,1,0,-1,1,0,-1,0};bool ok(int x,int y){ if(0<=x... 阅读全文
posted @ 2015-01-25 01:21 sola94 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 实在太困 题都看错先贴王大神的代码有空再做遍#include #include #include #include #include #include #include using namespace std;typedef __int64 LL;LL h,n;LL now1,now2;LL ans... 阅读全文
posted @ 2015-01-24 16:06 sola94 阅读(235) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#includeusing namespace std;int main(){ double r,x,y,x1,y1; while(scanf("%lf%lf%lf%lf%lf",&r,&x,&y,&x1,&y1)!=EOF... 阅读全文
posted @ 2015-01-24 16:02 sola94 阅读(151) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/507/problem/A#include#include#include#includeusing namespace std;struct Num{ int v; int id;};Num num[100+10];int c... 阅读全文
posted @ 2015-01-24 15:59 sola94 阅读(298) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 22 下一页