Search found 144 matches

by cyfra
Tue Sep 10, 2002 8:06 am
Forum: Volume 1 (100-199)
Topic: 133 - The Dole Queue
Replies: 42
Views: 5976

Hi!

Hi!

Could you first debug your program -- it gets Compile Error...

Then try to test it on these test cases:
5 5 1
answer
5, 1 4, 2 3
and
2 1 1
answer
1 2
2 2 2
answer
2 1
If your program will still have WA then send it to me..

Good Luck :wink:
by cyfra
Fri Jul 26, 2002 3:11 pm
Forum: Other words
Topic: more on user statistics
Replies: 24
Views: 9623

Hi!

Hi! When your program failed to run I have checked the unit... Your program failed on my computer because unit returned such a web site: ERROR The requested URL could not be retrieved ------------------------------------ While trying to process the request: GET /cgi-bin/OnlineJudge?ProblemsList The ...
by cyfra
Tue Jul 09, 2002 12:20 pm
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 43528

hmm... I have copied your source then compiled it and then tested on the sample input... Your program answer was: 0: 0 1: 1 ... and so on... The same things happened to the other tests... I don't know maybe it is my compilator failure but it also can be your program fault... And what does your progr...
by cyfra
Tue Jul 09, 2002 10:27 am
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 43528

Hmm
Your program does nothing for the input which is in task description...

Try to change it :)

Good Luck :wink:
by cyfra
Sat Jun 29, 2002 8:01 pm
Forum: Volume 1 (100-199)
Topic: 108 - Maximum Sum
Replies: 233
Views: 24702

Hi!

Your idea was OK! ..

But you have some small mistakes in your program....

I have changed some things and got AC.


I will send you it on PM..

Good Luck :wink:
by cyfra
Fri Jun 28, 2002 3:29 pm
Forum: Volume 100 (10000-10099)
Topic: 10053 - Envelopes
Replies: 12
Views: 3503

10053 - Envelopes

Hi!

I am not sure whether I understand the task correctly....

Could you tell me whet is the output for this test case :
2 2
10 10
10 10
10 10 3
1 1 1
Thanks in advance :wink:
by cyfra
Fri Jun 28, 2002 12:27 pm
Forum: Volume 6 (600-699)
Topic: 621 - Secret Research
Replies: 45
Views: 19360

Larry wrote:So what do we do in the default case?
What do you mean ??

In the input which is given in task description everything is OK...
by cyfra
Fri Jun 28, 2002 9:48 am
Forum: Volume 1 (100-199)
Topic: 195 - Anagram
Replies: 242
Views: 28138

Hi! Sorry but this time your program also gave Runtime Error SIGSEGV. It is because You have too big array S[max1,max]... When your program tries to run function func and max1=50000 then you have SIGSEGV... But I wonder how are you solving this task, because there is a simple solution... If you know...
by cyfra
Thu Jun 27, 2002 3:55 pm
Forum: Volume 1 (100-199)
Topic: 116 - Unidirectional TSP
Replies: 226
Views: 38039

Hi!

You have a small mistake....

You have a table [1..100,1..10,1..2] while you should have [1..10,1..100,1..2]

If you change it you will have Accepted...

Good Luck :wink:
by cyfra
Thu Jun 27, 2002 3:48 pm
Forum: Volume 1 (100-199)
Topic: 124 - Following Orders
Replies: 49
Views: 7436

Hi!

Yes I had a similar problem in problem 100 ...

When I have changed longint to integer (or integer to longint) I got accepted....

Yes sometimes judge is very strange :wink:

But it is always right :D
by cyfra
Thu Jun 27, 2002 3:37 pm
Forum: Volume 1 (100-199)
Topic: 193 - Graph Coloring
Replies: 93
Views: 22139

Hi!

For this test case the answer is :

2
2 3

(these nodes can be colored black because they are not directly connected)

Good Luck :wink:
by cyfra
Thu Jun 27, 2002 3:30 pm
Forum: Volume 1 (100-199)
Topic: 195 - Anagram
Replies: 242
Views: 28138

Hi!

When I compiled and your you program on my computer it has a SIGSEGV during reading -- during first while....

So this the place you should check ..

BTW. Is working on your computer ??

Good Luck :wink:

PS.
On the next time PLEASE use bbtags for program codes...
by cyfra
Thu Jun 27, 2002 3:05 pm
Forum: Volume 1 (100-199)
Topic: 124 - Following Orders
Replies: 49
Views: 7436

Hi! I got your program Accepted after a few changes... I didn't look exactly i the code but at the beginning I made 2 changes... 1. I have increased Maxn to 50 (I don't know why :) 2. Next I have changed byte into longint.. And I got Accepted... I think that you have set byte=-1 and this is the reas...
by cyfra
Thu Jun 27, 2002 1:54 pm
Forum: Volume 1 (100-199)
Topic: 108 - Maximum Sum
Replies: 233
Views: 24702

Thanks for explanation... but I will write you here a simplier (I hope :D method.... Let us make a table B... the B[i,j] = sum (from 1 to i and form 1 to j of A) that means that B[1,1]=A[1,1] B[1,2]:=A[1,1]+A[1,2]; ... B[2,2]= A[1,1]+A[1,2]+A[2,1]+A[2,2].... and if you have this table the sum of the...
by cyfra
Thu Jun 27, 2002 12:15 pm
Forum: Volume 1 (100-199)
Topic: 108 - Maximum Sum
Replies: 233
Views: 24702

Hi!

Hi!

taj79: Frankly speaking I have no idea what your program does...
Can you explain me what your algoritm does and what is its time complexity...
Because I don't understand this :-?

Go to advanced search