Search found 2 matches

by LMG
Fri Nov 07, 2008 10:09 am
Forum: Volume 7 (700-799)
Topic: 727 - Equation
Replies: 156
Views: 35149

Re: 727 - Equation

Hello,
I've passed all the test cases in this thread but still got WA. Would somebody give me any idea about my code?
Also appreciate critical test cases.

problem solved.

just be careful the line below.

cout << endl;
if (test_case != 1) //lacked this line, WA!!!!!!!
cout << endl;
by LMG
Sun Aug 20, 2006 11:49 pm
Forum: Volume 6 (600-699)
Topic: 673 - Parentheses Balance
Replies: 243
Views: 46436

673 WA

I tried to use stack to implement the work and my code got correct answers always. I don't know where is the bug. Can somebody help me? #include <stdio.h> #include <string.h> main() { char stack[130]; char c[130]; char s[130]; int n; int i, j; int len; scanf("%d\n", &n); for(i=0; i<130; i++) { stack...

Go to advanced search