题解列表

筛选

给用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) {……

给用Java的开一下荒土

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

递归逆序进行连接

摘要:f函数代表输出当前长度为n的字符串的最后一个字母,递归终止的条件是字符串长度为0为止,return结束函数 ```c #include #include void f(char *……