Search found 6 matches

by facug91
Wed Mar 11, 2015 5:03 am
Forum: Volume 9 (900-999)
Topic: 908 - Re-connecting Computer Sites
Replies: 21
Views: 8337

Re: 908 - Re-connecting Computer Sites

It could be because you initialize the Union Find Disjoint Set from 0 to n-1, but then the nodes are index from 1 to n.
by facug91
Tue Oct 28, 2014 1:39 am
Forum: Volume 103 (10300-10399)
Topic: 10355 - Superman
Replies: 9
Views: 3241

Re: 10355 - Superman

Thank you so much lighted, it was just a ".y" where I should put ".z" hahaha :D
by facug91
Sat Oct 25, 2014 6:55 am
Forum: Volume 103 (10300-10399)
Topic: 10355 - Superman
Replies: 9
Views: 3241

Re: 10355 - Superman

Hi everybody! I've been trying to solve this problem, and I think I tried all possible inputs, and still WA. I've test it with another AC code on the internet, and all test cases (I thought) had exactly the same output. If someone has some other test to try, would be great. My code is a bit long, bu...
by facug91
Sat Oct 18, 2014 9:07 pm
Forum: Volume 102 (10200-10299)
Topic: 10215 - The Largest/Smallest Box ...
Replies: 55
Views: 29106

Re: 10215 - The Largest/Smallest Box ...

Can't this be solve with ternary search? I've made it in that way, and all the test cases I've proved pass perfectly. Anyway, I'm getting WA over and over. Here's my code: #include <bits/stdc++.h> #define EPS 1e-9 using namespace std; double l, w; double f (double x) { return x*(l-x-x)*(w-x-x); } do...
by facug91
Sun May 18, 2014 3:49 am
Forum: Volume 2 (200-299)
Topic: 278 - Chess
Replies: 22
Views: 2340

Re: 278 Chess

Hi! I have a problem with the code in the input part. #include <iostream> #include <cstdio> #include <cstdlib> #include <string> #include <cstring> #include <cmath> #include <algorithm> #include <vector> #include <queue> #include <deque> #include <set> #include <map> #include <iterator> #include <ut...
by facug91
Fri May 02, 2014 9:42 pm
Forum: Volume 115 (11500-11599)
Topic: 11507 - Bender B. Rodríguez Problem
Replies: 11
Views: 5821

Re: 11507 - Bender B. Rodriguea Problem

According to the image, means that the tube belonging to axis z, if fits the following position: \ \ \ \ I understood what you wanted to say, but the problem is that you have to think in 3D. The test case for what you wanted to draw is: 3 +z +y And the answer is +z, but the image is wrong. The last...

Go to advanced search