题解列表

筛选

编写题解 1115: DNA

摘要:解题思路:注意事项:参考代码:n=int(input())for i in range(n):    a,b=map(int,input().split())    x=a//2    for i i……

The 3n + 1 problem

摘要:解题思路:注意事项:参考代码:def f(x):    c=1    while x!=1:        if x%2==0:            x=x//2        else:     ……

字符串的输入输出处理

摘要:解题思路:注意事项:参考代码:n=int(input())for i in range(n):    s=input()    print(s)    print()while True:    s=……

用筛法求之N内的素数。

摘要:解题思路:注意事项:参考代码:from math import *n=int(input())def pd(x):    if x==2:        return True    else:   ……

isalpha()判断

摘要:解题思路:注意事项:参考代码:a = str(input())s = ''for i in a:    if i.isalpha():        t = chr(ord(i)+1)……