- 博客(0)
- 资源 (2)
- 收藏
- 关注
pku poj 2405
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
double v,d;
while(scanf("%lf%lf",&d,&v)==2 && d!=0.0 )
printf("%.3lf\n",pow((d*d*d-6*v/3.1415926536),1.0/3));
return 0;
}
2009-08-04
pku poj 2406
#include<iostream>
using namespace std;
#define M 1000000
char t[M+1],p[M+1];
int lent,lenp;
bool kmp(char *t,char *p)
{
int i,j;
for(i=lenp,j=0;i<lent;i++)
{
if(t[i]!=p[j]) return false;
if(t[i]==p[j]) j++;
if(j==lenp) j=0;
}
return true;
}
2009-08-04
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅