题解 2861: 验证子串

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

筛选

随便解释一下吧

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main ( ){    char s1[201]={0} ,s2[201]={0} ;    int i=0 ,a=0 ,c=……

2861: 验证子串

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

java验证子串(indexOf方法)

摘要:解题思路:利用indexOf方法判断一个字符串是否是另一个的子串注意事项:参考代码:package ten;import java.util.Scanner;public class 验证子串 {  ……

java--study||O.o

摘要:参考代码:import java.util.Scanner; public class Main  { public static void main(String[] args)     ……

验证字串C解

摘要:解题思路:注意事项:用gets只能过一部分,scanf能全过,也不知道为啥参考代码:#include<stdio.h>#include<string.h>int main(){    char s1[……

2861: 验证子串(python)

摘要:解题思路:注意事项:参考代码:a = input().strip() # 注意把前导空格去掉 b = input().strip() if a in b:     print("%s is s……

长短比较确定正反。

摘要:解题思路:设定三个字符串,strm,strn,stra。其中stra是对长的字符串(strm或者strn)进行部分截取,再与短的字符串进行strcmp函数的比较。注意事项:参考代码:#include<……

c代码记录之验证字串

摘要:1.空串是所有字符串的子串,但这题好像不验证这个 2.gets不通过,scanf能通过 #include #include int main() { ……

2861: 验证子串

摘要:解题思路:注意事项:谁看得出来下面的数据有什么区别?测试数据:1.abcdddncabca2.abc dddncabca参考代码:s1 = "".join(input().split()) s2 =……