diff --git a/Nesting_depth.cpp b/Nesting_depth.cpp index c9c4798..09b06a4 100644 --- a/Nesting_depth.cpp +++ b/Nesting_depth.cpp @@ -6,8 +6,22 @@ using namespace std; #define endl "\n"; int no = 1; void D(){ - - string s ;cin>>s; + +} + +int main(int argc, char const *argv[]) +{ + ios_base::sync_with_stdio(false); + cin.tie(0); + cout.tie(0); + cout.precision(0); + cout<>t; + while(t--){ + string s ;cin>>s; string res; int n = s.length(); @@ -31,21 +45,6 @@ void D(){ while(prev--) res+=')'; cout<<"Case #"<>t; - while(t--){ - D(); } -} \ No newline at end of file +}