题解列表

筛选

dp,讲述一些经验和细节注意

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>//最大上升子序列的问题,O(n^2)算法轻松解决//这种题用不了O(nlogn)的二分算法,因为存在两个元素无法比较的现象……

编写题解 2835: 计算书费

摘要:解题思路:注意事项:参考代码:price=[28.9,32.7,45.6,78,35,86.2,27.8,43,56,65] #将价格储存进数组 nums=list(map(int,input().……

温度转换(C++)

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){    float c,F;    c……

分段函数(C++)

摘要:解题思路:用f()分段;参考代码:#include<iostream>using namespace std;#include <iomanip>                           ……

求偶数和(C++)

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){    int n,i,s=0,a[20];    cin>>n;   ……

等差数列(C++)

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){    int n,i=1,j=2,sum=2;    cin>>n; ……

同因查找(C++)

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){    int i;    for(i=10;i<=1000;i++) ……

公约公倍(c++)

摘要:解题思路:最大公约数好求,最小公倍数=乘积/最大公约数注意事项:参考代码:#include<iostream>using namespace std;int main(){    int m,n,i,……

统计字符(c++)

摘要:解题思路:用if()来分类判断注意事项:注意不同类型的ASCI值参考代码:#include<iostream>using namespace std;int main(){    char a[88]……

阶乘数列(C++)

摘要:解题思路:注意事项:数字太大int装不下,因此要用科学计数法表示更好,包含<cstdio>后用printf()较方便参考代码:#include<iostream>using namespace std……