题解列表

筛选

三角形 (C++代码)

摘要:解题思路:动态规划,贪心不能得到最大解注意事项:三维数组提高解题效率参考代码:#include<bits/stdc++.h> #define N 50  using namespace std; ……

简单的排序

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

汽水瓶 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int s = 0;int f(int n){    int x, y;    if(n <= 1)        return s; ……

数列排序 (C语言代码)

摘要:解题思路:     思路1:将比K1大的数字用一个变量保存,然后再这个数之前的数全部往后移动一位,最后把变量中的数放到数组最前面。(无需管比K1大的数字)          思路2:重新定义两个数组,……