アットウィキロゴ

pr87666

class ex{
 
pref:string[]=new Array();
pref_a:string[]=new Array();
pref_b:string[]=new Array();
dir:any[]=new Array();
number_dir:number[]=new Array();
 
faststep():void{
 
this.pref[1]="北海道";
this.pref[2]="青森";
this.pref[3]="岩手";
this.pref[4]="宮城";
this.pref[5]="秋田";
this.pref[6]="山形";
this.pref[7]="福島";
this.pref[8]="茨城";
this.pref[9]="栃木";
this.pref[10]="群馬";
this.pref[11]="埼玉";
this.pref[12]="千葉";
this.pref[13]="東京";
this.pref[14]="神奈川";
this.pref[15]="新潟";
this.pref[16]="富山";
this.pref[17]="石川";
this.pref[18]="福井";
this.pref[19]="山梨";
this.pref[20]="長野";
this.pref[21]="岐阜";
this.pref[22]="静岡";
this.pref[23]="愛知";
this.pref[24]="三重";
this.pref[25]="滋賀";
this.pref[26]="京都";
this.pref[27]="大阪";
this.pref[28]="兵庫";
this.pref[29]="奈良";
this.pref[30]="和歌山";
this.pref[31]="鳥取";
this.pref[32]="島根";
this.pref[33]="岡山";
this.pref[34]="広島";
this.pref[35]="山口";
this.pref[36]="徳島";
this.pref[37]="香川";
this.pref[38]="愛媛";
this.pref[39]="高知";
this.pref[40]="福岡";
this.pref[41]="佐賀";
this.pref[42]="長崎";
this.pref[43]="熊本";
this.pref[44]="大分";
this.pref[45]="宮崎";
this.pref[46]="鹿児島";
this.pref[47]="沖縄";
 
this.pref_a[1] = "北海道";
this.pref_b[1] = "青森";
this.pref_a[2] = "岩手";
this.pref_b[2] = "青森";
this.pref_a[3] = "岩手";
this.pref_b[3] = "宮城";
this.pref_a[4] = "福島";
this.pref_b[4] = "宮城";
this.pref_a[5] = "福島";
this.pref_b[5] = "栃木";
this.pref_a[6] = "埼玉";
this.pref_b[6] = "栃木";
this.pref_a[7] = "埼玉";
this.pref_b[7] = "東京";
this.pref_a[8] = "埼玉";
this.pref_b[8] = "群馬";
this.pref_a[9] = "新潟";
this.pref_b[9] = "群馬";
this.pref_a[10] = "東京";
this.pref_b[10] = "山梨";
 this.pref_a[11] = "長野";
this.pref_b[11] = "山梨";
this.pref_a[12] = "長野";
this.pref_b[12] = "愛知";
this.pref_a[13] = "東京";
this.pref_b[13] = "茨城";
this.pref_a[14] = "東京";
this.pref_b[14] = "神奈川";
this.pref_a[15] = "静岡";
this.pref_b[15] = "神奈川";
this.pref_a[16] = "静岡";
this.pref_b[16] = "愛知";
this.pref_a[17] = "岐阜";
this.pref_b[17] = "愛知";
this.pref_a[18] = "岐阜";
this.pref_b[18] = "滋賀";
this.pref_a[19] = "京都";
this.pref_b[19] = "滋賀";
this.pref_a[20] = "京都";
this.pref_b[20] = "大阪";
this.pref_a[21] = "兵庫";
this.pref_b[21] = "大阪";
this.pref_a[22] = "兵庫";
this.pref_b[22] = "岡山";
this.pref_a[23] = "広島";
this.pref_b[23] = "岡山";
this.pref_a[24] = "広島";
this.pref_b[24] = "山口";
this.pref_a[25] = "福岡";
this.pref_b[25] = "山口"; 
this.pref_a[26] = "福岡";
this.pref_b[26] = "大分";
this.pref_a[27] = "宮崎";
this.pref_b[27] = "大分";
this.pref_a[28] = "福岡";
this.pref_b[28] = "佐賀";
this.pref_a[29] = "長崎";
this.pref_b[29] = "佐賀";
this.pref_a[30] = "熊本";
this.pref_b[30] = "佐賀";
this.pref_a[31] = "鹿児島";
this.pref_b[31] = "熊本"; 
this.pref_a[32] = "沖縄";
this.pref_b[32] = "熊本";
this.pref_a[33] = "岡山";
this.pref_b[33] = "香川"; 
this.pref_a[34] = "徳島";
this.pref_b[34] = "香川";
this.pref_a[35] = "徳島";
this.pref_b[35] = "高知";
this.pref_a[36] = "愛媛";
this.pref_b[36] = "香川";
this.pref_a[37] = "兵庫";
this.pref_b[37] = "鳥取";
this.pref_a[38] = "鳥取";
this.pref_b[38] = "島根";
this.pref_a[39] = "大阪";
this.pref_b[39] = "和歌山";
this.pref_a[40] = "大阪";
this.pref_b[40] = "奈良";
this.pref_a[41] = "愛知";
this.pref_b[41] = "三重";
this.pref_a[42] = "滋賀";
this.pref_b[42] = "福井";
this.pref_a[43] = "福井";
this.pref_b[43] = "石川";
this.pref_a[44] = "石川";
this.pref_b[44] = "富山";
this.pref_a[45] = "青森";
this.pref_b[45] = "秋田";
this.pref_a[46] = "山形";
this.pref_b[46] = "宮城";
this.pref_a[47] = "東京";
this.pref_b[47] = "千葉";
 
var p1:number;
 
for(p1=1;p1<48;p1++){
this.search(p1);
}
 
}
 
search(p1:number):void{
 
var s,sx,s1,k:number;
 
sx=0;
for(s=1;s<48;s++){
if(this.pref_a[s]==this.pref[p1])sx=sx+1;
s1=0;
for(k=1;k<48;k++){
if(this.pref[k]==this.pref_b[s])s1=k;
}
if(this.pref_a[s]==this.pref[p1])this.dir[p1][sx]=s1;
}
 
for(s=1;s<48;s++){
if(this.pref_b[s]==this.pref[p1])sx=sx+1;
s1=0;
for(k=1;k<48;k++){
if(this.pref[k]==this.pref_a[s])s1=k;
}
if(this.pref_b[s]==this.pref[p1])this.dir[p1][sx]=s1;
}
 
this.number_dir[p1]=sx;
 
 
 
 
}
 
 
}
最終更新:2015年10月04日 20:32