アットウィキロゴ

310 pack

class pro0310 extends Thread{
int px,py;
int score;
int m,n;
int[][] x=new int[6][6];

pro0310(){
for (m=1;m<6;m++){
for (n=1;n<6;n++){
x[m][n]=0;
}
}
px=1;
py=1;
}

public void run() {
int t;
for (t=1;t<101;t++){
px=px+1;
py=py+1;
if (px==6)px=1;
if (py==6)py=1;
x[px][py]=1;

score=0;
for (m=1;m<6;m++){
for (n=1;n<6;n++){
score=score+x[m][n];
}
}

System.out.println(score);
try {sleep(100);} catch (InterruptedException e) {System.out.println("fail");}
}

}

public static void main(String[] args){
 pro0310 th = new pro0310(); 
 th.start(); 
}

}
最終更新:2010年09月19日 02:45