c++字符串简单解法 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std;int main(){ string str; int n; cin>>n; string …… 题解列表 2023年10月18日 0 点赞 0 评论 99 浏览 评分:0.0
密码(没法偷懒了,大写字母可以用isupper函数,小写字母可以用islower函数,数字可以用isdigit函数,特殊符号没法用ispunct函数) 摘要:解题思路:ispunct()检查给定字符是否是当前C语言环境中的标点符号默认的C语言环境的字符!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~分类为标点符号明显比题目要求得多了…… 题解列表 2023年12月26日 0 点赞 0 评论 86 浏览 评分:0.0
设立boolean标志,使其判断大小写、数字、特殊字符等都只判断一次 摘要:解题思路:注意事项:参考代码:import java.util.*; public class Main { public static void main(String[] args) …… 题解列表 2024年02月26日 0 点赞 0 评论 112 浏览 评分:0.0
1162密码(简单的字符分类?) 摘要:解题思路:统计字符串中是否存在三种不同字符,但是奇怪的是,我一开始按照前面字符统计的题目去做,案列虽然过了,但是后面的答案错误,我一看题目要求,它要求的特殊字符只要它列出来的那几种,其他的都不行,这也…… 题解列表 2024年07月10日 1 点赞 1 评论 140 浏览 评分:0.0
我们就要设置一个安全的密码,安全密码的检验,easy 摘要:解题思路:yixie c++的字符串基本操作注意事项:bool arr[4] = {true};只会将第一个元素设置为true;参考代码:#include <iostream> #include <…… 题解列表 2024年08月19日 0 点赞 0 评论 140 浏览 评分:0.0
1162: 密码(遍历) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int m,cnt = 0; string s, …… 题解列表 2024年09月01日 0 点赞 0 评论 124 浏览 评分:0.0
密码判断最简单的解题思路 摘要:这里我就维护一个bool数组a进行简单模拟 #include using namespace std; const int N=1e5+10; int a[N],t[N]; str…… 题解列表 2025年03月23日 0 点赞 0 评论 59 浏览 评分:0.0
密码-题解(Python代码) 摘要:```python m=int(input()) for i in range(0,m): #输入m行密码 s=input() if len(s)>=8 and len(s)=…… 题解列表 2020年04月08日 0 点赞 0 评论 832 浏览 评分:2.0
编写题解 1162: 密码(C++) 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <string> using namespace std; int main() { int …… 题解列表 2021年11月16日 0 点赞 0 评论 259 浏览 评分:4.0
【密码】 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int M,a,b,c,d,i,j; char str[60],…… 题解列表 2017年09月02日 1 点赞 2 评论 447 浏览 评分:6.0