Python 3.x Python代码将WA作为CHEFSQ作为codeshef?
事实上,这个问题存在一些问题。它在语句中要求使用子字符串,但会接受将F序列作为其子序列的解决方案。 考虑将查询作为我接受的代码中的测试用例运行:Python 3.x Python代码将WA作为CHEFSQ作为codeshef?,python-3.x,Python 3.x,事实上,这个问题存在一些问题。它在语句中要求使用子字符串,但会接受将F序列作为其子序列的解决方案。 考虑将查询作为我接受的代码中的测试用例运行: t = int(input()) for _ in range(t): n = int(input()) N = input().split() f = int(input()) F = input().split() ans = True for i in range(len(N)):
t = int(input())
for _ in range(t):
n = int(input())
N = input().split()
f = int(input())
F = input().split()
ans = True
for i in range(len(N)):
if N[i:i+f] == F:
print('Yes')
ans = False
break
if ans:
print('No')
事实上,这个问题存在一些问题。它在语句中要求使用子字符串,但会接受将F序列作为其子序列的解决方案。 考虑将查询作为我接受的代码中的测试用例运行:
t = int(input())
for _ in range(t):
n = int(input())
N = input().split()
f = int(input())
F = input().split()
ans = True
for i in range(len(N)):
if N[i:i+f] == F:
print('Yes')
ans = False
break
if ans:
print('No')
欢迎来到堆栈溢出!我还将您的代码示例用4个空格分隔,以便正确呈现-有关格式的更多信息,请访问。请在遇到的特定错误消息中进行编辑,以防识别特定问题。祝你好运欢迎来到堆栈溢出!我还将您的代码示例用4个空格分隔,以便正确呈现-有关格式的更多信息,请访问。请在遇到的特定错误消息中进行编辑,以防识别特定问题。祝你好运