package red;
import tool.*;
public class pro {
int s,datanumber,number;
String[] data=new String[6000];
String[] name=new String[6000];
String[] rank=new String[6000];
String[] dic=new String[6000];
String[] link=new String[6000];
int[] point=new int[6000];
public static void main(String[] args) {
pro t=new pro();
}
pro(){
readfile sub8=new readfile();
sub8.makedata("red.csv","UTF-8");
data=sub8.data;
datanumber=sub8.datanumber;
for(s=2;s<datanumber+1;s++){
String[] x=data[s].split(",");
rank[s-1]=x[0];
name[s-1]=x[1];
link[s-1]=x[3];
}
int delta=0;
int sx;
for(s=1;s<datanumber;s++){
int h=0;
for(sx=1;sx<delta+1;sx++){
if(name[s].equals(dic[sx]))h=100;
}
if(h<60)delta=delta+1;
if(h<60)dic[delta]=name[s];
}
String[] code=new String[6000];
String[] c=new String[6000];
int tr;
for(tr=1;tr<delta+1;tr++){
bing sub3=new bing();
String n1=sub3.makedata(dic[tr]);
check sub4=new check();
String n2=sub4.makedata(n1);
point[tr]=0;
code[tr]=n1;
c[tr]=n2;
if(dic[tr].equals(n2))point[tr]=100;
System.out.println(dic[tr]+","+n2);
}
for(s=1;s<datanumber;s++){
int sxs=0;
for(sx=1;sx<delta+1;sx++){
if(name[s].equals(dic[sx]))sxs=sx;
}
System.out.println(rank[s]+","+name[s]+","+code[sxs]+","+c[sxs]+","+point[sxs]);
}
}
}
最終更新:2016年08月24日 17:25