上一页 1 2 3 4 5 6 ··· 17 下一页
题目//做起来很艰辛,总结起来很简单。。。//注意步行速度可能比车的速度快。。。。//推公式要仔细,,,,//一道对我来说很搞脑子的数学题,,,,,//车先送第一个人上路,第二个人步行;中途第一个人下车步行,车回去接第二个人直接到终点//L:第一个人步行的路程;//T:总时间//(c-L)*a/b+... Read More
posted @ 2014-09-22 23:30 laiba2004 Views(169) Comments(0) Diggs(0) Edit
题目参考了网页:http://www.xue163.com/exploit/180/1802901.html//看了题解,抄了一遍,眼熟一下,增加一点熟练度//dp[i][j]表示是前i个数选出j段的最大值,//显然有不选这个数,和考虑这个数的两种情况。//而考虑这个数的话,因为连续性也只会增加以这... Read More
posted @ 2014-09-22 21:25 laiba2004 Views(118) Comments(0) Diggs(0) Edit
题目//一道简单的广搜水题#include#include#include#include#includeusing namespace std;struct tt{ int x,y;};char mp[310][310];int vis[310][310];//看了题解,发现只有4个方向,而... Read More
posted @ 2014-09-21 21:41 laiba2004 Views(177) Comments(0) Diggs(0) Edit
题目这是传说中的深搜吗。。。。不确定,,,,貌似更加像是模拟,,,,//我要做深搜题目拉//实际上还是模拟#include#include#include#include#include#includeusing namespace std;int ans;char a[20];__int64 n;... Read More
posted @ 2014-09-19 22:28 laiba2004 Views(125) Comments(0) Diggs(0) Edit
题目参考了别人找的规律再理解/*8=1+1+1+1+1+1+1+1+1 18=1+1+1+1+1+1+1+2 2 38=1+1+1+1+2+2 8=1+1+1+1+4 4 58=1+1+2+2+2 8=1... Read More
posted @ 2014-09-18 22:05 laiba2004 Views(117) Comments(0) Diggs(0) Edit
题目参考了别人的博客,百度来的博客#include#include#include#include#include#includeusing namespace std;//暴力//a ≤ a1; b ≤ b1int main(){ __int64 n,a,b; scanf("%I64d... Read More
posted @ 2014-09-17 19:36 laiba2004 Views(164) Comments(0) Diggs(0) Edit
题目以下思路参考自discuss:http://poj.org/showmessage?message_id=176353/*我的思路:1.将长串数分成一个个部分,每个部分是从1到x的无重复的数字序列2.每个序列比前一个序列多的位数是他的最后一个数的位数,如12345678910比123456789... Read More
posted @ 2014-09-15 19:39 laiba2004 Views(124) Comments(0) Diggs(0) Edit
#include#include#include#includeusing namespace std;int main(){ double n,p; while(scanf("%lf%lf",&n,&p)!=EOF) printf("%.0lf\n",pow(p,1.0/... Read More
posted @ 2014-09-13 22:15 laiba2004 Views(110) Comments(0) Diggs(0) Edit
题目参考:http://blog.csdn.net/xiefubao/article/details/24934617题意:给两个字符串,求一个最短的子串。使得这个子串在两个字符串中出现的次数都等于1.出现的定义为:可以重叠的出现。解法:后缀数组的应用。从小枚举长度。如果一个长度len合法的话:则一... Read More
posted @ 2014-09-11 09:02 laiba2004 Views(276) Comments(0) Diggs(0) Edit
题目http://kicd.blog.163.com/blog/static/126961911200910168335852/根据里面的例子,就可以很简单的写出来了,虽然我现在还是不是很理解为什么“是下一分钟,故要加上1.”?好吧,先写着,有事没事想一想,也许时间长了就明白了。别的人解释很棒:(虽... Read More
posted @ 2014-09-06 22:12 laiba2004 Views(103) Comments(0) Diggs(0) Edit
上一页 1 2 3 4 5 6 ··· 17 下一页