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)
……
2861: 验证子串(python)
摘要:解题思路:注意事项:参考代码:a = input().strip()
# 注意把前导空格去掉
b = input().strip()
if a in b:
print("%s is s……
2861: 验证子串 输入用cin可以,用getline不行,不知道为什么
摘要:解题思路:注意事项:参考代码:#include <iostream>
// #include <sstream>
// #include <cstdio>
// #include <algori……
c代码记录之验证字串
摘要:1.空串是所有字符串的子串,但这题好像不验证这个
2.gets不通过,scanf能通过
#include
#include
int main()
{
……
2861: 验证子串
摘要:解题思路:注意事项:谁看得出来下面的数据有什么区别?测试数据:1.abcdddncabca2.abc dddncabca参考代码:s1 = "".join(input().split())
s2 =……