编写题解 1466: 蓝桥杯基础练习VIP-字符串对比
摘要:解题思路:注意事项:参考代码:#include <iostream>
#include <string>
using namespace std;
int main(){
string st……
编写题解 1466: 蓝桥杯基础练习VIP-字符串对比 java 适合小白!!!
摘要:解题思路:解题需要掌握字符串的compareTo()(区分大小写的字符串判断是否相等),compareToIgnoreCase()(不区分大小写的字符串判断是否相等),还有字符串的输入需要用到next……
1466: 蓝桥杯基础练习VIP-字符串对比
摘要:解题思路:注意事项:参考代码:#include<stdio.h>
#include<string.h>
int main()
{
int a,b,i,flag=0,be=0,de=0,k=0;……
#c++字符串对比 transform(s.begin(),s.end(),s.begin(),::toupper); //全部转成大写
摘要:```cpp
#include
using namespace std;
int main()
{
string s,ss;
cin>>s>>ss;
if(s.size()!=ss……
小南解题---字符串对比--64ms
摘要:a=input()b=input() if len(a)==len(b): if a==b: print(2) else: if a.upper()==b.up……
蓝桥杯基础练习VIP-字符串对比(C语言)
摘要:#include<stdio.h>
#include<ctype.h>//tolower函数引用所需的头文件
#include<string.h>
int main()
{
char st……
字符串对比,100%通过!!!
摘要:解题思路:注意事项:参考代码:a = input()b = input()if len(a) != len(b): print(1)elif a == b: print(2)elif a.……