题解列表

筛选

排列 (C语言代码)

摘要:解题思路:          主要是利用排列组合的思想,用多重循环来实现。注意事项:         需要对题目要求的输出有个清楚的认识,否则会出现格式错误。          对每组卡片按从小到大的……

汽水瓶 (C语言代码)

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

简单的排序

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

三角形 (C++代码)

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