第一题只有60~,求大佬看看这是什么疾病~  public static void main(String[] args) {         Scanner in = new Scanner(System.in);         int size = in.nextInt();                  for(int i = 0;i < size;i++){             int num = in.nextInt();             String phone = in.next();             if(num < 11){                 System.out.println("NO");                 continue;             }else{                 for(int j = 0;j < (num-10);j++){                     char here = phone.charAt(j);                     System.out.println(here);                     if(here == '-'){                         j++;                         here = phone.charAt(j);                     }                     if(here == '8'){                         System.out.println("YES");                         continue;                     }                                          if(j == (num-11)){                         System.out.println("NO");                         break;                     }                 }             }                      }     }
点赞 评论

相关推荐

点赞 评论 收藏
转发
牛客网
牛客企业服务