Search found 229 matches

by daveon
Sat Dec 23, 2006 9:11 pm
Forum: Volume 100 (10000-10099)
Topic: 10011 - Where Can You Hide?
Replies: 58
Views: 12620

If you give me your email, I can send you the outputs.
by daveon
Sat Dec 23, 2006 9:10 pm
Forum: Volume 4 (400-499)
Topic: 400 - Unix ls
Replies: 93
Views: 17391

daveon wrote:Whenever I get PE, I just leave it alone. What is the point in wasting time?
Oh no, the judging system just got more aggressive. Fire away until you get AC!
by daveon
Thu Oct 05, 2006 4:31 am
Forum: Volume 103 (10300-10399)
Topic: 10324 - Zeros and Ones
Replies: 179
Views: 43277

Change

Code: Select all

char str1[1000001];
int    str2[1000001];
to

Code: Select all

char str1[1000001];
char str2[1000001];
and make these global variables.

Then change

Code: Select all

while(gets(str1)!=NULL) 
To

Code: Select all

while(scanf("%s",str1)==1)
Which is now a little more robust. And also, add #include <string.h>.
by daveon
Sun Oct 01, 2006 5:14 pm
Forum: Volume 101 (10100-10199)
Topic: 10161 - Ant on a Chessboard
Replies: 10
Views: 5264

You can calculate the answer in O(1) time.
by daveon
Sun Oct 01, 2006 4:58 pm
Forum: Volume 103 (10300-10399)
Topic: 10324 - Zeros and Ones
Replies: 179
Views: 43277

Hi,

The strings can be up to 1000000 characters long. So you need at least 1000001 sized array because you need 1 more for the null character. So just increase your array size.
by daveon
Sat Sep 30, 2006 11:22 pm
Forum: Off topic (General chit-chat)
Topic: How to stop OJ sending me emails?
Replies: 1
Views: 2169

Yes, it would be nice if they can combine code+result into one email.
by daveon
Sat Sep 30, 2006 10:46 pm
Forum: Volume 8 (800-899)
Topic: 884 - Factorial Factors
Replies: 49
Views: 26800

You should calculate all of the counts for each N before you take input.
by daveon
Sat Sep 30, 2006 3:53 am
Forum: Other words
Topic: past contest
Replies: 5
Views: 2561

Wouldn't it be better to store all the problems in one place? So when a problem is corrected, it only has to be changed in one place.
by daveon
Fri Sep 29, 2006 5:29 am
Forum: Other words
Topic: past contest
Replies: 5
Views: 2561

You can get a quick reply from Carlos if you post this question in the "Bugs and suggestions" section.
by daveon
Thu Sep 28, 2006 3:21 am
Forum: Off topic (General chit-chat)
Topic: Super Fast Programmer
Replies: 18
Views: 34959

Well, I'm not going to argue with you but, why wont ITBS Busan continue to solve all the problems? I mean, why suddenly stop?
by daveon
Wed Sep 27, 2006 3:11 am
Forum: Off topic (General chit-chat)
Topic: Super Fast Programmer
Replies: 18
Views: 34959

yiuyuho wrote:they are REALLY REALLY COOL!?
I guess they are.
by daveon
Tue Sep 26, 2006 3:33 am
Forum: Off topic (General chit-chat)
Topic: Super Fast Programmer
Replies: 18
Views: 34959

yiuyuho wrote:heh, I think they just solved 1k in a month, is that really that hard to believe just because we CANT do it?
And how do you explain the low error rate of ITBS Busan?
by daveon
Sat Sep 23, 2006 5:23 am
Forum: Off topic (General chit-chat)
Topic: Super Fast Programmer
Replies: 18
Views: 34959

So if one person could get 50 problems in one month , then it is easy for a group of 20 to get 1000 solved in a month as well, their username seems to be of a team and probably a big group. That is, each person solves a set of 50 different problems from the rest of the group, which is a lot harder ...
by daveon
Fri Sep 22, 2006 4:04 am
Forum: Off topic (General chit-chat)
Topic: Super Fast Programmer
Replies: 18
Views: 34959

Re: Super Fast Programmer

yiuyuho wrote:Check out stats of ITBS Busan, he/she/they did almost 1k problems in the last month.

Man, I wish I can have such a good inspiration :)
Well, you can use a test account to test your code until you get AC. Then you can release it in another account in no time. Always a good surprise I guess.
by daveon
Tue Sep 19, 2006 4:48 am
Forum: Volume 110 (11000-11099)
Topic: 11087 - Divisibility Testing
Replies: 36
Views: 18044

Abednego wrote:I don't know. There might be some assembly language tricks that work better. It's the fastest that I know of.
Wow, it's really fast. Maybe this is how people get blazing times. I might recode all of my solutions using this function. Cool and thanks.

Go to advanced search