bool is_pangram( const char *str)
{
int counter = 0;
int bit_block = 0;
while( *(str+counter) != 0)
{
bit_block |= 1 << ((*(str+counter) | 0x20) - 'a');
counter++;
}
return bit_block == 0x3FFFFFF ? true : false;
}
피자는 괜찮고 그냥 등수만 알았으면..
bool is_pangram( const char *str)
{
int counter = 0;
int bit_block = 0;
while( *(str+counter) != 0)
{
bit_block |= 1 << ((*(str+counter) | 0x20) - 'a');
counter++;
}
return bit_block == 0x3FFFFFF ? true : false;
}
피자는 괜찮고 그냥 등수만 알았으면..
댓글 0