题解列表
vector存储写法,易懂
摘要:解题思路:注意事项:参考代码:#include#includeusing namespace std;vector{ if(A.size()<B.size())return add(B,A); ……
vector存储写法,易懂
摘要:解题思路:减法需要判断会不会为负数注意事项:参考代码:#include <iostream>#include <vector>using namespace std;bool cmp(vector<i……
1012题: 字符串分类统计
摘要:# 自己写的代码
```c
#include
#include
int main()
{
char a[100];
int b=0,c=0,d=0,e=0;
gets(a);……
1013题: Sn的公式求和
摘要:# 自己写的代码
```c
#include
int main()
{
int n,a,sn;
scanf("%d",&n);
for(int i=0;i……
按六位二进制数从0枚举至63
摘要:解题思路:按六位二进制数从0遍历至63,0为不去,1为去注意事项:参考代码:#include<stdio.h>int main(){ int a[2][6]={{0,0,0,0,0,0},{65……
有注释 简单易懂 STL stack
摘要:```cpp
#include
#include
#include
using namespace std;
stacks;
int main()
{
//stack 先进后出
……
1014题: 阶乘求和
摘要:# 自己写的代码
```c
#include
int main()
{
int n,an,sn=0;
scanf("%d",&n);
for(int i=1;i=1;j--){
……