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;
Search found 2 matches
- Fri Nov 07, 2008 10:09 am
- Forum: Volume 7 (700-799)
- Topic: 727 - Equation
- Replies: 156
- Views: 56775
- Sun Aug 20, 2006 11:49 pm
- Forum: Volume 6 (600-699)
- Topic: 673 - Parentheses Balance
- Replies: 243
- Views: 79366
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 ...
#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 ...