Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

Which Test Case is my code failing?

Revision en1, by idonthatephy, 2022-07-11 16:24:56

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
Tags codeforces round 805, 1702e, help, dsu

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English idonthatephy 2022-07-11 16:24:56 319 Initial revision (published)