题解列表

筛选

阿尔法乘积——python

摘要:解题思路:注意事项:参考代码:def xh(n):    if len(n) == 1:        return int(n)    else:        a = 1        n = n……

芯片测试——python

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

阮小二买彩票——python全排列

摘要:解题思路:注意事项:输入时去空格,输出时去重参考代码:from itertools import*n = input().strip()L = sorted(set(permutations(n)))……

给用Java的开一下荒土

摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {……

比较字符串——python

摘要:解题思路:注意事项:参考代码:a,b = map(str,input().split())c = min(len(a),len(b))if a == b:    print(0)else:    fo……

统计子矩阵(双指针)

摘要:解题思路:/*解题思路*//*使用双指针 将A数组中的任意俩列的前缀和看做一个一维数组求解*//*在一维数组中 a[n]={a[1],a[2],...,a[n]}; 类似题目 求其中不大于k:9的数组……

自定义函数之字符串反转-题解

摘要:定义数组-输入字符串-获取字符串个数-字符串倒置赋给另一数组-将字符的后面一位赋'\0'作为结束标志-输出 ```c int main() { char arr[100],brr[100……

给用Java的开一下荒土

摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {……