package tokyo;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
public class pro {
int s,datanumber;
String[] data=new String[160000];
String[] city=new String[24];
public static void main(String[] args) {
pro t=new pro();
}
pro(){
readx("map.csv");
for(s=1;s<24;s++){
city[s]=""+(13100+s);
}
int sx;
for(s=1;s<datanumber+1;s++){
String[] x=data[s].split(",");
String d="";
if(x.length>5)d=x[5];
int h=0;
for(sx=1;sx<24;sx++){
if(city[sx].equals(d))h=100;
}
if(h>60)System.out.println(data[s]);
}
}
void readx(String file){
String str;
BufferedReader br;
int s;
s=0;
try {
br = new BufferedReader(new InputStreamReader(new FileInputStream(file),"UTF-8"));
while((str = br.readLine()) != null) {
if(str.indexOf("p13,")>-1)s=s+1;
if(str.indexOf("p13,")>-1)data[s]=str;
}
br.close();
} catch (IOException e) {System.out.println(e);}
datanumber=s;
}
}
最終更新:2016年07月04日 14:44