文章
308
粉丝
0
获赞
122
访问
17.3k
#include<stdio.h>
#include<stack>
#include<string>
using namespace std;
int main()
{
int n;
scanf("%d",&n);
stack<string> hash;
stack<string> tmp;
for(int i=0;i<n;i++)
{
char s[110];
scanf("%s",s);
hash.push(string(s));
int count=4;
while(count&&!hash.empty())
{
string k=hash.top();
hash.pop();
tmp.push(k);
 ...
登录后发布评论
暂无评论,来抢沙发