毎日のアルゴリズムの練習のかっこのペア
1043 ワード
package myjava;
import java.util.ArrayList;
import java.util.Scanner;
/**
* @author wang:
* @version :2016 8 30 8:15:06
*
*
, , 。
N(0 shuju = new ArrayList();
ArrayList panduan = new ArrayList();
int count = san.nextInt();
while(count<0||count>100){
System.out.println(" 0 100");
count = san.nextInt();
}
System.out.println(" "+count+" ");
for(int i =1;i<=count;i++){
String temp =san.next();
shuju.add(temp);
char[] chars = temp.toCharArray();
panduan.add(panduan(chars));
}
for(int a= 0;a
スタックの書き方を見てから更新します