Search found 6 matches

by erictwpt
Wed Mar 07, 2007 2:16 am
Forum: Volume 111 (11100-11199)
Topic: 11187 - Water Crisis
Replies: 12
Views: 5169

What is interesting is that the fastest 4 times are all people from Taiwan. I would think that their solutions are either the same or similar. I wouldn't be happy if all they did was to print the solutions. Usually only something close to a constant time solution or linear time solution can give ru...
by erictwpt
Sun Dec 10, 2006 5:42 pm
Forum: Volume 111 (11100-11199)
Topic: 11100 - The Trip, 2007
Replies: 18
Views: 13702

I guess your output is ok.. But I think the output should be more like.. 4 1 2 3 1 2 3 1 3 2 3 Did you check Emilio's test case..? Yes I did, and I got the correct output. Here are another I/O and i am not sure if the first one is correct. Thank you for your reply. INPUT 10 1 1 1 2 2 2 3 3 4 4 10 1...
by erictwpt
Sun Dec 10, 2006 5:18 pm
Forum: Volume 111 (11100-11199)
Topic: 11100 - The Trip, 2007
Replies: 18
Views: 13702

I got lots of WAs...
Is this answer correct?

INPUT
10
1 1 1 2 2 2 3 3 3 3


OUTPUT
4
1 2 3
1 2 3
1 2 3
3

Thank you all!
by erictwpt
Tue Nov 08, 2005 3:55 am
Forum: Volume 103 (10300-10399)
Topic: 10313 - Pay the Price
Replies: 42
Views: 19183

arash_cordi wrote:

Code: Select all

char temp[100];
you should use temp[10000]...

but there is some other mistake.
by erictwpt
Sun Oct 30, 2005 4:35 am
Forum: Volume 8 (800-899)
Topic: 895 - Word Problem
Replies: 23
Views: 12467

sorry for posting my code here, but i cannot get AC after many WA.. i use the algoritms sohel said at first, and it is ok for cat cat dog lion # c a t # can anyone help me? Thanks a lot..!! #include <stdio.h> #include <string.h> int ndic=0,n,u[7],ans; char s[10000],dic[1000][11],d[8][2],word[8],c,*p...
by erictwpt
Mon Oct 10, 2005 5:15 am
Forum: Volume 109 (10900-10999)
Topic: 10930 - A-Sequence
Replies: 102
Views: 31446

sorry for posting my code.

all the tests on the board is ok,but i got WA...

thanks for any help!

Code: Select all

AC, thanks!

Go to advanced search