Search found 1 match

by forhadmethun
Fri May 15, 2015 8:46 am
Forum: Volume 6 (600-699)
Topic: 673 - Parentheses Balance
Replies: 243
Views: 79791

Re: 673 - Parentheses Balance

#include <bits/stdc++.h>
using namespace std;

int main()
{
//cout << "Hello world!" << endl;
freopen("in.txt","r",stdin);
int t;
char str[130];

cin >> t;

getchar();
while(t--)
{
stack<char> stk;

gets(str);
bool isTrue = true;
if(strlen(str) %2 ==1){
cout << "No" << endl;
continue ...

Go to advanced search