题解列表
编写题解 3029: 逆波兰表达式
摘要:inver = input().split()
inver = inver[::-1]
def arithmetic(inver):
if inver:
alphabe……
括弧匹配检验,栈栈栈
摘要:解题思路:注意事项:参考代码:#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,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) ……
用数学方法和for循环来解此题(ceil函数:向上取整,如6.5→7,且记得循环一次换行一次)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int i,n,N; double x,y,s,t; scan……