题解列表
3029: 逆波兰表达式
摘要:解题思路:使用栈, 遇到数字入数字栈, 遇到操作符, 在操作符栈不为空,并且数字栈的长度大于等于2时,出栈计算,结果入栈注意事项: 最后在操作符不为空时,循环出栈计算参考代码:#include<ios……
我趣,这题直接输出也对
摘要:解题思路:无注意事项:无参考代码:#include <stdio.h>int main(){int date; date=200; printf("%d\n",date); retu……
c代码记录之结构体成绩统计
摘要:第一次练习结构体,略显生涩
#include
struct student{
char xuehao[10],name[10];
int a,b……
c代码记录之结构体时间设计
摘要: #include
struct Time{
int year,month,day;
}_time;
int main(){
s……
c代码记录之结构体成绩记录--函数传参
摘要: #include
struct Student{
char xuehao[30],name[30];
int a,b,c;
};
……
2913: 整数去重
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N=20010;int a[N];int main() { ……
2880: 计算鞍点
摘要:```
#include
using namespace std;
int a[6][6];
int main() {
int n = 5;
for (int i = 1;……