Search found 834 matches

by Dominik Michniewski
Sat Mar 19, 2011 6:16 pm
Forum: Volume 100 (10000-10099)
Topic: 10016 - Flip-Flop the Squarelotron
Replies: 5
Views: 3006

Re: 10016 - Flip-Flop the Squarelotron

Finally I solved this problem.
I changed only one thing - instead of using "int" I used "long int" and got Accepted.
Strange :o
by Dominik Michniewski
Wed Mar 09, 2011 2:57 pm
Forum: Volume 119 (11900-11999)
Topic: 11935 - Through the Desert
Replies: 10
Views: 4702

Re: 11935 - Through the Desert

What a stupid mistake :/
I changed %d into %ld in my code and I got Accepted.
by Dominik Michniewski
Sun Mar 06, 2011 5:12 pm
Forum: Volume 3 (300-399)
Topic: 354 - Crazy Calculator
Replies: 15
Views: 7459

Re: 354 - Crazy Calculator

Never mind - I got Accepted on this problem.

BTW. I expected to get Presentation Error (I didn't print empty lines between tests) but got Wrong Answer.
by Dominik Michniewski
Sat Mar 05, 2011 11:38 pm
Forum: Volume 3 (300-399)
Topic: 354 - Crazy Calculator
Replies: 15
Views: 7459

Re: 354 - Crazy Calculator

I passed through all datasets from this topic but I got Wrong Answer from judge.
Could anyone post more datasets ??

Best regards
by Dominik Michniewski
Sat Mar 05, 2011 10:25 pm
Forum: Volume 119 (11900-11999)
Topic: 11935 - Through the Desert
Replies: 10
Views: 4702

Re: 11935 - Through the Desert

I tried to add epsilon value to result, but without success. I wrote also different version of code, in which I avoid using doubles - without success too. I probably test all cases (start->goal, start->gas station, gas station->gas station, gas station -> goal) which can lead to find minimum value f...
by Dominik Michniewski
Sat Mar 05, 2011 9:21 am
Forum: Volume 119 (11900-11999)
Topic: 11935 - Through the Desert
Replies: 10
Views: 4702

Re: 11935 - Through the Desert

Yes, I output always number with three digits after decimal point. Algorithm is simply: when I read another event on the road, I calculate fuel consumed between current and last event: actFuel += (actKm - lastKm)*(actFuelConsumpton/100.0 + actLeakNo) After that I manage action connected to particula...
by Dominik Michniewski
Fri Mar 04, 2011 1:42 pm
Forum: Volume 119 (11900-11999)
Topic: 11935 - Through the Desert
Replies: 10
Views: 4702

11935 - Through the Desert

Hello, Problem looks simple, but I got WA. Could anyone tell me about traps in this problem ? What should be an output for this test case ? 0 Fuel consumption 1 0 Fuel consumption 0 1 Leak 1 Leak 6 Goal ?? My code outputs "10". Maybe it should be "0" ?? Maybe this problem has rounding error ?? Best ...
by Dominik Michniewski
Wed Mar 14, 2007 12:53 pm
Forum: Bugs and suggestions
Topic: Please give C# as the programming language.
Replies: 3
Views: 5376

I think, that could be impossible ... I don't know compiler for C# which is not done by Microsoft. And Judge works on open source and Linux ...

Best regards
DM

PS> If you know such compiler, it would be great :)
by Dominik Michniewski
Sat Mar 10, 2007 10:08 pm
Forum: Volume 106 (10600-10699)
Topic: 10614 - Dreadful Vectors
Replies: 11
Views: 6907

I tried to solve this problem too, and got WA too...
In my opinion is simple parsing problem ... isn't it ?

Could anyone help me and some tricky cases ? I got right answers for IO from this thread ...

Best regads
DM
by Dominik Michniewski
Fri Feb 16, 2007 1:38 am
Forum: Volume 3 (300-399)
Topic: 396 - Top Dog
Replies: 5
Views: 2847

396 - P.E.

I solve this problem, but I got P.E. (so I assume, that problem is correctly solved and I must have mistake in output presentation). I use following code to output data: void PrintSelects(TABLE *t) { COLUMN *cc; while(t) { if(t->found != 1) printf("<TABLE NOT FOUND>\n"); else { cc = t->c; printf("SE...
by Dominik Michniewski
Mon Feb 12, 2007 11:35 am
Forum: Bugs and suggestions
Topic: User statistics page
Replies: 1
Views: 1746

User statistics page

I think that something strange happens on this page. In my results (user: 1375), in complete version I see: 979 6 Accepted C 0.525 (0.023) 14 / 16 5328188 2007-02-12 09:29:48 but my personal status page shows me: 5328188 2007-02-12 09:29:48 Accepted 0.525 16048 Dominik Michniewski C 979 - The Abomin...
by Dominik Michniewski
Sat Feb 10, 2007 2:51 pm
Forum: Volume 3 (300-399)
Topic: 386 - Perfect Cubes
Replies: 53
Views: 7195

But in such case I should get WA instead of PE :)

And because I got PE , not WA, I suppose that my program is correct

Best regards
DM

PS. Thanks :)
by Dominik Michniewski
Sat Feb 10, 2007 10:30 am
Forum: Volume 3 (300-399)
Topic: 386 - Perfect Cubes
Replies: 53
Views: 7195

386 - PE - I can't guess why ...

My program gets PE, so I suppose it is correct. But anyone can explain me what I am doing wrong in writting output ? This is a part of my program which writes data to output: while(i<counter) { printf("Cube = %d, Triple = (%d,%d,%d)\n",results[i].a, results[i].b,results[i].c,results[i].d); i++; } I ...
by Dominik Michniewski
Tue Feb 07, 2006 10:45 am
Forum: Volume 108 (10800-10899)
Topic: 10889 - The Lost Gift
Replies: 17
Views: 6942

I have to questions:

1. For input "1 0" output should be "0 3" ?
2. For input "3 1" output shouls be "0 5" ?

Best regards
DM

PS. I think that from math perspective such I/O is correct :)
by Dominik Michniewski
Wed Jan 18, 2006 4:04 pm
Forum: Volume 2 (200-299)
Topic: 210 - Concurrency Simulator
Replies: 16
Views: 4602

1. It's a multiply input program :) 2. I don't know nothing about number of spaces in input - it's good if your program can skip more than 1 space in a row :) Empty lines my program probably skip if they exist in program body. 3. My program reads input without paying attension on unecessary blanks. ...

Go to advanced search