题解列表

筛选

迭代法求平方根-题解

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

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

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

超简短,通俗易懂的代码

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

简单的a+b(c++代码)

摘要:``` #include using namespace std; int main() { int a,b; while(cin >>a>>b) cout ……

日期排序vector

摘要:``` #include using namespace std; int cmp(string m,string n) { string a,b; a=m.substr(……

简单的写法

摘要:解题思路:如21万,因为利润低于或等于10万元时,奖金可提10%,                            高于10万元的部分且低于20万元 ,可提成7.5%,             ……