Search found 8 matches

by volz_kz_g
Sat Jan 19, 2013 5:24 am
Forum: Volume 6 (600-699)
Topic: 675 - Convex Hull of the Polygon
Replies: 12
Views: 7805

Re: 675

brianfry713 wrote:Try solving it without using floating point.
It doesn't work. :(
by volz_kz_g
Thu Jan 17, 2013 8:49 am
Forum: Volume 6 (600-699)
Topic: 675 - Convex Hull of the Polygon
Replies: 12
Views: 7805

Re: 675

Don't read and write to a file. For input: 0, 0
2, 0
1, 1
2, 2
0, 2
0, 0

0, 0
2, 0
1, 1
2, 2
0, 2
0, 0 Output should be: 0, 0
2, 0
2, 2
0, 2
0, 0

0, 0
2, 0
2, 2
0, 2
0, 0
I change the way of reading data?
And the result is still WA?
I generate the random I/O and get the answer by myself ,
the ...
by volz_kz_g
Thu Jan 17, 2013 2:58 am
Forum: Volume 5 (500-599)
Topic: 527 - The partition of a cake
Replies: 11
Views: 2574

Re: 527 ?

Thank you,I found my function to check inLine was wrong.
Thank you again for helping me.
by volz_kz_g
Wed Jan 16, 2013 6:24 am
Forum: Volume 6 (600-699)
Topic: 675 - Convex Hull of the Polygon
Replies: 12
Views: 7805

675

Does this problem have some tricks?
I use the data I can find this forum,and can get the correct answer.
But when I submit this problem,always get the WA.
Does it have something to pay attention to?
:(
my code below:

#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath ...
by volz_kz_g
Wed Jan 16, 2013 5:06 am
Forum: Volume 5 (500-599)
Topic: 527 - The partition of a cake
Replies: 11
Views: 2574

Re: 527 ?

I believe there is a case like this in the judge's input, where a line is repeated: 2

2
0 0 1000 1000
1000 1000 0 0

2
0 0 1000 1000
0 0 1000 1000 My AC code prints 2 for both.
Thank you! I got this bug fixed.
And still get WA,I'm confused.
I check the lines repeated and the lines cover the bound ...
by volz_kz_g
Tue Jan 15, 2013 6:13 am
Forum: Volume 5 (500-599)
Topic: 527 - The partition of a cake
Replies: 11
Views: 2574

527 - The partition of a cake

I just have submitted this problem 10 times,and can't get AC yet.
I don't know what's wrong with my code.
Maybe who can help me? :roll:
there is my code.

#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <iostream>
#include <fstream>
#include <algorithm>
#include ...
by volz_kz_g
Tue Jan 15, 2013 3:54 am
Forum: Volume 2 (200-299)
Topic: 273 - Jack Straws
Replies: 19
Views: 4993

Re: 273,does it have tricks?

brianfry713 wrote:The outputs of two consecutive cases will be separated by a blank line.
Don't print an extra blank line at the end of the output.
Thanks for your reply,I get AC now :D
by volz_kz_g
Mon Jan 14, 2013 1:58 am
Forum: Volume 2 (200-299)
Topic: 273 - Jack Straws
Replies: 19
Views: 4993

273,does it have tricks?

I calculated every two straws to check if they were intersected.
And I get the array link [j] to show if straw i is connected with straw j.
Then I used floyd algorithm to get all link [j].

I have tried many i/o but I it doesn't work.

Here is my code

#include <cstdio>
#include <cstdlib>
#include ...

Go to advanced search