1001
题意:中文题
思路:模拟
AC代码:
#include "iostream"#include "iomanip"#include "string.h"#include "stack"#include "queue"#include "string"#include "vector"#include "set"#include "map"#include "algorithm"#include "stdio.h"#include "math.h"#pragma comment(linker, "/STACK:102400000,102400000")#define bug(x) cout<<<" "<<"UUUUU"< >T; while(T--){ cin>>s; int ls=s.size(); anss1="",tmp=""; int flag=0,bit=1,t=0,ff=0; for(int i=0; i ='0' && s[i]<='9'){ tmp+=s[i]; //cout< <='0' && s[i]<='9'){ t+=(s[i]-'0')*bit; bit*=10; //cout< <<"QQQ\n"; } if(flag==1 && s[i]==')'){ //cout< <