题解列表

筛选

括弧匹配检验,栈栈栈

摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义一个字符栈,用于存储括号 stack<char> st; in……

字符串匹配问题(strs),写吐了呀

摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义一个字符数组,包含所有括号和尖括号的符号 char ss[10]……

送分了........

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int max=0,min=1000,a,b;    scanf("%d",&a);    while(a……

最普通的解题方法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int i,a,b,c,d,e=0,f=0,g=0;    scanf("%d",&a);    whil……

送分了........

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int i,a,b,p=0,q=0,sum=0;    scanf("%d %d",&a,&b);    ……

送分了........

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a,b,c=0,d=0,e=0;    scanf("%d",&a);    while(a)  ……

数组的插入处理

摘要:解题思路:用到了冒泡排序和数组插入注意事项:参考代码:#include <stdio.h>#include <string.h>void swap(int *a,int *b){ int tmp=*a……