题解列表

筛选

超简短,通俗易懂的代码

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    char s[109];    int len;  ……

蓝桥杯算法提高VIP-01背包

摘要:解题思路:简单的0-1背包问题。注意事项:注意第二层循环时,j要从m到weight[i]依次递减下去。不然会出现同一物品被选多次的场景。(该种情况是完全背包的解题方法)参考代码:import java……

迭代法求平方根-题解

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int main(){    int a;    double b,c,d,e;    whil……

1564质因数题解Java语言

摘要:解题思路:注意事项:参考代码:import java.util.*;public class Main { static List<Integer> PrimeFactorization(int n)……