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

测试点信息

#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;
        return s;
	}
}
int main(){
	cout<<f(); 
	return 0;
}
2025/1/2 21:37
加载中...