アットウィキロゴ

んgんg

class pro{

String bun;
int[] z=new int[100];
String[] word=new String[100];
int[][] px=new int[100][100];
int s,sx,sp;
int n,p;

public static void main(String [] args) {
        pro test=new pro();
            }

pro(){

bun="私は猫である";

n=bun.length();

for(s=0;s<n;s++){
p=0;
if(Math.random()>0.5)p=1;
z[s]=p;
}

sx=0;
sp=0;
for(s=0;s<n-1;s++){
if(z[s]>0.5)sx=sx+1;
if(z[s]>0.5)word[sx]=bun.substring(sp,s+1);
if(z[s]>0.5)sp=s+1;
}
sx=sx+1;
word[sx]=bun.substring(sp,n);

for(s=1;s<sx+1;s++){
System.out.println(word[s]);
}

px[1][2]=1;







}

}
最終更新:2011年04月22日 02:08