could someone give some test cases, i don't know what i'm doing wrong

thanks
Moderator: Board moderators
Code: Select all
2
6 4
1 2
1 3
5 4
5 6
6 5
1 2
1 3
1 5
5 4
5 6
thx for the hit. i already think that. But if the given graph is bipartite, then it's not sure that there is an answer. am i right ? Now tell me :Monsoon wrote:one hint: think what is when graph is bipartite and what is when it's not