题解 2860: 字符串判等

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

字符串判等C++解法

摘要:解题思路:这题不要想着在输入的原字符串上删除或者修改,麻烦还容易出错。推荐存入新字符串再判断,思路简单且清晰注意事项:题目只要求过滤空格,这里调用isspace()会把制表符也一并过滤,但是不影响结果……

字符串判等java

摘要:解题思路:注意事项:参考代码:public class Test {    public static void main(String[] args) {        Scanner scanne……

字符串判等,,,,,,

摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){     // 定义四个字符串变量,用于存储输入和处……

2860: 字符串判等

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){string s,snew;getline(cin,s);f……

字符串判等(简介)

摘要:解题思路:注意事项:参考代码:package arrLast; //题目 2860: 字符串判等 import java.util.Scanner; public class t_2860 { ……

2860: 字符串判等

摘要:解题思路:注意事项:参考代码:a = input().strip()b = input().strip()c = a.replace(" ", "")d = b.replace(" ", "")c =……

字符串判等C解

摘要:解题思路:注意事项:最好别用==‘ ’参考代码:#include<stdio.h>#include<string.h>int main(){    char a[100],b[100];    int……