¾È³çÇϼ¼¿ä ´ëÇб³¿¡¼ ÄÄÇ»ÅÍ°øºÎ¸¦ ÇÏ´Â ÇлýÀÔ´Ï´Ù.
´ÙÀ̳ª¹Í ÇÁ·Î±×·¡¹Ö ¹®Á¦Àε¥ Ç®´Ù°¡ ¸øÇ®¾î¼ °Ë»öÇؼ ³²ÀÌ ÀÛ¼ºÇØ ³õÀº ¼Ò½º¸¦ ºÃ´Âµ¥¿ä. Àú·± ¼Ò½º°¡ ÀÖ¾ú½À´Ï´Ù.
dp[0] = 1<<0;<br />
±×·¡¼ ¹°¾î ºÃ´Âµ¥
(1<<0) isn't meaningless. It means set 0th(yeah, as array, bit count starts from zero) bit as 1. try:<br />
x = (1<<0);<br />
cout<<x<<endl;<br />
±Û¾´À̲²¼ Àú·± ´äº¯À» ÇØÁּż c¾ð¾î·Î ÇÁ¸°Å͸¦ Çغôµ¥
±×´ë·Î 1ÀÌ ³ª¿À±æ·¡ .. ¤Ð¤Ð.. 0¹ø° ºñÆ®·Î ºÎÅÍ ½ÃÀÛÇÑ´Ù?? ¶ó´Â°Ô ¹«½¼ ¶æÀÎÁö ¸ð¸£°Ú³×¿ä
±×¸®°í ³ªÁß¿¡µµ | (or ¿¬»ê) À» ÀÌ¿ëÇؼ ¹®Á¦¸¦ Ç®´õ¶ó±¸¿ä ½Å±â½Å±â | |
|