Search found 6 matches
- Wed Mar 11, 2015 5:03 am
- Forum: Volume 9 (900-999)
- Topic: 908 - Re-connecting Computer Sites
- Replies: 21
- Views: 13005
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.
- Tue Oct 28, 2014 1:39 am
- Forum: Volume 103 (10300-10399)
- Topic: 10355 - Superman
- Replies: 9
- Views: 5420
Re: 10355 - Superman
Thank you so much lighted, it was just a ".y" where I should put ".z" hahaha 

- Sat Oct 25, 2014 6:55 am
- Forum: Volume 103 (10300-10399)
- Topic: 10355 - Superman
- Replies: 9
- Views: 5420
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 ...
My code is a bit long ...
- Sat Oct 18, 2014 9:07 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10215 - The Largest/Smallest Box ...
- Replies: 55
- Views: 38432
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 ...
#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 ...
- Sun May 18, 2014 3:49 am
- Forum: Volume 2 (200-299)
- Topic: 278 - Chess
- Replies: 22
- Views: 6877
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 ...
#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 ...
- Fri May 02, 2014 9:42 pm
- Forum: Volume 115 (11500-11599)
- Topic: 11507 - Bender B. Rodríguez Problem
- Replies: 11
- Views: 9025
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 ...
\
\
\
\
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 ...