题解列表

筛选

无聊的星期六

摘要:解题思路:正则就不用了。注意事项:参考代码:import sys for line in sys.stdin:     if line=="End of file":         exit(……

无聊的星期六

摘要:标签个红色的,匪夷所思。解题思路:自己列一个表就知道了1=02=13=14=25=26=37=3参考代码:s=1 while s!=0:     s=int(input())     if s=……

2854: 密码翻译

摘要:解题思路:正常思路注意事项:z和Z转化为a和A参考代码:S = list(input())for i,s in enumerate(S):    if s.isalpha():        if s……

1130: C语言训练-数字母

摘要:注意事项:需要了解并熟练使用str.isalpha()函数。参考代码:s = input()    #字符串类型的输入 cnt = 0    #计数 for i in s:         if……

1196: 去掉空格

摘要:解题思路:注意事项:参考代码:while True:     try:         s = input()         print(s.replace(' ', &#39……

1042: [编程入门]电报加密

摘要:解题思路:注意事项:参考代码:s = input() arr = "" for i in range(len(s)):     if s[i] == ' ':         ……

python--study||O.o

摘要:参考代码:#   设置四个边界,层层遍历 row, column = map(int, input().split()) arr = [list(map(int, input().split(……

1099: 校门外的树,使用列表切片

摘要:解题思路:运用列表的切片操作,将区间内的点都设为0注意事项:给的区间可能会有重叠参考代码:L,m = map(int,input().strip().split())tree =[1]*(L+1)fo……

python--study||O.o

摘要:参考代码:#   重点就是判断条件的顺序 n = int(input()) square = [[0] * (2 * n - 1) for _ in range(2 * n - 1)] x, y……