**元素选择器题目我就不粘贴了,大家都能看到原题。
下面是我的代码,只得了70分,不知道哪里出了问题,给定实例我试过了,没有问题,但并未发现自己的问题出在哪里,希望大家能帮我看看,不胜感激!**
```java
package com.ww.ccf;
import java.util.Scanner;
/**
* encoding: UTF-8
* Date: 2018年11月19日
* Description: 元素选择器
*/
public class ItemSelect {
static class Search {
int textLines;
String[] text;
StringBuilder[] result;
boolean flag;
public Search(int textLines, String[] text, StringBuilder[] result) {
this.textLines = textLines;
this.text = text;
this.result = result;
this.flag = true;
}
//递归匹配 从文档何处开始 选择器数组 选择器哪一项 当前匹配项 选择器总长
public boolean find(int start,String[] info,int num,int i,int maxDeep) {
if(num
Copyright: 采用 知识共享署名4.0 国际许可协议进行许可