题解列表

筛选

P1002-题解(C++代码)

结构体+临时变量搞定~AC代码:```cpp#includestructnode{charstname[21];intavescore;intpingyiscore;charganbu;charwestern;intlunwen;}record[110];intmain(){intn;scanf("%

数据结构-广义表的基本操作-题解(C++代码)

广义表的深度就是()的个数的最大值思路就是,用栈来存储,遇到(进栈,遇到),统计此时栈中元素的个数,并将(出栈,并将值存到max中,max就是深度```cpp#include#includeusingnamespacestd;intmain(){stacks;strings1;cin>>s1;intl