WA #1,求hack数据(题目:B2118)
  • 板块灌水区
  • 楼主ImposterAnYu
  • 当前回复3
  • 已保存回复3
  • 发布时间2021/7/9 19:23
  • 上次更新2023/11/4 15:12:09
查看原帖
WA #1,求hack数据(题目:B2118)
510555
ImposterAnYu楼主2021/7/9 19:23
#include<bits/stdc++.h>
using namespace std;
char s1[30],s2[30];
int main(){
	gets(s1);
	gets(s2);
	if(strstr(s1,s2)){
		cout << s2 << " is substring of " << s1;
	} else if(strstr(s2,s1)){
		cout << s1 << " is substring of " << s2;
	} else{
		cout << "No substring";
	}
	return 0;
}
2021/7/9 19:23
加载中...