不知道为什么 第一题这样写只有55 public class test2 { public static void main(String[] args) { Scanner in = new Scanner(System.in); int len = in.nextInt(); int count = 0; for(int i= 0; i < len; i++){ String temp = in.nextLine(); if(isReal(temp)){ count++; } } System.out.println(count); } public static boolean isReal(String str){ if(str.length() > 10) return false; return str.matches("^[a-zA-Z]+$"); } } 有大佬说说问题 吗
点赞 评论

相关推荐

2025-11-27 01:09
电子科技大学 C++
牛客68151836...:实习不相关就靠后写吧,因为大概面试官也不感兴趣。前面区域写一点更容易引起提问的内容,比如投后台就把服务器项目提前。
简历上的经历如何包装
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务