0分!全RE
  • 板块P1928 外星密码
  • 楼主heyZZZ
  • 当前回复3
  • 已保存回复3
  • 发布时间2024/3/2 10:49
  • 上次更新2024/3/2 14:08:22
查看原帖
0分!全RE
1015977
heyZZZ楼主2024/3/2 10:49
#include<bits/stdc++.h>
using namespace std;
string f(){
	string s="",s1="";
	int n;
	char c;
	while(cin>>c){
		if(c=='['){
			cin>>n;
			s1=f();
			for(int i=1;i<=n;i++) s+=s1; 
		}
		else if(c==']') return s;
		else s+=c;
	}
}
int main(){
	cout<<f();
	return 0;
}

全RE

2024/3/2 10:49
加载中...