class pro{
int[] code=new int[10000];
int[] year=new int[10000];
int[] month=new int[10000];
int[] day=new int[10000];
int[] oprice=new int[10000];
int[] hprice=new int[10000];
int[] lprice=new int[10000];
int[] cprice=new int[10000];
int[] rprice=new int[10000];
int[] volume=new int[10000];
int[][][] high=new int[200][13][32];
int[][][] low=new int[200][13][32];
int[][][] close=new int[200][13][32];
int[][][] open=new int[200][13][32];
int[][][] vol=new int[200][13][32];
int datanumber;
int s,y,m,d;
int ph,pl,pc,po;
int sx;
public static void main(String [] args) {
pro tset=new pro();
}
pro(){
catchdata cd=new catchdata();
cd.makedata(2204);
datanumber=cd.datanumber;
hprice=cd.hprice;
lprice=cd.lprice;
oprice=cd.oprice;
cprice=cd.cprice;
rprice=cd.rprice;
year=cd.year;
month=cd.month;
day=cd.day;
volume=cd.volume;
System.out.println(datanumber);
for(s=1;s<datanumber+1;s++){
y=year[s];
m=month[s];
d=day[s];
high[y-1900][m][d]=hprice[s];
low[y-1900][m][d]=lprice[s];
open[y-1900][m][d]=oprice[s];
close[y-1900][m][d]=cprice[s];
vol[y-1900][m][d]=cprice[s];
}
for(y=1985;y<2012;y++){
for(m=1;m<13;m++){
for(d=1;d<32;d++){
ph=high[y-1900][m][d];
pl=low[y-1900][m][d];
po=open[y-1900][m][d];
pc=close[y-1900][m][d];
if(vol[y-1900][m][d]>0)System.out.println(typea(po,ph,pl,pc));
}
}
}
}
int typea(int po,int ph,int pl,int pc){
int h,t;
t=0;
h=0;
if(pc==ph)h=h+1;
if(pl==po)h=h+1;
if(h==2)t=100;
return t;
}
}
最終更新:2011年04月16日 15:09