第一题只有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;                     }                 }             }                      }     }
点赞 评论

相关推荐

饿魔:看到在线简历了吧
点赞 评论 收藏
分享
想进开水团喝开水:哦 给我一个 就算你真拿到牛友也会为你开心的
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务