P1928 外星密码 0分求调 玄关
  • 板块灌水区
  • 楼主__sunhy2012__
  • 当前回复0
  • 已保存回复0
  • 发布时间2025/1/2 20:38
  • 上次更新2025/1/3 14:01:54
查看原帖
P1928 外星密码 0分求调 玄关
862592
__sunhy2012__楼主2025/1/2 20:38

测试点信息

#include<bits/stdc++.h>
using namespace std;
string f(){
	int n;
	string s="",s1;
	char c;
	while (cin>>c){
		if (c=='['){
			cin>>n;
			s1=f();
			while (n--) s+=s1;
		}
		else if(c==']') return s;
                else s+=c;
	}
}
int main(){
	cout<<f(); 
	return 0;
}
2025/1/2 20:38
加载中...