会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
sola94
纵有疾风起 人生不言弃。
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
10
11
12
13
14
15
16
17
18
···
22
下一页
2015年1月26日
hdu 5143 NPY and arithmetic progression(暴力枚举)
摘要: 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
阅读(198)
评论(0)
推荐(0)
2015年1月25日
poj 2533 Longest Ordered Subsequence(最长上升子序列)
摘要: 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
阅读(155)
评论(0)
推荐(0)
hdu 2025 查找最大元素 (水)
摘要: 不明白为什么要放在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
阅读(104)
评论(0)
推荐(0)
hdu 5142 NPY and FFT(水)
摘要: 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
阅读(162)
评论(0)
推荐(0)
poj 3259 Wormholes(spfa 判环)
摘要: #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
阅读(112)
评论(0)
推荐(0)
hdu 2553 N皇后问题 (dfs 打表)
摘要: #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
阅读(109)
评论(0)
推荐(0)
hdu 1312 Red and Black(dfs)
摘要: #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
阅读(95)
评论(0)
推荐(0)
2015年1月24日
CodeForces 507C Guess Your Way Out!(二叉树)
摘要: 实在太困 题都看错先贴王大神的代码有空再做遍#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
阅读(238)
评论(0)
推荐(0)
CodeForces 507B Amr and Pins(几何 水)
摘要: #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
阅读(159)
评论(0)
推荐(0)
CodeForces 507A Amr and Music (贪心)
摘要: 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
阅读(304)
评论(0)
推荐(0)
上一页
1
···
10
11
12
13
14
15
16
17
18
···
22
下一页
公告