package land;
public class pro {
int[][] px=new int[9][11];
int th,d;
public static void main(String[] args) {
pro test=new pro();
}
pro(){
for(th=1;th<9;th++){
for(d=0;d<11;d++){
px[th][d]=100;
}
}
System.out.println(pr(7,80));
}
int pr(int t1,int d1){
int t2,t3;
double tx;
t2=(int)(t1/4.5)+1;
t3=t2+1;
if(t3>8)t3=1;
tx=t1/4.5-t2+1;
double p1,p2;
int d2,d3,pxs;
d2=d1/10;
d3=d2+1;
if(d3>10)d3=10;
p1=px[t2][d2]+(d3-d2)*(px[t2][d3]-px[t2][d2])/10;
p2=px[t3][d2]+(d3-d2)*(px[t3][d3]-px[t3][d2])/10;
pxs=(int)(p1+tx*(p2-p1));
return pxs;
}
}
最終更新:2014年06月06日 16:57