Search found 13 matches

by Cytoplasm
Wed Dec 20, 2006 8:13 pm
Forum: Volume 1 (100-199)
Topic: 114 - Simulation Wizardry
Replies: 80
Views: 7696

by Cytoplasm
Wed Sep 07, 2005 1:01 pm
Forum: Volume 1 (100-199)
Topic: 146 - ID Codes
Replies: 35
Views: 5798

The entire file will be terminated by a line consisting of a single #.
When you get to the #, stop processing data.

output for:
"abaacb
cbbaa
#
abaacb"
is:
"ababac
No Successor"
by Cytoplasm
Tue Sep 06, 2005 8:24 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 184419

Heck :cry: Did you at least test it? Off course it DOESN'T work! I'll explain the good way to test it : open a new file in your notepad. I'll take for granted it's name is 100.in. copy all the sample input data, ALL the data in it. your file should be: 100.in "1 10 100 200 201 210 900 1000" compile ...
by Cytoplasm
Tue Sep 06, 2005 5:52 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 184419

instead of doing something like

scanf("%ld %ld",&a,&b);

code

do this:

while (scanf("%ld %ld",&a,&b)==2){
code;
}
by Cytoplasm
Mon Sep 05, 2005 4:32 am
Forum: Volume 1 (100-199)
Topic: 146 - ID Codes
Replies: 35
Views: 5798

Let me guess...
You are processing data after the #
by Cytoplasm
Mon Sep 05, 2005 4:25 am
Forum: Volume 1 (100-199)
Topic: 123 - Searching Quickly
Replies: 55
Views: 5058

Use Gcc and compile with flags -ansi -Wall -pedantic
This way, you will never see those Compile Errors
by Cytoplasm
Mon Sep 05, 2005 4:22 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 184419

it is NOT multiple test case ready.

process inputs as a whole file and not line by line.
by Cytoplasm
Thu Aug 11, 2005 6:40 pm
Forum: Volume 1 (100-199)
Topic: 129 - Krypton Factor
Replies: 25
Views: 2548

Brute force it.

Generate all the data then reject the wrong ones!

it DOES work
by Cytoplasm
Wed Aug 03, 2005 5:51 pm
Forum: Volume 1 (100-199)
Topic: 139 - Telephone Tangles
Replies: 66
Views: 8336

139-PE-Can anybody with ACC code give me 1 output?

because I've tried a lot of things and its still PE. I hate those response graphs instead of real responses!
by Cytoplasm
Wed Jun 15, 2005 5:03 pm
Forum: Volume 8 (800-899)
Topic: 820 - Internet Bandwidth
Replies: 43
Views: 20806

For your entry, my solution is 30, and that's also the solution computed with my hands, so it should be correct. I don't understand your problem, because it really IS simple and I won't give you the solution either because you would commit suicide for not having thought that yourself. So let's try t...
by Cytoplasm
Wed Jun 15, 2005 10:26 am
Forum: Volume 8 (800-899)
Topic: 820 - Internet Bandwidth
Replies: 43
Views: 20806

By the way I don'tunderstand that that:

Code: Select all

        f[u][v]+=max;
         f[v][u]=-f[u][v]; 
does work. I would have writen that instead:

Code: Select all

        f[u][v]+=max;
         f[v][u]-=max; 
Does your code REALLY work or is it only luck if it's going through the judge tests?
by Cytoplasm
Wed Jun 15, 2005 9:57 am
Forum: Volume 8 (800-899)
Topic: 820 - Internet Bandwidth
Replies: 43
Views: 20806

src==dst
That's not a problem

"There might be more than one connection between a pair of nodes"
This is your problem, your new code is wrong.
by Cytoplasm
Tue Jun 14, 2005 6:36 pm
Forum: Volume 8 (800-899)
Topic: 820 - Internet Bandwidth
Replies: 43
Views: 20806

hum hum

there is a small special point : reread the text
I've changed it in your code and I got Accepted P.E.

Go to advanced search