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

Автор khanaleemullah, 13 лет назад, По-английски

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 ..

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

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

read how to solve problem B here

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

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