文章
326
粉丝
4
获赞
518
访问
72.5k
#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);
 ...
登录后发布评论
暂无评论,来抢沙发