Search found 3 matches
- Thu Sep 26, 2013 4:36 pm
- Forum: Volume 2 (200-299)
- Topic: 270 - Lining Up
- Replies: 48
- Views: 22760
Re: 270: What's the limit for n???
Oh, I've found my mistake!!! if you have a struct like that: #define long long long struct line { long A, B, C; }; To minimize a line struct. I use this wrong algorithm. void minimize(line &d){ long GCD = gcd(abs(A), abs(B), abc(C)); if (d.A<0) GCD=-GCD; d.A/=GCD; d.B/=GCD; d.C/=GCD; } I've repl...
- Wed Sep 25, 2013 8:08 pm
- Forum: Volume 2 (200-299)
- Topic: 270 - Lining Up
- Replies: 48
- Views: 22760
Re: 270: What's the limit for n???
I got Wrong Answer.
My program output
Is it right?
Code: Select all
2
-6 -6
-8 -3
-2 -2
-6 -2
-2 0
-4 -4
-5 -1
-7 -8
-1 -1
-9 -8
-10 -6
-7 -4
-6 -4
-6 -9
-1 -9
-2 -10
-9 -6
-7 0
-2 -9
-7 -5
-9 -9
-10 -5
-9 -8
-10 -6
-7 -4
-6 -4
-6 -9
-1 -9
-2 -10
-9 -6
-7 0
-2 -9
-7 -5
-9 -9
-10 -5
Code: Select all
5
3
- Mon Sep 02, 2013 5:38 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10330 - Power Transmission
- Replies: 43
- Views: 20667
Re: 10330 - Power Transmission
@lbv, @AKJ88, Thank you so much, I understood why I got Wrong Answer.