题解列表

筛选

编写题解 2879: 错误探测

解题思路:注意事项:参考代码:m=int(input())aList=[]flag1=1myList=[list(map(int,input().split()))fortinrange(m)]i=0fortempinmyList:ifsum(temp)%2==0:continueelse:i+=1f

1073: 弟弟的作业

摘要:```python score = 0 while True: try: user = input().split("=") if user[1] =……

1074: 数字整除

```pythonn=int(input())#初始值whilen!=0:#n=0时停止lest=n//10if(lest-(n%10)*5)%17==0:print('1')else:print('0')n=int(input())```

1063: 二级C语言-统计字符

```pythonss=input()#英文字母、空格、数字和其它字符alpha,space,num,other=0,0,0,0foriinss:ifi.isalpha():alpha+=1elifi.isspace():space+=1elifi.isnumeric():num+=1else:oth

1061: 二级C语言-计负均正

```pythonli=list(map(int,input().split()))li1=list(map(int,input().split()))#题中示例是两行输入li.extend(iforiinli1)#读取两行数据后,再拼接在一起即可fu_num=0zheng_sum=0foriinli

行程长度编码

摘要:解题思路:按着上一道题修改即可注意事项:参考代码:myStr=input().strip()myStr1=""i=1for t in range(len(myStr)-1):    if myStr[……

字符串p型编码

摘要:解题思路:注意事项:参考代码:myStr=input().strip()myStr1=""i=1for t in range(len(myStr)-1):    if myStr[t+1]==mySt……