Search found 2 matches

by Ishraq_Nibir
Sun Mar 12, 2017 9:13 pm
Forum: Volume 6 (600-699)
Topic: RE-673 Getting wrong answer..can anyone plz help me out.
Replies: 1
Views: 1712

RE-673 Getting wrong answer..can anyone plz help me out.

#include <stdio.h>
#include <string.h>
int main()
{
int n,i,j,k,l,count,mount,len,first,third;
char str[130];
scanf("%d",&n);
getchar();
for(i=0;i<n;i++){
gets(str);
len=strlen(str);
count=0;mount=0;first=0;third=0;
for(j=0;j<len;j++){
if(str[j]=='('){
first=1;
break;
}
if(str[j ...
by Ishraq_Nibir
Sun Mar 12, 2017 9:09 pm
Forum: Volume 6 (600-699)
Topic: 673 - Parentheses Balance
Replies: 243
Views: 79366

Re: 673 - Parentheses Balance

What is the problem in my code..getting wrong answer
#include <stdio.h>
#include <string.h>
int main()
{
int n,i,j,k,l,count,mount,len,first,third;
char str[130];
scanf("%d",&n);
getchar();
for(i=0;i<n;i++){
gets(str);
len=strlen(str);
count=0;mount=0;first=0;third=0;
for(j=0;j<len;j ...

Go to advanced search