题解列表

筛选

题解不能标题太短,不然不让发

摘要:解题思路:按照数学公式s=Πr^2注意事项:c语言中没有Π这个符号,所以我们要在代码开头定义一个变量,使他代替Π的作用,这叫做宏定义,一般用#define+你想用的字母大写+Π值(一般定义到3.14就……

预处理+二分+单调队列求区间最值

摘要:本体思路 1.预处理矩阵O(N^2 M) 2.枚举行O(N^2),二分矩阵的宽度(log(M)) 3.单调队列求区间最大最小值 O(M) 总的时间复杂度为 O(N N M log M) 空……

求最大值——python

摘要:解题思路:注意事项:参考代码:while True:    try:        L = list(map(int,input().split()))        print(f"max={max……

后缀子串排序——python

摘要:解题思路:注意事项:参考代码:while True:    try:        L = input()        L2 = []        for i in range(len(L)): ……

字符串连接——python

摘要:解题思路:注意事项:参考代码:while True:    try:        a,b = map(str,input().split())        print(a+b)    except……

谁是你的潜在朋友

摘要:解题思路:注意事项:参考代码:while True:    try:        n,m = map(int,input().split())        L = [int(input()) fo……

与2无关的数——python

摘要:解题思路:注意事项:参考代码:def bxg(n):    if '2' in str(n) or n%2 == 0:        return 0    else:        ……

区间中最大的数

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