import java.util.Scanner; public class Dome21 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int M = scanner.nextInt(); for (int i = 0; i < M; i++) { String str = scanner.next(); if (str.length() >= 8 && str.length() <= 16) { int count = 0; if (str.matches(".*[~!@#$%^].*")) count++; if (str.matches(".*[a-z].*")) count++; if (str.matches(".*[A-Z].*")) count++; if (str.matches(".*\\d.*")) count++; if (count>=3) System.out.println("YES"); else System.out.println("NO"); } else { System.out.println("NO"); } } } }
0.0分
0 人评分
简单的a+b (C语言代码)浏览:652 |
C语言程序设计教程(第三版)课后习题7.4 (C语言代码)浏览:606 |
最小公倍数 (C语言代码)浏览:863 |
printf基础练习2 (C语言代码)浏览:942 |
WU-链表数据求和操作 (C++代码)浏览:1316 |
C语言训练-数字母 (C语言代码)浏览:608 |
2006年春浙江省计算机等级考试二级C 编程题(2) (C语言代码)浏览:344 |
分糖果 (C语言代码)浏览:920 |
C语言程序设计教程(第三版)课后习题6.3 (C语言代码)浏览:474 |
C语言程序设计教程(第三版)课后习题7.3 (C语言代码)浏览:533 |