题解列表

筛选

筛选号码简单AC

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

题解 1053:平均值计算(单个循环解决 c++)

摘要:解题思路: 循环前的准备工作:1、先设置十个整数,并将它们放入一个数组以备循环里调取。               2、设置均值k。               3、设置题目所求的计数变量sum。  ……

c++的一种写法

摘要:解题思路:#include<iostream>using namespace std;int main(){char c1,c2,c3,c4,c5,c6,c7,c8,c9,c10;    cin>>c……

函数求整数平均值

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

字符删除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++)

摘要:解题思路:利用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……