题解列表

筛选

题号:1018: [编程入门]有规律的数列求和

摘要:解题思路:利用代换因子表示出更新后的分子分母注意事项:注意a+=b这一步的位置,我们要的是a,b原始值的相加参考代码:#include<stdio.h>int main(){    int i,n; ……

函数求整数平均值

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int ave(int a[],int n){ int sum=0; for(int……

1018有规律的数列求和

摘要:解题思路:斐波那契数列注意事项:注意数据类型参考代码:#include<stdio.h>float F(int n){    if(n==1||n==2)        return 1;    el……

字符删除STL解法AC

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s,s1; cin>>s>>s1; int n……

高精度乘法 新手易懂 AC

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){string s,s1;cin>>s>>s1;if(s=="0……

发工资咯(动态规划)

摘要:解题思路:注意事项:参考代码:#include <iostream> using namespace std; //如果发101元,有6种情况: //1.f(101)=f(101-1)+1 /……

奇偶的秘密

摘要:## C++ ```c++ #include"iostream" #include #include #include #include using namespace std; co……

完数的判断(c++)

摘要:解题思路:利用for循环判断因子注意事项:每次循环开始前要重置sum和k的值参考代码:#include<bits/stdc++.h>using namespace std;int main() {  ……

1388: GC的苦恼,c++代码实现

摘要:##1388: GC的苦恼 ***废话多说,直接上代码*** ```cpp #include using namespace std; int main(){ int a; whil……