Page 1 of 9
Posted: Sun Dec 02, 2001 5:52 am
Are there any degenerate cases to worry about in this? I keep getting WA, for no apparent reason. Are there mysterious multiple test cases or something?
Posted: Tue Dec 04, 2001 3:52 am
Are you using pascal?
This input file is screwed for pascal.
I only managed to get it accepted in C.
Posted: Thu Dec 06, 2001 2:55 am
No, I'm using C... It's kinda funny... I got AC on 10178, so it's probably just some annoyingness that has been done to the input... Sometimes, it's all in one block, sometimes there's a space... completely inconsistent input *snicker*
Posted: Sat Dec 29, 2001 9:09 pm
The judge input is really very annoying. I got accepted after making a lot of assumptions. Like this is valid input:
Yes, a lot of spaces may appear in input!!
Hope it can help.
Posted: Sat Dec 29, 2001 9:38 pm
....And another assumption: Since one input block ends with an empty line and the prob is multiple input - one can easily guess two blank lines append each input block. But it's not right - only one blank line. Tricky, isn't it?
Posted: Mon Dec 31, 2001 5:49 am
I don't think there are spaces. I use gets(s) and check s and s, and I got ac.
Posted: Mon Dec 31, 2001 3:21 pm
I am writing in Pascal and I got accepted
( so I am sure that test case is not wrong)
Don't forget that it is multiple input problem !!!!!
So the input looks like this
number of test cases
- blank line
and the output
- second output
In the input in the last test case you should read data until End Of File..
I have written such a program and it got accepted..
Posted: Wed Jul 03, 2002 1:00 pm
Why doesn't this code get accepted? It always gets time limit exceed.
I think it's the data reading problem
#define YES 1
#define NO 0
void dfs(int v)
if(!record[v][x] && matrix[v][x])
Posted: Fri Aug 02, 2002 5:35 pm
There is a problem with the input, the last line that the judge enters is data, not \n.
Posted: Mon Aug 05, 2002 8:41 am
How about this one? It got WA.
int comp(const void*,const void*);
if(s[y]>='A' && s[y]<='Z')
if(s[y]>='A' && s[y]<='Z')
void put(int i,int j)
int comp(const void *a,const void *b)
return *(int *)a-*(int *)b;
Posted: Wed Nov 20, 2002 8:22 pm
Code: Select all
#define N 50
void dfs(int b)
if(a[b][i] && a[i][b] && (!color[i]))
will any1 help not getting wawa....?
greetings to all.
--Anupam :oops: [/cpp]
so then how does the input work in this case?
Posted: Sun Jan 05, 2003 1:19 am
ok, the non-specified multiple input is giving me a hard time again...
am I right that the input looks something like this?
PS: in case the input has the above format - what is there any catch? I tested my code with cases I could think about, including repeated edges, slef-loops, etc., but something must be wrong... pls, help!
Posted: Sun Jan 05, 2003 3:16 am
There should be a blank line after the 3:
Have you tried an input with no edges? e.g.
Posted: Sun Jan 05, 2003 3:42 am
rjhadley wrote:There should be a blank line after the 3:
that was the catch... thanx a lot!
Posted: Tue Jan 28, 2003 2:12 pm
For an input with no edges, like this:
Should the output be the number of nodes (2 in this example)?