题解列表

筛选

C语言 最小绝对值&

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>#define LONG 10int main(){         int nums[LONG] ……

最大数位置

摘要:解题思路:先用数组存储数据,然后将第一个值定为最大值,利用循环遍历数组和最大值比较如果大于最大值,将这个值赋值为最大值。注意事项:输出的i要加一参考代码:#include<stdio.h>#inclu……

二维数组右上左下遍历

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int m,n,i,j,k;    scanf("%d %d",&m,&n);    int a[m][n……

题解: 数字三角形【Python】

摘要:解题思路:动态规划参考代码:N = int(input()) dp = [] for i in range(N):     row = list(map(int, input().split()……

题解: 公交汽车【Python】

摘要:解题思路:动态规划。参考代码:cost = list(map(int, input().split())) n = int(input()) dp = [0 for i in range(n)] ……

题解:装箱问题【Python求解】

摘要:解题思路:递归参考代码:## 递归算法 V = int(input())     n = int(input()) v_lis = [] for i in range(n):     v =……

二维数组的转置

摘要: #include int main(void) { int arr[3][3], i, j; for (i = 0; i < 3; i++) ……

数据结构-快速排序

摘要:解题思路:注意事项:    存储数组0位置设为空,起初存数。参考代码:#include<iostream>using namespace std;int partition(int* a,int lo……