题解 2860: 字符串判等 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ string s,s1="",ss,ss1=""; …… 题解列表 2024年07月14日 0 点赞 0 评论 163 浏览 评分:9.9
2860: 字符串判等 摘要:解题思路:注意事项:参考代码:s1 = "".join(input().lower().split()) s2 = "".join(input().lower().split()) if s1 =…… 题解列表 2024年03月25日 0 点赞 0 评论 182 浏览 评分:9.9
字符串判等C解 摘要:解题思路:注意事项:最好别用==‘ ’参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100],b[100]; int…… 题解列表 2024年02月15日 0 点赞 0 评论 295 浏览 评分:9.9
java--study||O.o 摘要:参考代码:import java.util.Arrays; import java.util.Scanner; public class Main { public static void…… 题解列表 2024年02月03日 1 点赞 0 评论 187 浏览 评分:9.9
字符串判等(方法也简单,简洁明了,注意:要使用isspace()函数,不然不能通过) 摘要:解题思路:注意事项:参考代码: #include<stdio.h> #include<ctype.h> #include<string.h> #include<stdlib.h…… 题解列表 2023年11月18日 0 点赞 0 评论 370 浏览 评分:9.9
字符串判等(不要a[i]==' '这么用,可能会报错,你用strcmp()比较字符串函数或者isspace()判断是否为空格的函数都行) 摘要:解题思路:注意事项:参考代码:#include#includeint main() { char a[100],b[100]; gets(a); gets(b); int len_a…… 题解列表 2023年10月20日 0 点赞 5 评论 396 浏览 评分:9.9
2860基础解法(Python) 摘要:解题思路:全小写(大写)、替换空格、删除冗余注意事项:一定要加strip()参考代码:n1 = input().lower().replace(' ', '').str…… 题解列表 2023年04月09日 0 点赞 2 评论 257 浏览 评分:9.9
记录相同字符的必会想法 摘要:解题思路:字符串有空格 用getline输入 然后统计相同字符的个数 比较一下注意事项:这里大小写忽略 统一一下即可参考代码:#include<bits/stdc++.h>using namespac…… 题解列表 2023年02月22日 0 点赞 0 评论 347 浏览 评分:9.9
2860: 字符串判等 摘要:```c #include #include int main() { int i=0,j=0,la,lb,sign=0; char a[100]={'\0'},b[100…… 题解列表 2024年04月29日 0 点赞 0 评论 203 浏览 评分:10.0