题解列表

筛选

自定义函数之整数处理

摘要:解题思路:注意事项:参考代码:def input_():    a=list(map(int,input().split()))    deal(a)def deal(x):    x.sort() ……

编写题解 1115: DNA(python)

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

用字符切片来解决

摘要:解题思路:注意事项:参考代码:n = int(input())x = str(input())m = int(input())print(x[m-1:])……

字符串逆序(2行代码)

摘要:解题思路:没什么思路,当成数组,逆序输出即可。注意事项:参考代码:a = input()print(a[::-1])……