括弧匹配检验,栈栈栈 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义一个字符栈,用于存储括号 stack<char> st; in…… 题解列表 2024年11月25日 0 点赞 0 评论 203 浏览 评分:0.0
字符串匹配问题(strs),写吐了呀 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义一个字符数组,包含所有括号和尖括号的符号 char ss[10]…… 题解列表 2024年11月26日 0 点赞 0 评论 196 浏览 评分:0.0
送分了........ 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int max=0,min=1000,a,b; scanf("%d",&a); while(a…… 题解列表 2024年11月26日 0 点赞 0 评论 199 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,a,b,c,d,e=0,f=0,g=0; scanf("%d",&a); whil…… 题解列表 2024年11月26日 1 点赞 0 评论 186 浏览 评分:0.0
送分了........ 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,a,b,p=0,q=0,sum=0; scanf("%d %d",&a,&b); …… 题解列表 2024年11月26日 0 点赞 0 评论 327 浏览 评分:0.0
送分了........ 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c=0,d=0,e=0; scanf("%d",&a); while(a) …… 题解列表 2024年11月26日 0 点赞 0 评论 220 浏览 评分:0.0
用数学方法和for循环来解此题(ceil函数:向上取整,如6.5→7,且记得循环一次换行一次) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int i,n,N; double x,y,s,t; scan…… 题解列表 2024年11月26日 0 点赞 0 评论 210 浏览 评分:0.0
数组的插入处理 摘要:解题思路:用到了冒泡排序和数组插入注意事项:参考代码:#include <stdio.h>#include <string.h>void swap(int *a,int *b){ int tmp=*a…… 题解列表 2024年11月26日 0 点赞 0 评论 469 浏览 评分:0.0
超级超级超级简单的数组排除 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a[81]; gets(a); for(int i=0;a[i]!='\0';i++)…… 题解列表 2024年11月26日 0 点赞 0 评论 207 浏览 评分:0.0
用数组模拟栈,详细注释#3071: 表达式括号匹配(stack) (c++) 摘要:通过观察规律发现,最后出现的左括号最先被匹配 遇到左括号入栈 遇到右括号出栈进行匹配,如果此时栈空,则匹配失败,如果匹配不上,则匹配失败 如果扫描完序列后栈不为空,则匹配失败 ``…… 题解列表 2024年11月26日 0 点赞 0 评论 321 浏览 评分:0.0