2860: 字符串判等 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){string s,snew;getline(cin,s);f…… 题解列表 2024年11月03日 0 点赞 0 评论 323 浏览 评分:0.0
字符串判等,,,,,, 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义四个字符串变量,用于存储输入和处…… 题解列表 2024年11月29日 0 点赞 0 评论 378 浏览 评分:0.0
字符串判等C++解法 摘要:解题思路:这题不要想着在输入的原字符串上删除或者修改,麻烦还容易出错。推荐存入新字符串再判断,思路简单且清晰注意事项:题目只要求过滤空格,这里调用isspace()会把制表符也一并过滤,但是不影响结果…… 题解列表 2026年01月27日 1 点赞 0 评论 75 浏览 评分:0.0
字符串判等(C++) 摘要:解题思路: 你可以使用 C++ 标准库中的函数 tolower 和 isspace 来忽略大小写和空格。 具体来说,你可以对每个字符使用 tolower 函数将它转换为小写字母,并使用 isspa…… 题解列表 2022年12月26日 1 点赞 0 评论 1032 浏览 评分:9.9
记录相同字符的必会想法 摘要:解题思路:字符串有空格 用getline输入 然后统计相同字符的个数 比较一下注意事项:这里大小写忽略 统一一下即可参考代码:#include<bits/stdc++.h>using namespac…… 题解列表 2023年02月22日 0 点赞 0 评论 557 浏览 评分:9.9
题解 2860: 字符串判等 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ string s,s1="",ss,ss1=""; …… 题解列表 2024年07月14日 0 点赞 0 评论 362 浏览 评分:9.9
2860: 字符串判等 摘要:解题思路:注意事项:参考代码: #include <bits/stdc++.h> using namespace std; typedef long long ll; int …… 题解列表 2024年07月14日 0 点赞 0 评论 297 浏览 评分:9.9