163673872--here is the submission Problem-1702E - Split Into Two Sets General Approach- using DSU first check degree of each node
if greater than 2
ans=no
if (a==b)
ans=no
else
if size of parent of each node is even
then
ans=yes
else
ans=no
# | User | Rating |
---|---|---|
1 | ecnerwala | 3649 |
2 | Benq | 3581 |
3 | orzdevinwang | 3570 |
4 | Geothermal | 3569 |
4 | cnnfls_csy | 3569 |
6 | tourist | 3565 |
7 | maroonrk | 3531 |
8 | Radewoosh | 3521 |
9 | Um_nik | 3482 |
10 | jiangly | 3468 |
# | User | Contrib. |
---|---|---|
1 | maomao90 | 174 |
2 | awoo | 164 |
3 | adamant | 161 |
4 | TheScrasse | 159 |
5 | nor | 158 |
6 | maroonrk | 156 |
7 | -is-this-fft- | 152 |
8 | SecondThread | 147 |
9 | orz | 146 |
10 | pajenegod | 145 |
163673872--here is the submission Problem-1702E - Split Into Two Sets General Approach- using DSU first check degree of each node
if greater than 2
ans=no
if (a==b)
ans=no
else
if size of parent of each node is even
then
ans=yes
else
ans=no
Name |
---|
Try using cfstress in 6-7 days to find the answer.
I didn't analyze your code but I printed test case 4585.
Have a look at this..my submission
his code gives out no on this test case, which is the right answer
how can one print the testcase like this?
Its simple..
For each test-case do not print answer one by one.. instead print all answers at the end of all test-cases. So you can print anything you want from a particular test case...
For example you cannot see whats happening in test case 4000 because you are printing answer after every test case
[Deleted]
n should be even