khanaleemullah's blog

By khanaleemullah, 13 years ago, In English

Today I gave this competition and came upon this problem http://mirror.codeforces.com/contest/276/problem/B I have seen most of the coders used the same logic FOR(i,300) if (1 & cnt[i]) ++odd; if (odd == 0 || (1 & odd)) printf("First"); else printf("Second");

can any one of you explain to me this... thank you so much ..

  • Vote: I like it
  • -3
  • Vote: I do not like it

| Write comment?
»
13 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

read how to solve problem B here

»
13 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

what does the statment (1&odd) implies here?