s=input("输入字符串:")
n=len(s)
i,j=0,n- 1
result=""
while i<n//2 and j>=n//2:
if s[i]>s[j]:
result+=s[i]; j-=1
elif s[i]<s[j]:
result+=s[j]; i+=1
else:
i+=1;j-=1
print(result)
执行该程序段,分别输入下列选项中的字符串,输出结果不为“555”的是( )
a=[[1,3,6,9],[2,4,7,5],[5,2,3,8]] b=[1]; n=len(a)
for i in range(n):
for j in range(n+1):
if i<j and a[i][j] not in b:
b.append(a[i][j]) #b 追加一个元素 a[i][j]
执行该程序执段后,数组 b 中的元素为( )
#建立链表 link1,代码略
key=int(input("输入要删除的数据:"))
head=0
while link1[head][0]==key and head!=- 1:
head=link1[head][1]
p=q=head
if head==- 1:
print("全部数据删除")
else:
q=link1[q][1]
while ① :
if link1[q][0]==key:
②
else:
p=link1[p][1]
q=link1[q][1]
则划线①②处的代码分别为( )