题目 1162: 密码 摘要:解题思路:使用STL的字符串进行逐个比较字符就行了注意事项: 注意使用四个标志变量flag1,flag2,flag3,flag4,最后查看这四个变量的和是否大于等于3参考代码:#include<bit…… 题解列表 2021年05月05日 0 点赞 0 评论 368 浏览 评分:9.9
1162: 密码(记概论)https://www.dotcpp.com/run/15402142 摘要:解题思路:记解题思路注意事项:参考代码:#include<iostream>using namespace std;int main(){ int m; cin>>m; string nu…… 题解列表 2024年03月13日 0 点赞 0 评论 190 浏览 评分:9.9
【密码】 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<string> using namespace std; int F(string s){ int…… 题解列表 2019年04月03日 0 点赞 0 评论 567 浏览 评分:9.9
1162: 密码(c++代码) 摘要:```cpp #include using namespace std; int main() { int n,i=0,j,b,c,d,f; string a; …… 题解列表 2022年11月13日 0 点赞 0 评论 350 浏览 评分:9.9
密码 (C++代码)初级写法,思路简单,欢迎观看~ 摘要:**提要:** ①用string字符串变量来表示输入的密码串 ②把输入的每个字符的ASCII码和允许的四类字符的ASCII码作比较 简单易懂 摘要:```cpp #include using namespace std; bool f(int n) { string s; int k1=0,k2=0,k3=0,k4=0;…… 题解列表 2020年05月06日 0 点赞 1 评论 824 浏览 评分:9.8
【密码】-极致精简,快来接受我大C++的洗礼(C++代码) 摘要:#核心 把题目中的长度要求作为先决条件,其余四种情况分组计分,密码每符合一种情况+1分,若最后分数>=3则判断通过 #代码 ```C++ #include #include #incl…… 题解列表 2020年01月16日 0 点赞 0 评论 460 浏览 评分:6.7
【密码】-题解(C++代码) 思路简单 摘要: //1.判断长度是否符合标准 //2.遍历字符串,设置了type1~4表示四种条件的满足情况,若在遍历过程中发现符合某种条件就设置它对应的type为1,遍历结束后将type1~4相加可以得…… 题解列表 2019年12月13日 0 点赞 0 评论 547 浏览 评分:6.0
编写题解 1162: 密码(C++) 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <string> using namespace std; int main() { int …… 题解列表 2021年11月16日 0 点赞 0 评论 259 浏览 评分:4.0
#C++1162——密码(gets与cin,scanf混合使用会无法正常执行) 摘要:#include#include using namespace std; int a,b,c,d; bool check(char p)//对四种情况进行判断,并标记为1 { if(…… 题解列表 2022年07月14日 0 点赞 0 评论 370 浏览 评分:0.0