Блог пользователя mohitbindal

Автор mohitbindal, история, 9 лет назад, По-английски

I checked my solution of Chef and Bipartite Graphs against many randomly generated test cases using below attached files and the solution seems correct, but codechef judge is giving WA for the particular solution even after rejudge. Can anybody please help me to figure out the problem with my code, or the checker.

Question Link : https://www.codechef.com/ACMIND16/problems/ICPC16F

Solution Link : http://ideone.com/nV20zD

Random Input Generator Link : http://ideone.com/lZZlbt

Checker Link : http://ideone.com/wm8EzY

Update : I found my mistake.

  • Проголосовать: нравится
  • -2
  • Проголосовать: не нравится

»
9 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Can you please explain your approach . Our approach was quite similar to yours , but we took care of the pairing in such a way that the 2 nodes that we connect each time is not connected before .

»
9 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Auto comment: topic has been updated by mohitbindal (previous revision, new revision, compare).