验证字串C解 摘要:解题思路:注意事项:用gets只能过一部分,scanf能全过,也不知道为啥参考代码:#include<stdio.h>#include<string.h>int main(){ char s1[…… 题解列表 2024年02月16日 0 点赞 0 评论 699 浏览 评分:9.9
2861: 验证子串 摘要:解题思路:注意事项:参考代码:package arrLast; //题目 2861: 验证子串 import java.util.Scanner; public class t_2861 { …… 题解列表 2024年02月06日 0 点赞 0 评论 457 浏览 评分:0.0
java--study||O.o 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String[] args) …… 题解列表 2024年02月03日 0 点赞 0 评论 395 浏览 评分:9.9
利用 contains 函数验证字串 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2024年01月09日 0 点赞 0 评论 444 浏览 评分:0.0
2861: 验证子串 摘要:解题思路:无注意事项:无参考代码:#include <bits/stdc++.h> using namespace std; int main() { string str ; …… 题解列表 2023年12月23日 0 点赞 0 评论 513 浏览 评分:9.9
str1.contains(str2) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2023年12月23日 0 点赞 0 评论 461 浏览 评分:0.0
题解 2861: 验证子串(用isSubstring()函数解决) 摘要:```c #include #include int isSubstring(char* a, char* b, int len_a, int len_b)//默认len_a>len_b { …… 题解列表 2023年12月17日 1 点赞 0 评论 524 浏览 评分:0.0
c代码记录之验证字串 1.空串是所有字符串的子串,但这题好像不验证这个2.gets不通过,scanf能通过#include#includeintmain(){charstr1[201],str2[201],str_chang[201],str_duan[201];intn_str1, 题解列表 2023年11月30日 0 点赞 1 评论 550 浏览 评分:2.0
长短比较确定正反。 摘要:解题思路:设定三个字符串,strm,strn,stra。其中stra是对长的字符串(strm或者strn)进行部分截取,再与短的字符串进行strcmp函数的比较。注意事项:参考代码:#include<…… 题解列表 2023年11月03日 0 点赞 0 评论 687 浏览 评分:8.0
验证子串(二种方法) 摘要:解题思路:注意事项:参考代码:第一种强行解题,硬解:#include<stdio.h> #include<string.h> int main() { char a[200]; char…… 题解列表 2023年10月21日 0 点赞 0 评论 775 浏览 评分:0.0