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

相关推荐

不愿透露姓名的神秘牛友
09-17 09:40
点赞 评论 收藏
分享
09-17 19:25
已编辑
太原理工大学 游戏测试
叁六玖:公司名发我,我要这个HR带我打瓦
我的秋招日记
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务